Changeset 353 for spec/trunk/SPECS/gcc4.spec
- Timestamp:
- Jul 23, 2013, 11:18:22 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
spec/trunk/SPECS/gcc4.spec
r319 r353 2 2 %global gcc_target_platform %{_target_cpu} 3 3 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 4 13 Summary: Various compilers (C, C++, Objective-C, Java, ...) 5 14 Name: gcc 6 Version: %{gcc_version} 7 Release: 1 5%{?dist}15 Version: %{gcc_version}.16 16 Release: 1%{?dist} 8 17 9 18 # libgcc, libgfortran, libmudflap, libgomp, libstdc++ and crtstuff have … … 13 22 URL: http://gcc.gnu.org 14 23 15 Source0: gcc-os2-2 0111223.tar.bz224 Source0: gcc-os2-28901fb3d124e92951c7a69eaac678bc13924291.tar.bz2 16 25 Patch0: gcc-os2.diff 17 26 18 BuildRoot: %{_tmppath}/%{name}-%{version}-root-%(%{__id_u} -n)19 20 27 Obsoletes: gcc < %{gcc_version} 21 28 22 BuildRequires: binutils 29 BuildRequires: binutils make 30 #BuildRequires: os2-base-fhs 31 BuildRequires: ash gcc gcc-wlink gcc-wrc grep gettext-devel diffutils gawk flex sed 23 32 BuildRequires: gmp-devel >= 4.1.2-8, mpfr-devel >= 2.2.1 24 33 25 Requires: libgcc446 = %{gcc_version} 34 Requires: libgcc446 = %{version}-%{release} 35 Requires: libssp = %{version}-%{release} 36 Requires: libstdc++ = %{version}-%{release} 37 Requires: libsupc++ = %{version}-%{release} 26 38 Requires: libc-devel >= 0.6.3 27 39 Requires: binutils … … 43 55 Summary: GCC stack protector shared library 44 56 Group: System Environment/Libraries 57 Obsoletes: gcc-stack-protector 45 58 46 59 %description -n libssp … … 51 64 Summary: GNU Standard C++ Library v3 52 65 Group: System Environment/Libraries 66 Obsoletes: gcc-stdc++-shared-library 53 67 54 68 %description -n libstdc++ … … 58 72 Summary: GNU Standard C++ Library v3 subset 59 73 Group: System Environment/Libraries 74 Obsoletes: gcc-supc++-shared-library 60 75 61 76 %description -n libsupc++ … … 93 108 export BEGINLIBPATH="$script_dir/gcc${BEGINLIBPATH:+;$BEGINLIBPATH}" 94 109 95 export CONFIG_SHELL=/@unixroot/usr/bin/sh.exe; 96 export AWK=awk; 110 export CONFIG_SHELL=%{_bindir}/sh.exe 97 111 export CFLAGS="$RPM_OPT_FLAGS -DEMX -DOS2" 98 112 export CXXFLAGS="$RPM_OPT_FLAGS -DEMX -DOS2" 99 113 export LDFLAGS="-g -Zexe -Zomf -Zmap -Zargs-wild -Zhigh-mem" 100 export LANG=""; 114 export LANG=C 115 101 116 ../configure --prefix=%{_prefix} \ 102 117 --with-sysroot=/@unixroot \ … … 126 141 127 142 #build dll 128 dllar -o stdcpp.dll i386-pc-os2-emx/libstdc++-v3/src/.libs/ stdc++.a \143 dllar -o stdcpp.dll i386-pc-os2-emx/libstdc++-v3/src/.libs/libstdc++.a \ 129 144 -d "GNU stdc++ %{gcc_version}" \ 130 145 -nolxlite -flags "-Zmap -Zhigh-mem -Zomf -g" \ … … 138 153 139 154 #build dll 140 dllar -o supcpp.dll i386-pc-os2-emx/libstdc++-v3/libsupc++/.libs/ supc++.a \155 dllar -o supcpp.dll i386-pc-os2-emx/libstdc++-v3/libsupc++/.libs/libsupc++.a \ 141 156 -d "GNU supc++ %{gcc_version}" \ 142 157 -nolxlite -flags "-Zmap -Zhigh-mem -Zomf -g" \ … … 170 185 rm %{buildroot}%{_libdir}/*.la 171 186 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 187 ln -s ./cc1.exe %{buildroot}%{_libexecdir}/gcc/i386-pc-os2-emx/%{gcc_version}/cc1 188 ln -s ./cc1plus.exe %{buildroot}%{_libexecdir}/gcc/i386-pc-os2-emx/%{gcc_version}/cc1plus 176 189 177 190 #yd fix attributes for executables … … 227 240 %{_usr}/man 228 241 %{_usr}/share 242 %doc ChangeLog ChangeLog.* 243 %doc README README.* 244 %doc COPYING COPYING.* 245 %doc MAINTAINERS 229 246 230 247 %files -n libssp … … 252 269 253 270 %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++ 256 278 257 279 * Mon Jan 09 2012 yd
Note:
See TracChangeset
for help on using the changeset viewer.