1 Summary: GASP - old preprocessor for assembly programs
2 Summary(pl.UTF-8): GASP - stary preprocesor dla programów w asemblerze
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/
16 BuildRequires: gettext-tools
17 BuildRequires: perl-tools-pod
18 BuildRequires: pkgconfig
19 BuildRequires: rpmbuild(macros) >= 1.527
21 BuildRequires: sparc32
23 BuildRequires: texinfo >= 4.2
24 BuildRequires: zlib-devel
25 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
28 GASP - old preprocessor for assembly programs. It's officially
29 obsoleted, but it's still needed to build some packages.
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
37 %setup -q -n binutils-2.13.2.1
42 cp -f /usr/share/automake/config.* .
43 CFLAGS="%{rpmcflags}"; export CFLAGS
44 CC="%{__cc}"; export CC
48 ./configure %{_target_platform} \
51 --infodir=%{_infodir} \
53 --sysconfdir=%{_sysconfdir} \
55 --disable-silent-rules \
60 --enable-build-warnings=,-Wno-missing-prototypes \
61 --with-tooldir=%{_prefix} \
64 %{__make} -C libiberty
66 %{__make} -C gas gasp-new
67 %{__make} -C gas/doc gasp.info
70 rm -rf $RPM_BUILD_ROOT
71 install -d $RPM_BUILD_ROOT{%{_bindir},%{_infodir}}
73 install gas/gasp-new $RPM_BUILD_ROOT%{_bindir}/gasp
74 cp -p gas/doc/gasp.info* $RPM_BUILD_ROOT%{_infodir}
77 rm -rf $RPM_BUILD_ROOT
79 %post -p /sbin/postshell
80 -/usr/sbin/fix-info-dir -c %{_infodir}
82 %postun -p /sbin/postshell
83 -/usr/sbin/fix-info-dir -c %{_infodir}
86 %defattr(644,root,root,755)
87 %attr(755,root,root) %{_bindir}/gasp
88 %{_infodir}/gasp.info*