]> git.pld-linux.org Git - packages/gcc2.git/blobdiff - gcc2.spec
- BR: autoconf
[packages/gcc2.git] / gcc2.spec
index cf80751a7a91216f4c667f409f0a9c3fcfc1b39e..8fba6f8cb789c034841cb23179cd01f8398607c5 100644 (file)
--- a/gcc2.spec
+++ b/gcc2.spec
@@ -36,9 +36,10 @@ Patch19:     %{name}-libobjc.patch
 Patch21:       %{name}-suffix.patch
 Patch22:       %{name}-athlon-option.patch
 Patch50:       gcc-%{rver}-%{snap}.patch.bz2
+BuildRequires: autoconf
+BuildRequires: automake
 BuildRequires: bison
 BuildRequires: texinfo
-BuildRequires: automake
 Requires:      binutils >= 2.9.1.0.25
 Requires:      cpp2 = %{version}
 %ifarch alpha
@@ -323,7 +324,10 @@ Preprocesor C umo
 
 %build
 rm -rf gcc/java
-(cd gcc; autoconf; cp -f /usr/share/automake/config.* .)
+cd gcc
+%{__autoconf}
+cp -f /usr/share/automake/config.* .
+cd ..
 cp -f /usr/share/automake/config.* .
 rm -rf obj-%{_target_platform}
 install -d obj-%{_target_platform} && cd obj-%{_target_platform}
@@ -386,6 +390,9 @@ cd $RPM_BUILD_ROOT%{_bindir}
 mv chill chill2
 mv %{_target_platform}-gcc %{_target_platform}-gcc2
 
+%clean
+rm -rf $RPM_BUILD_ROOT
+
 %post
 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir -c %{_infodir} >/dev/null 2>&1
 
@@ -413,9 +420,6 @@ mv %{_target_platform}-gcc %{_target_platform}-gcc2
 %post   -p /sbin/ldconfig -n libstdc++2
 %postun -p /sbin/ldconfig -n libstdc++2
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
 %defattr(644,root,root,755)
 %doc READ* ChangeLog
This page took 0.081435 seconds and 4 git commands to generate.