source: rtems/contrib/cygwin/i386-cygwin-binutils.spec.in @ 6237ab4

4.104.114.84.95
Last change on this file since 6237ab4 was 6237ab4, checked in by Ralf Corsepius <ralf.corsepius@…>, on 01/16/03 at 04:34:23

2003-01-16 Ralf Corsepius <corsepiu@…>

  • setup.def: Update to binutils-20021117-1.
  • i386-cygwin-binutils.spec.in: Reflect update to binutils-20021127-1. Adaptations to RH-8.0/rpm-4.1.
  • Property mode set to 100644
File size: 2.0 KB
Line 
1#
2# spec file for binutils package targetting cygwin
3#
4
5%define binutils_version @BINUTILS_VERS@
6%define binutils_rpmvers @BINUTILS_RPMVERS@
7
8Vendor:       OAR Corporation
9Distribution: Linux
10Name:         i386-cygwin-binutils
11Summary:      binutils for target i386-cygwin
12Group:        cygwin
13Release:      @BINUTILS_RPMREL@
14Summary:      binutils for i386-cygwin
15License:      GPL/LGPL
16Autoreqprov:    off
17Packager:       corsepiu@faw.uni-ulm.de
18Prefix:         /opt/cygwin
19BuildRoot:      @RPM_BUILD_ROOT@
20
21Version:        %binutils_rpmvers
22Source0:        ftp://sourceware.cygnus.com/pub/cygwin/latest/binutils/binutils-%{binutils_version}-src.tar.bz2
23NoSource:       0
24%description
25
26Cross binutils for target cygwin
27
28%prep
29# untar the sources inside i386-cygwin-binutils
30%setup -c -n i386-cygwin-binutils -a 0
31
32%build
33  test -d build || mkdir build
34  cd build
35  ../binutils-%{binutils_version}/configure --target=i386-cygwin \
36    --disable-nls --disable-win32-registry \
37    --verbose --prefix=%{prefix}
38
39  make all
40
41%install
42  cd build
43  make prefix=$RPM_BUILD_ROOT%{prefix} install
44
45# A bug in binutils: binutils does not install share/locale
46# however it uses it
47  ../binutils-%{binutils_version}/mkinstalldirs \
48    $RPM_BUILD_ROOT%{prefix}/share/locale
49
50# We don't want info files
51  rm -rf $RPM_BUILD_ROOT%{prefix}/info
52
53# c++filt now comes from gcc
54  rm -f $RPM_BUILD_ROOT%{prefix}/bin/i386-cygwin-c++filt
55
56  rm -f $RPM_BUILD_ROOT%{prefix}/lib/libiberty.a
57
58%clean
59# let rpm --clean remove BuildRoot iff using the default BuildRoot
60  test "$RPM_BUILD_ROOT" = "@RPM_BUILD_ROOT@" && \
61    rm -rf $RPM_BUILD_ROOT
62
63%files
64
65%dir %{prefix}/man
66%dir %{prefix}/man/man1
67%doc %{prefix}/man/man1/i386-cygwin-*.1*
68
69# %dir %{prefix}/include
70# %{prefix}/include/*.h
71
72# %dir %{prefix}/lib
73# %{prefix}/lib/libbfd*
74# %{prefix}/lib/libiberty*
75# %{prefix}/lib/libopcodes*
76
77%dir %{prefix}/share
78%dir %{prefix}/share/locale
79
80%dir %{prefix}/bin
81%{prefix}/bin/*
82
83%dir %{prefix}/i386-cygwin
84%dir %{prefix}/i386-cygwin/bin
85%{prefix}/i386-cygwin/bin/*
86
87%dir %{prefix}/i386-cygwin/lib
88%{prefix}/i386-cygwin/lib/ldscripts
Note: See TracBrowser for help on using the repository browser.