source: spec/trunk/SPECS/libc.spec@ 1129

Last change on this file since 1129 was 1092, checked in by dmik, 9 years ago

spec: libc: Release version 0.6.6-32.

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