cleanup spec
authorAnas Nashif <anas.nashif@intel.com>
Mon, 14 Jan 2013 14:49:38 +0000 (06:49 -0800)
committerJunfeng Dong <junfeng.dong@intel.com>
Mon, 18 Nov 2013 06:04:40 +0000 (14:04 +0800)
packaging/cross-armv5el-gcc47-icecream-backend.spec
packaging/cross-armv7el-gcc47-icecream-backend.spec
packaging/cross-armv7hl-gcc47-icecream-backend.spec
packaging/cross-i386-gcc47-icecream-backend.spec
packaging/cross-x86_64-gcc47-icecream-backend.spec
packaging/gcc.spec.in
packaging/gcc47-testresults.spec
packaging/gcc47.spec
packaging/libffi47.spec
packaging/libgcj47.spec

index dcd21f9..4c7a0f9 100644 (file)
@@ -326,12 +326,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
index fd10c0c..05f6225 100644 (file)
@@ -326,12 +326,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
index dbeb06e..cba960c 100644 (file)
@@ -326,12 +326,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
index 2312f06..c66bb65 100644 (file)
@@ -326,12 +326,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
index a4873aa..c59fbe1 100644 (file)
@@ -326,12 +326,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
index a82ac97..b197a0c 100644 (file)
@@ -9,16 +9,11 @@
 %define build_ada 0
 %endif
 
-%define quadmath_arch %ix86 x86_64 ia64
+%define quadmath_arch %ix86 x86_64 
 
 # We don't want to build java
-%ifarch mips
-%define build_java 0
-%define build_libjava 0
-%else
 %define build_java 1
 %define build_libjava 0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
-%endif
 
 %define build_cp 1
 %define build_fortran 1
@@ -72,9 +67,6 @@ BuildRequires: unzip
 %if 0%{?building_libffi:1}
 BuildRequires: pkg-config
 %endif
-%ifarch ia64
-BuildRequires: libunwind-devel
-%endif
 %if 0%{?run_tests:1}
 BuildRequires: dejagnu
 BuildRequires: expect
@@ -82,18 +74,8 @@ BuildRequires: gdb
 %endif
 
 # Define version number of libgcc_s
-%ifarch hppa
-%define libgcc_s 4
-%else
 %define libgcc_s 1
-%endif
-%ifarch ppc
-# We support building the nof libraries, but don't want this in the
-# regular rpms
-%define build_nof 0
-%else
 %define build_nof 0
-%endif
 
 %define separate_bi32 0
 %define separate_bi64 0
@@ -256,9 +238,6 @@ Requires: libstdc++6@variant@ >= %{version}-%{release}
 Requires: libstdc++@base_ver@@variant@ = %{version}-%{release}
 %endif
 Requires: glibc-devel@variant@
-%ifarch ia64
-Requires: libunwind-devel
-%endif
 
 %description -n libstdc++@base_ver@-devel@variant@
 This package contains all the headers and libraries of the standard C++
@@ -629,9 +608,6 @@ Requires: gtk2-devel
 Requires: libart_lgpl-devel
 Requires: glibc-devel
 Requires: zlib-devel
-%ifarch ia64
-Requires: libunwind-devel
-%endif
 
 %description -n libgcj@base_ver@-devel
 This package contains all necessary include files and libraries needed
@@ -683,7 +659,7 @@ A foreign function interface is the popular name for the interface that allows c
 %package -n gcc@base_ver@-testresults
 # GCC-TESTSUITE-DELETE-END
 Summary:      Testsuite results
-License:       SUSE-Public-Domain
+License:       Public-Domain
 Group:        Development/Languages/C and C++
 
 %description -n gcc@base_ver@-testresults
@@ -1024,12 +1000,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
@@ -1070,7 +1042,7 @@ make stage1-bubble $PARALLEL
 make all-target-libffi $PARALLEL
 %else
 # Only run profiled bootstrap on archs where it works
-#%ifarch %ix86 x86_64 ppc ppc64 ia64
+#%ifarch %ix86 x86_64 
 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
 #%else
 %ifarch %arm
@@ -1447,9 +1419,6 @@ crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
 %endif
 %endif
-for o in $crt_list $crt32_list $crt64_list; do
-  objcopy -R ".comment.SUSE.OPTs" $o
-done
 %endif
 
 %if 0%{?building_libjava:1}
@@ -1888,26 +1857,7 @@ cd ..
 
 %files info
 %defattr(-,root,root)
