| 1 | #disable lxlite strip | 
|---|
| 2 | %define __os_install_post       %{nil} | 
|---|
| 3 |  | 
|---|
| 4 | Name:           libc | 
|---|
| 5 | License:        BSD; GPL v2 or later; LGPL v2.1 or later | 
|---|
| 6 | Summary:        Standard Shared Libraries | 
|---|
| 7 | Group:          System/Libraries | 
|---|
| 8 | Version:        0.6.6 | 
|---|
| 9 | Release:        26%{?dist} | 
|---|
| 10 | Url:            http://svn.netlabs.org/libc | 
|---|
| 11 |  | 
|---|
| 12 | BuildRoot:      %{_tmppath}/%{name}-%{version}-build | 
|---|
| 13 | Source:         libc-%{version}.zip | 
|---|
| 14 | Source1:        libc-emxomf.zip | 
|---|
| 15 | Patch0:         libc.patch | 
|---|
| 16 |  | 
|---|
| 17 | # These patches are not actually applied but they record what | 
|---|
| 18 | # needs to be done to the stock LIBC 0.6 source in order to build | 
|---|
| 19 | # emxomf.exe contained in libc-emxomf.zip | 
|---|
| 20 | Patch101:       libc-dmik-emxomf-02-remove-asterisk.diff | 
|---|
| 21 | Patch102:       libc-yuri-emxomf-verbose-warnings-3.patch | 
|---|
| 22 |  | 
|---|
| 23 | BuildRequires:  rexx_exe | 
|---|
| 24 |  | 
|---|
| 25 | %description | 
|---|
| 26 | kLIBC is a C runtime library in which the coder is exploring The Single Unix | 
|---|
| 27 | Specification (SUS) and various *BSD, Sun and Linux interfaces used in 'portable' | 
|---|
| 28 | software. While implementing SUS completely and providing a great range of special | 
|---|
| 29 | BSD, Sun and Linux APIs is a kind of ultimate goal, the main focus is on what is | 
|---|
| 30 | interesting to play with and what is requested by porters using kLIBC. | 
|---|
| 31 |  | 
|---|
| 32 |  | 
|---|
| 33 | %package devel | 
|---|
| 34 | License:        BSD; GPL v2 or later; LGPL v2.1 or later | 
|---|
| 35 | Summary:        Include Files and Libraries Mandatory for Development | 
|---|
| 36 | Group:          Development/Libraries/C and C++ | 
|---|
| 37 | Requires:       libc = %{version}-%{release} | 
|---|
| 38 |  | 
|---|
| 39 | %description devel | 
|---|
| 40 | These libraries are needed to develop programs which use the standard C | 
|---|
| 41 | library. | 
|---|
| 42 |  | 
|---|
| 43 |  | 
|---|
| 44 | %package -n db1-devel | 
|---|
| 45 | License:        BSD; GPL v2 or later; LGPL v2.1 or later | 
|---|
| 46 | Summary:        Include Files and Libraries Mandatory for Development (db headers) | 
|---|
| 47 | Group:          Development/Libraries/C and C++ | 
|---|
| 48 |  | 
|---|
| 49 | %description -n db1-devel | 
|---|
| 50 | These libraries are needed to develop programs which use the standard C | 
|---|
| 51 | library (db headers). | 
|---|
| 52 |  | 
|---|
| 53 |  | 
|---|
| 54 | %package gettext-devel | 
|---|
| 55 | License:        BSD; GPL v2 or later; LGPL v2.1 or later | 
|---|
| 56 | Summary:        Include Files and Libraries Mandatory for Development (gettext headers) | 
|---|
| 57 | Group:          Development/Libraries/C and C++ | 
|---|
| 58 | Provides:       gettext-devel | 
|---|
| 59 | Requires:       libc = %{version}-%{release} | 
|---|
| 60 |  | 
|---|
| 61 | %description gettext-devel | 
|---|
| 62 | These libraries are needed to develop programs which use the standard C | 
|---|
| 63 | library (gettext headers). | 
|---|
| 64 |  | 
|---|
| 65 |  | 
|---|
| 66 | %package debug | 
|---|
| 67 | Summary: HLL debug data for exception handling support. | 
|---|
| 68 |  | 
|---|
| 69 | %description debug | 
|---|
| 70 | HLL debug data for exception handling support. | 
|---|
| 71 |  | 
|---|
| 72 |  | 
|---|
| 73 | %prep | 
|---|
| 74 | %setup -q -c -a 1 | 
|---|
| 75 | %patch0 | 
|---|
| 76 |  | 
|---|
| 77 | %install | 
|---|
| 78 | rm -rf $RPM_BUILD_ROOT | 
|---|
| 79 | mkdir -p %{buildroot}%{_bindir} | 
|---|
| 80 | mkdir -p %{buildroot}%{_includedir} | 
|---|
| 81 | mkdir -p %{buildroot}%{_libdir} | 
|---|
| 82 | mkdir -p %{buildroot}%{_usr}/man | 
|---|
| 83 | mkdir -p %{buildroot}%{_usr}/info | 
|---|
| 84 |  | 
|---|
| 85 | cp -p -r usr/bin/* %{buildroot}%{_bindir} | 
|---|
| 86 | cp -p -r usr/include/* %{buildroot}%{_includedir} | 
|---|
| 87 | cp -p -r usr/lib/* %{buildroot}%{_libdir} | 
|---|
| 88 | cp -p -r usr/man/* %{buildroot}%{_usr}/man | 
|---|
| 89 | cp -p -r usr/man/* %{buildroot}%{_usr}/info | 
|---|
| 90 |  | 
|---|
| 91 | # add new files | 
|---|
| 92 | cp -p -r emxomf.exe %{buildroot}%{_bindir} | 
|---|
| 93 | cp -p -r emxomfstrip.exe %{buildroot}%{_bindir} | 
|---|
| 94 | cp -p -r os2safe.h %{buildroot}%{_includedir} | 
|---|
| 95 | cp -p -r libos2.a %{buildroot}%{_libdir} | 
|---|
| 96 |  | 
|---|
| 97 | #remove (old) binutils headers/libs | 
|---|
| 98 | rm -f %{buildroot}%{_includedir}/ansidecl.h | 
|---|
| 99 | rm -f %{buildroot}%{_includedir}/bfd.h | 
|---|
| 100 | rm -f %{buildroot}%{_includedir}/bfdlink.h | 
|---|
| 101 | rm -f %{buildroot}%{_includedir}/dis-asm.h | 
|---|
| 102 | rm -f %{buildroot}%{_includedir}/symcat.h | 
|---|
| 103 | rm -f %{buildroot}%{_libdir}/libbfd.* | 
|---|
| 104 | rm -f %{buildroot}%{_libdir}/libopcodes.* | 
|---|
| 105 |  | 
|---|
| 106 | #remove libstdc++/supc++ static libs (built with gcc 3.x) | 
|---|
| 107 | rm -f %{buildroot}%{_libdir}/libstdc++.* | 
|---|
| 108 | rm -f %{buildroot}%{_libdir}/libsupc++.* | 
|---|
| 109 | rm -f %{buildroot}%{_libdir}/libiberty.* | 
|---|
| 110 |  | 
|---|
| 111 | rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe | 
|---|
| 112 |  | 
|---|
| 113 | # build omf libraries | 
|---|
| 114 | cd %{buildroot}%{_libdir} | 
|---|
| 115 | cmd /c "@MakeOmfLibs.cmd" | 
|---|
| 116 |  | 
|---|
| 117 | %clean | 
|---|
| 118 | rm -rf $RPM_BUILD_ROOT | 
|---|
| 119 |  | 
|---|
| 120 |  | 
|---|
| 121 | %files | 
|---|
| 122 | %defattr(-,root,root) | 
|---|
| 123 | %doc usr/doc/gcc-3.3.5/* | 
|---|
| 124 | %{_libdir}/libc06*.dll | 
|---|
| 125 |  | 
|---|
| 126 | %files devel | 
|---|
| 127 | %defattr(-,root,root) | 
|---|
| 128 | %doc %{_prefix}/man/man1/* | 
|---|
| 129 | %doc %{_prefix}/man/man7/* | 
|---|
| 130 | %{_bindir} | 
|---|
| 131 | %exclude %{_bindir}/*.dbg | 
|---|
| 132 | %{_includedir} | 
|---|
| 133 | %exclude %{_includedir}/db.h | 
|---|
| 134 | %exclude %{_includedir}/ndbm.h | 
|---|
| 135 | %exclude %{_includedir}/libintl.h | 
|---|
| 136 | %{_usr}/info | 
|---|
| 137 | %{_libdir} | 
|---|
| 138 | %exclude %{_libdir}/*.dbg | 
|---|
| 139 | %exclude %{_libdir}/gcc335.dll | 
|---|
| 140 |  | 
|---|
| 141 | %files -n db1-devel | 
|---|
| 142 | %defattr(-,root,root) | 
|---|
| 143 | %{_includedir}/db.h | 
|---|
| 144 | %{_includedir}/ndbm.h | 
|---|
| 145 |  | 
|---|
| 146 | %files gettext-devel | 
|---|
| 147 | %defattr(-,root,root) | 
|---|
| 148 | %{_includedir}/libintl.h | 
|---|
| 149 |  | 
|---|
| 150 | %files debug | 
|---|
| 151 | %defattr(-,root,root) | 
|---|
| 152 | %{_bindir}/*.dbg | 
|---|
| 153 | %{_libdir}/*.dbg | 
|---|
| 154 |  | 
|---|
| 155 | %changelog | 
|---|
| 156 | * Sat Feb 07 2015 yd 0.6.6-26 | 
|---|
| 157 | - r3946, readded SafeWinUpper. | 
|---|
| 158 | - removed asterisk patch from emxomf. | 
|---|
| 159 |  | 
|---|
| 160 | * Fri Jan 23 2015 yd 0.6.6-25 | 
|---|
| 161 | - added builtin.h and stddef.h patches required for building gcc 4.9.x. | 
|---|
| 162 |  | 
|---|
| 163 | * Sun Jan 18 2015 yd | 
|---|
| 164 | - added new SafeDos* wrappers from trunk r3944. | 
|---|
| 165 |  | 
|---|
| 166 | * Sun Jan 11 2015 yd | 
|---|
| 167 | - removed ansidecl.h since it is already in binutils-devel. ticket#103. | 
|---|
| 168 |  | 
|---|
| 169 | * Thu Jan 09 2015 yd | 
|---|
| 170 | - added new SafeDos* wrappers from trunk r3942 and r3943. | 
|---|
| 171 | - added emxomfstrip binary from trunk. | 
|---|
| 172 |  | 
|---|
| 173 | * Tue Jan 06 2015 yd 0.6.6-21 | 
|---|
| 174 | - update to libc 0.6.6-csd6, added omf libraries. | 
|---|
| 175 |  | 
|---|
| 176 | * Tue Aug 19 2014 Dmitriy Kuminov <coding@dmik.org> 0.6.5-20 | 
|---|
| 177 | - Merged emxomf-remove-asterick.diff from libc ticket #220. | 
|---|
| 178 | - Made libc-devel and libc-gettext-devel strictly depend on current libc. | 
|---|
| 179 |  | 
|---|
| 180 | * Wed Jun 25 2014 yd | 
|---|
| 181 | - emxomf, merged libc tickets #251, #293, #295. | 
|---|
| 182 |  | 
|---|
| 183 | * Thu Sep 11 2013 yd | 
|---|
| 184 | - ticket#63: remove gcc335.dll from devel distribution. | 
|---|
| 185 |  | 
|---|
| 186 | * Thu Mar 21 2013 yd | 
|---|
| 187 | - renamed gettext-devel to libc-gettext-devel to make it more visible. | 
|---|
| 188 |  | 
|---|
| 189 | * Thu Dec 13 2012 yd | 
|---|
| 190 | - remove gcc 3.x stdc++/supc++ static libraries. | 
|---|
| 191 |  | 
|---|
| 192 | * Mon May 11 2012 yd | 
|---|
| 193 | - remove obsolete binutil headers/libs | 
|---|
| 194 |  | 
|---|
| 195 | * Tue Apr 17 2012 yd | 
|---|
| 196 | - update to csd5 | 
|---|
| 197 |  | 
|---|
| 198 | * Mon Jan 09 2012 yd | 
|---|
| 199 | - commented out sbrk/_sbrk definitions in stdlib.h (use unistd.h ones). | 
|---|
| 200 |  | 
|---|
| 201 | * Fri Dec 16 2011 yd | 
|---|
| 202 | - restored stdarg.h/cdefs.h from original libc distribution. | 
|---|
| 203 |  | 
|---|
| 204 | * Thu Oct 20 2011 yd | 
|---|
| 205 | - included emxomf.exe by dmik to workaround gcc/wlink bugs. | 
|---|
| 206 |  | 
|---|
| 207 | * Wed Oct 12 2011 yd | 
|---|
| 208 | - fixed mmap include | 
|---|
| 209 |  | 
|---|
| 210 | * Wed Sep 05 2011 yd | 
|---|
| 211 | - removed binutils | 
|---|
| 212 |  | 
|---|
| 213 | * Tue Sep 04 2011 yd | 
|---|
| 214 | - update to csd4 | 
|---|