binutils/binutils.spec

changeset 331
44acfa481149
parent 69
84180bd0cb45
child 425
7543b0b3134d
equal deleted inserted replaced
1:a4ed628f3432 2:2746052e6cc7
1 ## 1 ##
2 ## binutils.spec -- OpenPKG RPM Package Specification 2 ## binutils.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2008 OpenPKG Foundation e.V. <http://openpkg.net/> 3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/>
4 ## 4 ##
5 ## Permission to use, copy, modify, and distribute this software for 5 ## Permission to use, copy, modify, and distribute this software for
6 ## any purpose with or without fee is hereby granted, provided that 6 ## any purpose with or without fee is hereby granted, provided that
7 ## the above copyright notice and this permission notice appear in all 7 ## the above copyright notice and this permission notice appear in all
8 ## copies. 8 ## copies.
29 Packager: OpenPKG Foundation e.V. 29 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 30 Distribution: OpenPKG Community
31 Class: CORE 31 Class: CORE
32 Group: Compiler 32 Group: Compiler
33 License: GPL 33 License: GPL
34 Version: 2.18 34 Version: 2.21
35 Release: 20090106 35 Release: 20101212
36 36
37 # list of sources 37 # list of sources
38 Source0: ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2 38 Source0: ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2
39 Patch0: binutils.patch 39 Patch0: binutils.patch
40 40
41 # build information 41 # build information
42 Prefix: %{l_prefix} 42 Prefix: %{l_prefix}
43 BuildRoot: %{l_buildroot} 43 BuildRoot: %{l_buildroot}
44 BuildPreReq: OpenPKG, openpkg >= 20060419, make 44 BuildPreReq: OpenPKG, openpkg >= 20060823, make
45 PreReq: OpenPKG, openpkg >= 20060419 45 PreReq: OpenPKG, openpkg >= 20060823
46 AutoReq: no 46 AutoReq: no
47 AutoReqProv: no 47 AutoReqProv: no
48 48
49 %description 49 %description
50 Binutils is a collection of binary utilities. It includes: ld 50 Binutils is a collection of binary utilities. It includes: ld
94 AR="%{l_ar}" \ 94 AR="%{l_ar}" \
95 MAKE="%{l_make}" \ 95 MAKE="%{l_make}" \
96 CONFIG_SHELL="%{l_bash}" \ 96 CONFIG_SHELL="%{l_bash}" \
97 ./configure \ 97 ./configure \
98 --prefix=%{l_prefix} \ 98 --prefix=%{l_prefix} \
99 --mandir=%{l_prefix}/man \
100 --infodir=%{l_prefix}/info \
99 --includedir=%{l_prefix}/include/binutils \ 101 --includedir=%{l_prefix}/include/binutils \
100 --libdir=%{l_prefix}/lib/binutils \ 102 --libdir=%{l_prefix}/lib/binutils \
101 --disable-werror \ 103 --disable-werror \
102 --disable-nls \ 104 --disable-nls \
103 $ARGS 105 $ARGS
104 106
105 # build package 107 # build package
106 %{l_make} %{l_mflags} 108 %{l_make} %{l_mflags} GREP="grep"
107 109
108 %install 110 %install
109 rm -rf $RPM_BUILD_ROOT 111 rm -rf $RPM_BUILD_ROOT
110 112
111 # build package 113 # build package
112 %{l_make} %{l_mflags} install \ 114 %{l_make} %{l_mflags} install \
113 prefix=$RPM_BUILD_ROOT%{l_prefix} \ 115 prefix=$RPM_BUILD_ROOT%{l_prefix} \
114 exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \ 116 exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
117 mandir=$RPM_BUILD_ROOT%{l_prefix}/man \
118 infodir=$RPM_BUILD_ROOT%{l_prefix}/info \
115 includedir=$RPM_BUILD_ROOT%{l_prefix}/include/binutils \ 119 includedir=$RPM_BUILD_ROOT%{l_prefix}/include/binutils \
116 libdir=$RPM_BUILD_ROOT%{l_prefix}/lib/binutils 120 libdir=$RPM_BUILD_ROOT%{l_prefix}/lib/binutils
117 121
118 # platform specific stripping down of installation: 122 # platform specific stripping down of installation:
119 # o GNU binutils strip(1) is broken on AIX, use of OS supplied 123 # o GNU binutils strip(1) is broken on AIX, use of OS supplied
141 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/configure.info* 145 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/configure.info*
142 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/c++filt.1 146 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/c++filt.1
143 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/dlltool.1 147 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/dlltool.1
144 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/nlmconv.1 148 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/nlmconv.1
145 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/windres.1 149 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/windres.1
150 rm -f $RPM_BUILD_ROOT%{l_prefix}/man/man1/windmc.1
146 rm -rf $RPM_BUILD_ROOT%{l_prefix}/*-*-* 151 rm -rf $RPM_BUILD_ROOT%{l_prefix}/*-*-*
147 rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin/c++filt 152 rm -rf $RPM_BUILD_ROOT%{l_prefix}/bin/c++filt
148 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true 153 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
149 154
150 # determine installation files 155 # determine installation files

mercurial