]> git.pld-linux.org Git - packages/binutils-gasp.git/blob - binutils-gasp.spec
- last version of binutils before gasp removal (2.13.2.1a)
[packages/binutils-gasp.git] / binutils-gasp.spec
1 Summary:        GASP - old preprocessor for assembly programs
2 Summary(pl.UTF-8):      GASP - stary preprocesor dla programów w asemblerze
3 Name:           binutils-gasp
4 Version:        2.13.2.1a
5 Release:        1
6 Epoch:          5
7 License:        GPL v3+
8 Group:          Development/Tools
9 Source0:        https://ftp.gnu.org/gnu/binutils/binutils-%{version}.tar.bz2
10 # Source0-md5:  aeb6464c6e3584edc021f7a552ec4fbd
11 Patch0:         binutils-info.patch
12 Patch1:         binutils-relax_type.patch
13 URL:            http://www.sourceware.org/binutils/
14 BuildRequires:  bison
15 BuildRequires:  flex
16 BuildRequires:  gettext-tools
17 BuildRequires:  perl-tools-pod
18 BuildRequires:  pkgconfig
19 BuildRequires:  rpmbuild(macros) >= 1.527
20 %ifarch sparc sparc32
21 BuildRequires:  sparc32
22 %endif
23 BuildRequires:  texinfo >= 4.2
24 BuildRequires:  zlib-devel
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 GASP - old preprocessor for assembly programs. It's officially
29 obsoleted, but it's still needed to build some packages.
30
31 %description -l pl.UTF-8
32 GASP - stary preprocesor dla programów w asemblerze. Jest oficjalnie
33 uznany za przestarzały, ale jest nadal potrzebny do zbudowania
34 niektórych pakietów.
35
36 %prep
37 %setup -q -n binutils-2.13.2.1
38 %patch0 -p1
39 %patch1 -p1
40
41 %build
42 cp -f /usr/share/automake/config.* .
43 CFLAGS="%{rpmcflags}"; export CFLAGS
44 CC="%{__cc}"; export CC
45 %ifarch sparc
46 sparc32 \
47 %endif
48 ./configure %{_target_platform} \
49         --prefix=%{_prefix} \
50         --libdir=%{_libdir} \
51         --infodir=%{_infodir} \
52         --mandir=%{_mandir} \
53         --sysconfdir=%{_sysconfdir} \
54         --disable-debug \
55         --disable-silent-rules \
56         --disable-werror \
57 %ifarch sparc
58         --enable-64-bit-bfd \
59 %endif
60         --enable-build-warnings=,-Wno-missing-prototypes \
61         --with-tooldir=%{_prefix} \
62         --with-zlib
63
64 %{__make} -C libiberty
65 %{__make} -C bfd
66 %{__make} -C gas gasp-new
67 %{__make} -C gas/doc gasp.info
68
69 %install
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_bindir},%{_infodir}}
72
73 install gas/gasp-new $RPM_BUILD_ROOT%{_bindir}/gasp
74 cp -p gas/doc/gasp.info* $RPM_BUILD_ROOT%{_infodir}
75
76 %clean
77 rm -rf $RPM_BUILD_ROOT
78
79 %post   -p /sbin/postshell
80 -/usr/sbin/fix-info-dir -c %{_infodir}
81
82 %postun -p /sbin/postshell
83 -/usr/sbin/fix-info-dir -c %{_infodir}
84
85 %files
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_bindir}/gasp
88 %{_infodir}/gasp.info*
This page took 0.058274 seconds and 3 git commands to generate.