source: rtems/contrib/cygwin/i386-cygwin-binutils.spec.in @ 93688eb

4.104.114.84.95
Last change on this file since 93688eb was 93688eb, checked in by Joel Sherrill <joel.sherrill@…>, on 08/31/01 at 15:25:18

2001-08-31 Ralf Corsepius <corsepiu@…>

  • Makefile.am, .cvsignore, configure.in, i386-cygwin-binutils.spec.in, i386-cygwin-gcc.spec.in, i386-cygwin-libs.spec.in, i386-cygwin-w32api.spec.in, i386-cygwin-mingw.spec.in, setup, setup.def: New files that support building RPMs for Linux hosted cross compilers targeting Cygwin.
  • 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.gz
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%clean
57# let rpm --clean remove BuildRoot iff using the default BuildRoot
58  test "$RPM_BUILD_ROOT" = "@RPM_BUILD_ROOT@" && \
59    rm -rf $RPM_BUILD_ROOT
60
61%files
62
63%dir %{prefix}/man
64%dir %{prefix}/man/man1
65%doc %{prefix}/man/man1/i386-cygwin-*.1*
66
67%dir %{prefix}/include
68%{prefix}/include/*.h
69
70%dir %{prefix}/lib
71%{prefix}/lib/libbfd*
72%{prefix}/lib/libiberty*
73%{prefix}/lib/libopcodes*
74
75%dir %{prefix}/share
76%dir %{prefix}/share/locale
77
78%dir %{prefix}/bin
79%{prefix}/bin/*
80
81%dir %{prefix}/i386-cygwin
82%dir %{prefix}/i386-cygwin/bin
83%{prefix}/i386-cygwin/bin/*
84
85%dir %{prefix}/i386-cygwin/lib
86%{prefix}/i386-cygwin/lib/ldscripts
Note: See TracBrowser for help on using the repository browser.