binutils/binutils.spec

changeset 425
7543b0b3134d
parent 331
44acfa481149
child 426
c9323ebe0764
equal deleted inserted replaced
2:2746052e6cc7 3:8b73deb3057a
1 ## 1 ##
2 ## binutils.spec -- OpenPKG RPM Package Specification 2 ## binutils.spec -- OpenPKG RPM Package Specification
3 ## Copyright (c) 2000-2010 OpenPKG Foundation e.V. <http://openpkg.net/> 3 ## Copyright (c) 2000-2011 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.
19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT 19 ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 20 ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
21 ## SUCH DAMAGE. 21 ## SUCH DAMAGE.
22 ## 22 ##
23 23
24 # package version
25 %define V_opkg 2.22
26 %define V_base 2.22
27 %define V_patch %nil
28
24 # package information 29 # package information
25 Name: binutils 30 Name: binutils
26 Summary: GNU Binary Utilities 31 Summary: GNU Binary Utilities
27 URL: http://sources.redhat.com/binutils/ 32 URL: http://sources.redhat.com/binutils/
28 Vendor: Free Software Foundation 33 Vendor: Free Software Foundation
29 Packager: OpenPKG Foundation e.V. 34 Packager: OpenPKG Foundation e.V.
30 Distribution: OpenPKG Community 35 Distribution: OpenPKG Community
31 Class: CORE 36 Class: CORE
32 Group: Compiler 37 Group: Compiler
33 License: GPL 38 License: GPL
34 Version: 2.21 39 Version: %{V_opkg}
35 Release: 20101212 40 Release: 20111122
36 41
37 # list of sources 42 # list of sources
38 Source0: ftp://sources.redhat.com/pub/binutils/releases/binutils-%{version}.tar.bz2 43 Source0: ftp://sources.redhat.com/pub/binutils/releases/binutils-%{V_base}.tar.bz2
39 Patch0: binutils.patch 44 Patch0: binutils.patch
40 45
41 # build information 46 # build information
42 Prefix: %{l_prefix} 47 BuildPreReq: OpenPKG, openpkg >= 20100101, make
43 BuildRoot: %{l_buildroot} 48 PreReq: OpenPKG, openpkg >= 20100101
44 BuildPreReq: OpenPKG, openpkg >= 20060823, make
45 PreReq: OpenPKG, openpkg >= 20060823
46 AutoReq: no
47 AutoReqProv: no
48 49
49 %description 50 %description
50 Binutils is a collection of binary utilities. It includes: ld 51 Binutils is a collection of binary utilities. It includes: ld
51 (the GNU linker), addr2line (converts addresses into filenames 52 (the GNU linker), addr2line (converts addresses into filenames
52 and line numbers), as (the portable GNU assembler), ar (a utility 53 and line numbers), as (the portable GNU assembler), ar (a utility
59 printable strings from files), strip (discards symbols) and gprof 60 printable strings from files), strip (discards symbols) and gprof
60 (displays profiling information). 61 (displays profiling information).
61 62
62 %track 63 %track
63 prog binutils = { 64 prog binutils = {
64 version = %{version} 65 version = %{V_base}
65 url = ftp://sources.redhat.com/pub/binutils/releases/ 66 url = ftp://sources.redhat.com/pub/binutils/releases/
66 regex = binutils-(__VER__)\.tar\.bz2 67 regex = binutils-(__VER__)\.tar\.bz2
67 } 68 }
68 69
69 %prep 70 %prep
70 %setup -q 71 %setup -q -n binutils-%{V_base}
71 %patch -p0 72 %patch -p0
72 73
73 %build 74 %build
74 # configure package 75 # configure package
75 CC="%{l_cc}"; export CC 76 CC="%{l_cc}"; export CC
103 --disable-werror \ 104 --disable-werror \
104 --disable-nls \ 105 --disable-nls \
105 $ARGS 106 $ARGS
106 107
107 # build package 108 # build package
108 %{l_make} %{l_mflags} GREP="grep" 109 %{l_make} %{l_mflags}
109 110
110 %install 111 %install
111 rm -rf $RPM_BUILD_ROOT
112 112
113 # build package 113 # build package
114 %{l_make} %{l_mflags} install \ 114 %{l_make} %{l_mflags} install \
115 prefix=$RPM_BUILD_ROOT%{l_prefix} \ 115 prefix=$RPM_BUILD_ROOT%{l_prefix} \
116 exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \ 116 exec_prefix=$RPM_BUILD_ROOT%{l_prefix} \
156 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std} 156 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
157 157
158 %files -f files 158 %files -f files
159 159
160 %clean 160 %clean
161 rm -rf $RPM_BUILD_ROOT
162 161

mercurial