OpenCores
URL https://opencores.org/ocsvn/or1k_old/or1k_old/trunk

Subversion Repositories or1k_old

[/] [or1k_old/] [trunk/] [rtems-20020807/] [contrib/] [cygwin/] [i386-cygwin-gcc.spec.in] - Blame information for rev 1782

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 1026 ivang
#
2
# spec file for building gcc for cygwin
3
#
4
 
5
%define gcc_version @GCC_VERS@
6
%define gcc_rpmvers @GCC_RPMVERS@
7
 
8
Vendor:         OAR Corporation
9
Distribution:   Linux
10
Name:           i386-cygwin-gcc
11
Summary:        i386-cygwin gcc.
12
Requires:       i386-cygwin-binutils
13
Requires:       i386-cygwin-libs
14
Group:          cygwin
15
Release:        @GCC_RPMREL@
16
License:        gcc is GPL/LGPL
17
Prefix:         /opt/cygwin
18
Autoreqprov:    on
19
Packager:       corsepiu@faw.uni-ulm.de
20
Version:        %gcc_rpmvers
21
 
22
Source0:        ftp://sourceware.cygnus.com/pub/cygwin/latest/gcc/gcc-%{gcc_version}-src.tar.bz2
23
NoSource:       0
24
 
25
BuildRoot:      @RPM_BUILD_ROOT@
26
 
27
%description
28
Cross gcc for target cygwin
29
 
30
%prep
31
# untar the sources inside i386-cygwin-gcc
32
%setup -c -n %{name} -a 0
33
 
34
  test -d build || mkdir build
35
 
36
%build
37
  cd build
38
 
39
  ../gcc-%{gcc_version}/configure --target=i386-cygwin \
40
    --with-gnu-as --with-gnu-ld --verbose \
41
    --disable-nls --disable-win32-registry \
42
    --with-newlib --enable-languages=c,c++ \
43
    --prefix=%{prefix}
44
 
45
  make all
46
# We don't want info files
47
#  make info
48
 
49
%install
50
  cd build
51
  # Bug in gcc-2.95.1: It doesn't build this installation directory
52
  # If it doesn't find it, gcc doesn't install i386-cygwin/bin/gcc
53
  ../gcc-%{gcc_version}/mkinstalldirs \
54
    $RPM_BUILD_ROOT%{prefix}/i386-cygwin/bin
55
 
56
  make prefix=$RPM_BUILD_ROOT%{prefix} install
57
  # cd back to build/
58
  cd ../..
59
 
60
  # We don't want info files
61
  rm -rf $RPM_BUILD_ROOT%{prefix}/info
62
 
63
  # libiberty comes from cygwin-libs
64
  rm -f $RPM_BUILD_ROOT%{prefix}/i386-cygwin/lib/libiberty.a
65
 
66
%clean
67
# let rpm --clean remove BuildRoot iff using the default BuildRoot
68
  test "$RPM_BUILD_ROOT" = "@RPM_BUILD_ROOT@" && \
69
    rm -rf $RPM_BUILD_ROOT
70
 
71
%files
72
 
73
%dir %{prefix}/bin
74
%{prefix}/bin/cpp
75
%{prefix}/bin/gcov
76
 
77
%dir %{prefix}/man
78
%dir %{prefix}/man/man1
79
%doc %{prefix}/man/man1/cccp.1*
80
%doc %{prefix}/man/man1/i386-cygwin-gcc.1*
81
%doc %{prefix}/man/man1/i386-cygwin-g++.1*
82
 
83
%dir %{prefix}/include
84
 
85
%{prefix}/include/g++-3
86
%{prefix}/bin/i386-cygwin-c++
87
%{prefix}/bin/i386-cygwin-c++filt
88
%{prefix}/bin/i386-cygwin-g++
89
%{prefix}/bin/i386-cygwin-gcc
90
%{prefix}/bin/i386-cygwin-protoize
91
%{prefix}/bin/i386-cygwin-unprotoize
92
 
93
# %dir %{prefix}/lib/gcc-lib/i386-cygwin/%{gcc_version}/include
94
 
95
%{prefix}/i386-cygwin
96
%dir %{prefix}/lib
97
%dir %{prefix}/lib/gcc-lib
98
%dir %{prefix}/lib/gcc-lib/i386-cygwin
99
%{prefix}/lib/gcc-lib/i386-cygwin/%{gcc_version}

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.