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