Ignore:
Timestamp:
Jul 23, 2013, 11:18:22 AM (12 years ago)
Author:
dmik
Message:

spec: gcc4: Release 4.4.6.16-1.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • spec/trunk/SPECS/gcc4.spec

    r319 r353  
    22%global gcc_target_platform %{_target_cpu}
    33
     4# New package version scheme: X.Y.Z.N-R, where X.Y.Z is the GCC release (e.g.
     5# 4.5.4, matches gcc_version above), N is the OS/2 release (1, 2, etc) and R is
     6# the RPM release (1, 2, etc). The OS/2 release number increases with each
     7# OS/2 specific update to the sources followed by a new build, the RPM repease
     8# number increases with each new RPM build (which may use the same source tree
     9# but fix only some RPM-specific things). Note that the RPM release number
     10# resets to 1 each time the OS/2 release increases (which is reset to 1 in turn
     11# when the GCC release changes.
     12
    413Summary: Various compilers (C, C++, Objective-C, Java, ...)
    514Name: gcc
    6 Version: %{gcc_version}
    7 Release: 15%{?dist}
     15Version: %{gcc_version}.16
     16Release: 1%{?dist}
    817
    918# libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have
     
    1322URL: http://gcc.gnu.org
    1423
    15 Source0: gcc-os2-20111223.tar.bz2
     24Source0: gcc-os2-28901fb3d124e92951c7a69eaac678bc13924291.tar.bz2
    1625Patch0: gcc-os2.diff
    1726
    18 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)
    19 
    2027Obsoletes: gcc < %{gcc_version}
    2128
    22 BuildRequires: binutils
     29BuildRequires: binutils make
     30#BuildRequires: os2-base-fhs
     31BuildRequires: ash gcc gcc-wlink gcc-wrc grep gettext-devel diffutils gawk flex sed
    2332BuildRequires: gmp-devel >= 4.1.2-8, mpfr-devel >= 2.2.1
    2433
    25 Requires: libgcc446 = %{gcc_version}
     34Requires: libgcc446 = %{version}-%{release}
     35Requires: libssp = %{version}-%{release}
     36Requires: libstdc++ = %{version}-%{release}
     37Requires: libsupc++ = %{version}-%{release}
    2638Requires: libc-devel >= 0.6.3
    2739Requires: binutils
     
    4355Summary: GCC stack protector shared library
    4456Group: System Environment/Libraries
     57Obsoletes: gcc-stack-protector
    4558
    4659%description -n libssp
     
    5164Summary: GNU Standard C++ Library v3
    5265Group: System Environment/Libraries
     66Obsoletes: gcc-stdc++-shared-library
    5367
    5468%description -n libstdc++
     
    5872Summary: GNU Standard C++ Library v3 subset
    5973Group: System Environment/Libraries
     74Obsoletes: gcc-supc++-shared-library
    6075
    6176%description -n libsupc++
     
    93108export BEGINLIBPATH="$script_dir/gcc${BEGINLIBPATH:+;$BEGINLIBPATH}"
    94109
    95 export CONFIG_SHELL=/@unixroot/usr/bin/sh.exe;
    96 export AWK=awk;
     110export CONFIG_SHELL=%{_bindir}/sh.exe
    97111export CFLAGS="$RPM_OPT_FLAGS -DEMX -DOS2"
    98112export CXXFLAGS="$RPM_OPT_FLAGS -DEMX -DOS2"
    99113export LDFLAGS="-g -Zexe -Zomf -Zmap -Zargs-wild -Zhigh-mem"
    100 export LANG="";
     114export LANG=C
     115
    101116../configure --prefix=%{_prefix} \
    102117    --with-sysroot=/@unixroot \
     
    126141
    127142#build dll
    128 dllar -o stdcpp.dll i386-pc-os2-emx/libstdc++-v3/src/.libs/stdc++.a \
     143dllar -o stdcpp.dll i386-pc-os2-emx/libstdc++-v3/src/.libs/libstdc++.a \
    129144        -d "GNU stdc++ %{gcc_version}" \
    130145        -nolxlite -flags "-Zmap -Zhigh-mem -Zomf -g" \
     
    138153
    139154#build dll
    140 dllar -o supcpp.dll i386-pc-os2-emx/libstdc++-v3/libsupc++/.libs/supc++.a \
     155dllar -o supcpp.dll i386-pc-os2-emx/libstdc++-v3/libsupc++/.libs/libsupc++.a \
    141156        -d "GNU supc++ %{gcc_version}" \
    142157        -nolxlite -flags "-Zmap -Zhigh-mem -Zomf -g" \
     
    170185rm %{buildroot}%{_libdir}/*.la
    171186
    172 #mv %{buildroot}%{_usr}/readme.os2 $RPM_BUILD_ROOT%_docdir/%{name}-%{version}/
    173 
    174 ln -s ./cc1.exe %{buildroot}%{_libexecdir}/gcc/i386-pc-os2-emx/%{version}/cc1
    175 ln -s ./cc1plus.exe %{buildroot}%{_libexecdir}/gcc/i386-pc-os2-emx/%{version}/cc1plus
     187ln -s ./cc1.exe %{buildroot}%{_libexecdir}/gcc/i386-pc-os2-emx/%{gcc_version}/cc1
     188ln -s ./cc1plus.exe %{buildroot}%{_libexecdir}/gcc/i386-pc-os2-emx/%{gcc_version}/cc1plus
    176189
    177190#yd fix attributes for executables
     
    227240%{_usr}/man
    228241%{_usr}/share
     242%doc ChangeLog ChangeLog.*
     243%doc README README.*
     244%doc COPYING COPYING.*
     245%doc MAINTAINERS
    229246
    230247%files -n libssp
     
    252269
    253270%changelog
    254 * Wed Jan 11 2012 yd
    255 - use more conventionional names for shared libraries packages.
     271
     272* Mon Jul 23 2013 Dmitriy Kuminov <coding@dmik.org> - 4.4.6.16-1
     273- New OS/2 Release 16 of 4.4.6. See ChangeLog.OS2 for more information.
     274- Rename the following packages to better match the conventions:
     275  + gcc-stack-protector => libssp
     276  + gcc-stdc++-shared-library => libstdc++
     277  + gcc-supc++-shared-library => libsupc++
    256278
    257279* Mon Jan 09 2012 yd
Note: See TracChangeset for help on using the changeset viewer.