-%doc %{_infodir}/cpp%{binsuffix}.info*.gz
-%doc %{_infodir}/cppinternals%{binsuffix}.info*.gz
-%doc %{_infodir}/gcc%{binsuffix}.info*.gz
-%doc %{_infodir}/gccint%{binsuffix}.info*.gz
-%doc %{_infodir}/gccinstall%{binsuffix}.info*.gz
-%doc %{_infodir}/libgomp%{binsuffix}.info*.gz
-%if %{build_fortran}
-%doc %{_infodir}/gfortran%{binsuffix}.info*.gz
-%ifarch %quadmath_arch
-%doc %{_infodir}/libquadmath%{binsuffix}.info*.gz
-%endif
-%endif
-%if %{build_java}
-%doc %{_infodir}/gcj%{binsuffix}.info*.gz
-%endif
-%if %{build_ada}
-%doc %{_infodir}/gnat-style%{binsuffix}.info*gz
-%doc %{_infodir}/gnat_rm%{binsuffix}.info*gz
-%doc %{_infodir}/gnat_ugn%{binsuffix}.info*gz
-%endif
+%doc %{_infodir}/*%{binsuffix}.info*.gz
 
 %files -n cpp@base_ver@
 %defattr(-,root,root)
index 0058cb3..f5a5068 100644 (file)
 %define build_ada 0
 %endif
 
-%define quadmath_arch %ix86 x86_64 ia64
+%define quadmath_arch %ix86 x86_64 
 
 # We don't want to build java
-%ifarch mips
-%define build_java 0
-%define build_libjava 0
-%else
 %define build_java 1
 %define build_libjava 0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
-%endif
 
 %define build_cp 1
 %define build_fortran 1
@@ -74,9 +69,6 @@ BuildRequires: unzip
 %if 0%{?building_libffi:1}
 BuildRequires: pkg-config
 %endif
-%ifarch ia64
-BuildRequires: libunwind-devel
-%endif
 %if 0%{?run_tests:1}
 BuildRequires: dejagnu
 BuildRequires: expect
@@ -84,18 +76,8 @@ BuildRequires: gdb
 %endif
 
 # Define version number of libgcc_s
-%ifarch hppa
-%define libgcc_s 4
-%else
 %define libgcc_s 1
-%endif
-%ifarch ppc
-# We support building the nof libraries, but don't want this in the
-# regular rpms
-%define build_nof 0
-%else
 %define build_nof 0
-%endif
 
 %define separate_bi32 0
 %define separate_bi64 0
@@ -168,7 +150,7 @@ Patch2:     0003-rename-info-files.patch
 Patch3:     0004-ARM-linker.patch
 
 Summary:      Testsuite results
-License:       SUSE-Public-Domain
+License:       Public-Domain
 Group:        Development/Languages/C and C++
 
 %description 
@@ -509,12 +491,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
@@ -555,7 +533,7 @@ make stage1-bubble $PARALLEL
 make all-target-libffi $PARALLEL
 %else
 # Only run profiled bootstrap on archs where it works
-#%ifarch %ix86 x86_64 ppc ppc64 ia64
+#%ifarch %ix86 x86_64 
 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
 #%else
 %ifarch %arm
index 19aad57..8124958 100644 (file)
@@ -9,16 +9,11 @@
 %define build_ada 0
 %endif
 
-%define quadmath_arch %ix86 x86_64 ia64
+%define quadmath_arch %ix86 x86_64 
 
 # We don't want to build java
-%ifarch mips
-%define build_java 0
-%define build_libjava 0
-%else
 %define build_java 1
 %define build_libjava 0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
-%endif
 
 %define build_cp 1
 %define build_fortran 1
@@ -72,9 +67,6 @@ BuildRequires: unzip
 %if 0%{?building_libffi:1}
 BuildRequires: pkg-config
 %endif
-%ifarch ia64
-BuildRequires: libunwind-devel
-%endif
 %if 0%{?run_tests:1}
 BuildRequires: dejagnu
 BuildRequires: expect
@@ -82,18 +74,8 @@ BuildRequires: gdb
 %endif
 
 # Define version number of libgcc_s
-%ifarch hppa
-%define libgcc_s 4
-%else
 %define libgcc_s 1
-%endif
-%ifarch ppc
-# We support building the nof libraries, but don't want this in the
-# regular rpms
 %define build_nof 0
-%else
-%define build_nof 0
-%endif
 
 %define separate_bi32 0
 %define separate_bi64 0
@@ -257,9 +239,6 @@ Requires: libstdc++6 >= %{version}-%{release}
 Requires: libstdc++47 = %{version}-%{release}
 %endif
 Requires: glibc-devel
-%ifarch ia64
-Requires: libunwind-devel
-%endif
 
 %description -n libstdc++47-devel
 This package contains all the headers and libraries of the standard C++
@@ -277,9 +256,6 @@ Requires: libstdc++6-32bit >= %{version}-%{release}
 Requires: libstdc++47-32bit = %{version}-%{release}
 %endif
 Requires: glibc-devel-32bit
-%ifarch ia64
-Requires: libunwind-devel
-%endif
 
 %description -n libstdc++47-devel-32bit
 This package contains all the headers and libraries of the standard C++
@@ -297,9 +273,6 @@ Requires: libstdc++6-64bit >= %{version}-%{release}
 Requires: libstdc++47-64bit = %{version}-%{release}
 %endif
 Requires: glibc-devel-64bit
-%ifarch ia64
-Requires: libunwind-devel
-%endif
 
 %description -n libstdc++47-devel-64bit
 This package contains all the headers and libraries of the standard C++
@@ -1157,9 +1130,6 @@ Requires: gtk2-devel
 Requires: libart_lgpl-devel
 Requires: glibc-devel
 Requires: zlib-devel
-%ifarch ia64
-Requires: libunwind-devel
-%endif
 
 %description -n libgcj47-devel
 This package contains all necessary include files and libraries needed
@@ -1277,7 +1247,7 @@ A foreign function interface is the popular name for the interface that allows c
 %package -n gcc47-testresults
 # GCC-TESTSUITE-DELETE-END
 Summary:      Testsuite results
-License:       SUSE-Public-Domain
+License:       Public-Domain
 Group:        Development/Languages/C and C++
 
 %description -n gcc47-testresults
@@ -1618,12 +1588,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
@@ -1664,7 +1630,7 @@ make stage1-bubble $PARALLEL
 make all-target-libffi $PARALLEL
 %else
 # Only run profiled bootstrap on archs where it works
-#%ifarch %ix86 x86_64 ppc ppc64 ia64
+#%ifarch %ix86 x86_64 
 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
 #%else
 %ifarch %arm
@@ -2041,9 +2007,6 @@ crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
 %endif
 %endif
-for o in $crt_list $crt32_list $crt64_list; do
-  objcopy -R ".comment.SUSE.OPTs" $o
-done
 %endif
 
 %if 0%{?building_libjava:1}
@@ -2482,26 +2445,7 @@ cd ..
 
 %files info
 %defattr(-,root,root)
-%doc %{_infodir}/cpp%{binsuffix}.info*.gz
-%doc %{_infodir}/cppinternals%{binsuffix}.info*.gz
-%doc %{_infodir}/gcc%{binsuffix}.info*.gz
-%doc %{_infodir}/gccint%{binsuffix}.info*.gz
-%doc %{_infodir}/gccinstall%{binsuffix}.info*.gz
-%doc %{_infodir}/libgomp%{binsuffix}.info*.gz
-%if %{build_fortran}
-%doc %{_infodir}/gfortran%{binsuffix}.info*.gz
-%ifarch %quadmath_arch
-%doc %{_infodir}/libquadmath%{binsuffix}.info*.gz
-%endif
-%endif
-%if %{build_java}
-%doc %{_infodir}/gcj%{binsuffix}.info*.gz
-%endif
-%if %{build_ada}
-%doc %{_infodir}/gnat-style%{binsuffix}.info*gz
-%doc %{_infodir}/gnat_rm%{binsuffix}.info*gz
-%doc %{_infodir}/gnat_ugn%{binsuffix}.info*gz
-%endif
+%doc %{_infodir}/*%{binsuffix}.info*.gz
 
 %files -n cpp47
 %defattr(-,root,root)
index 6b9ab69..7b15cbb 100644 (file)
 %define build_ada 0
 %endif
 
-%define quadmath_arch %ix86 x86_64 ia64
+%define quadmath_arch %ix86 x86_64 
 
 # We don't want to build java
-%ifarch mips
-%define build_java 0
-%define build_libjava 0
-%else
 %define build_java 1
 %define build_libjava 0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
-%endif
 
 %define build_cp 1
 %define build_fortran 1
@@ -73,9 +68,6 @@ BuildRequires: unzip
 %if 0%{?building_libffi:1}
 BuildRequires: pkg-config
 %endif
-%ifarch ia64
-BuildRequires: libunwind-devel
-%endif
 %if 0%{?run_tests:1}
 BuildRequires: dejagnu
 BuildRequires: expect
@@ -83,18 +75,8 @@ BuildRequires: gdb
 %endif
 
 # Define version number of libgcc_s
-%ifarch hppa
-%define libgcc_s 4
-%else
 %define libgcc_s 1
-%endif
-%ifarch ppc
-# We support building the nof libraries, but don't want this in the
-# regular rpms
 %define build_nof 0
-%else
-%define build_nof 0
-%endif
 
 %define separate_bi32 0
 %define separate_bi64 0
@@ -267,7 +249,7 @@ A foreign function interface is the popular name for the interface that allows c
 %package -n gcc47-testresults
 # GCC-TESTSUITE-DELETE-END
 Summary:      Testsuite results
-License:       SUSE-Public-Domain
+License:       Public-Domain
 Group:        Development/Languages/C and C++
 
 %description -n gcc47-testresults
@@ -608,12 +590,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
@@ -654,7 +632,7 @@ make stage1-bubble $PARALLEL
 make all-target-libffi $PARALLEL
 %else
 # Only run profiled bootstrap on archs where it works
-#%ifarch %ix86 x86_64 ppc ppc64 ia64
+#%ifarch %ix86 x86_64 
 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
 #%else
 %ifarch %arm
@@ -824,9 +802,6 @@ crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
 %endif
 %endif
-for o in $crt_list $crt32_list $crt64_list; do
-  objcopy -R ".comment.SUSE.OPTs" $o
-done
 %endif
 
 %if 0%{?building_libjava:1}
index d6c3fe5..dbf5868 100644 (file)
 %define build_ada 0
 %endif
 
-%define quadmath_arch %ix86 x86_64 ia64
+%define quadmath_arch %ix86 x86_64 
 
 # We don't want to build java
-%ifarch mips
-%define build_java 0
-%define build_libjava 0
-%else
 %define build_java 1
 %define build_libjava 0%{?building_libjava:1}%{?building_libffi:1}%{?building_testsuite:1}
-%endif
 
 %define build_cp 1
 %define build_fortran 1
@@ -73,9 +68,6 @@ BuildRequires: unzip
 %if 0%{?building_libffi:1}
 BuildRequires: pkg-config
 %endif
-%ifarch ia64
-BuildRequires: libunwind-devel
-%endif
 %if 0%{?run_tests:1}
 BuildRequires: dejagnu
 BuildRequires: expect
@@ -83,18 +75,8 @@ BuildRequires: gdb
 %endif
 
 # Define version number of libgcc_s
-%ifarch hppa
-%define libgcc_s 4
-%else
 %define libgcc_s 1
-%endif
-%ifarch ppc
-# We support building the nof libraries, but don't want this in the
-# regular rpms
 %define build_nof 0
-%else
-%define build_nof 0
-%endif
 
 %define separate_bi32 0
 %define separate_bi64 0
@@ -246,9 +228,6 @@ Requires: gtk2-devel
 Requires: libart_lgpl-devel
 Requires: glibc-devel
 Requires: zlib-devel
-%ifarch ia64
-Requires: libunwind-devel
-%endif
 
 %description -n libgcj47-devel
 This package contains all necessary include files and libraries needed
@@ -366,7 +345,7 @@ A foreign function interface is the popular name for the interface that allows c
 %package -n gcc47-testresults
 # GCC-TESTSUITE-DELETE-END
 Summary:      Testsuite results
-License:       SUSE-Public-Domain
+License:       Public-Domain
 Group:        Development/Languages/C and C++
 
 %description -n gcc47-testresults
@@ -707,12 +686,8 @@ TCFLAGS="$RPM_OPT_FLAGS" GCJFLAGS="$RPM_OPT_FLAGS" \
 %else
        --program-suffix=%{binsuffix} \
        --enable-linux-futex \
-%ifarch ia64
-       --with-system-libunwind \
-%else
        --without-system-libunwind \
 %endif
-%endif
 %if "%{TARGET_ARCH}" == "armv5tel"
        --with-arch=armv5te \
        --with-float=soft \
@@ -753,7 +728,7 @@ make stage1-bubble $PARALLEL
 make all-target-libffi $PARALLEL
 %else
 # Only run profiled bootstrap on archs where it works
-#%ifarch %ix86 x86_64 ppc ppc64 ia64
+#%ifarch %ix86 x86_64 
 #make profiledbootstrap-lean STAGE1_CFLAGS="-O -g" BOOT_CFLAGS="$RPM_OPT_FLAGS" $PARALLEL
 #%else
 %ifarch %arm
@@ -1007,9 +982,6 @@ crt32_list=$RPM_BUILD_ROOT%{versmainlibdirbi32}/crt*.o
 crt64_list=$RPM_BUILD_ROOT%{versmainlibdirbi64}/crt*.o
 %endif
 %endif
-for o in $crt_list $crt32_list $crt64_list; do
-  objcopy -R ".comment.SUSE.OPTs" $o
-done
 %endif
 
 %if 0%{?building_libjava:1}