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

Last change on this file since 848 was 840, checked in by Yuri Dario, 9 years ago

spec: libc, Fix path definitions in paths.h header. ticket#200.

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