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: 28%{?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 |
|
---|
43 | %description devel
|
---|
44 | These libraries are needed to develop programs which use the standard C
|
---|
45 | library.
|
---|
46 |
|
---|
47 |
|
---|
48 | %package -n db1-devel
|
---|
49 | License: BSD; GPL v2 or later; LGPL v2.1 or later
|
---|
50 | Summary: Include Files and Libraries Mandatory for Development (db headers)
|
---|
51 | Group: Development/Libraries/C and C++
|
---|
52 |
|
---|
53 | %description -n db1-devel
|
---|
54 | These libraries are needed to develop programs which use the standard C
|
---|
55 | library (db headers).
|
---|
56 |
|
---|
57 |
|
---|
58 | %package gettext-devel
|
---|
59 | License: BSD; GPL v2 or later; LGPL v2.1 or later
|
---|
60 | Summary: Include Files and Libraries Mandatory for Development (gettext headers)
|
---|
61 | Group: Development/Libraries/C and C++
|
---|
62 | Provides: gettext-devel
|
---|
63 | Requires: libc = %{version}-%{release}
|
---|
64 |
|
---|
65 | %description gettext-devel
|
---|
66 | These libraries are needed to develop programs which use the standard C
|
---|
67 | library (gettext headers).
|
---|
68 |
|
---|
69 |
|
---|
70 | %package debug
|
---|
71 | Summary: HLL debug data for exception handling support.
|
---|
72 |
|
---|
73 | %description debug
|
---|
74 | HLL debug data for exception handling support.
|
---|
75 |
|
---|
76 |
|
---|
77 | %prep
|
---|
78 | %setup -q -c -a 1 -a 2
|
---|
79 | %patch0
|
---|
80 |
|
---|
81 | %install
|
---|
82 | rm -rf $RPM_BUILD_ROOT
|
---|
83 | mkdir -p %{buildroot}%{_bindir}
|
---|
84 | mkdir -p %{buildroot}%{_includedir}
|
---|
85 | mkdir -p %{buildroot}%{_libdir}
|
---|
86 | mkdir -p %{buildroot}%{_usr}/man
|
---|
87 | mkdir -p %{buildroot}%{_usr}/info
|
---|
88 |
|
---|
89 | cp -p -r usr/bin/* %{buildroot}%{_bindir}
|
---|
90 | cp -p -r usr/include/* %{buildroot}%{_includedir}
|
---|
91 | cp -p -r usr/lib/* %{buildroot}%{_libdir}
|
---|
92 | cp -p -r usr/man/* %{buildroot}%{_usr}/man
|
---|
93 | cp -p -r usr/man/* %{buildroot}%{_usr}/info
|
---|
94 |
|
---|
95 | # add new files
|
---|
96 | cp -p -r emxomf.exe %{buildroot}%{_bindir}
|
---|
97 | cp -p -r emxomfstrip.exe %{buildroot}%{_bindir}
|
---|
98 | cp -p -r os2safe.h %{buildroot}%{_includedir}
|
---|
99 | cp -p -r libos2.a %{buildroot}%{_libdir}
|
---|
100 |
|
---|
101 | # add hotfix DLLs
|
---|
102 | cp -p -r libc066.* %{buildroot}%{_libdir}
|
---|
103 |
|
---|
104 | #remove (old) binutils headers/libs
|
---|
105 | rm -f %{buildroot}%{_includedir}/ansidecl.h
|
---|
106 | rm -f %{buildroot}%{_includedir}/bfd.h
|
---|
107 | rm -f %{buildroot}%{_includedir}/bfdlink.h
|
---|
108 | rm -f %{buildroot}%{_includedir}/dis-asm.h
|
---|
109 | rm -f %{buildroot}%{_includedir}/libiberty.h
|
---|
110 | rm -f %{buildroot}%{_includedir}/symcat.h
|
---|
111 | rm -f %{buildroot}%{_libdir}/libbfd.*
|
---|
112 | rm -f %{buildroot}%{_libdir}/libopcodes.*
|
---|
113 |
|
---|
114 | #remove libstdc++/supc++ static libs (built with gcc 3.x)
|
---|
115 | rm -f %{buildroot}%{_libdir}/libstdc++.*
|
---|
116 | rm -f %{buildroot}%{_libdir}/libsupc++.*
|
---|
117 | rm -f %{buildroot}%{_libdir}/libiberty.*
|
---|
118 |
|
---|
119 | rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe
|
---|
120 |
|
---|
121 | # build omf libraries
|
---|
122 | cd %{buildroot}%{_libdir}
|
---|
123 | cmd /c "@MakeOmfLibs.cmd"
|
---|
124 |
|
---|
125 | %clean
|
---|
126 | rm -rf $RPM_BUILD_ROOT
|
---|
127 |
|
---|
128 |
|
---|
129 | %files
|
---|
130 | %defattr(-,root,root)
|
---|
131 | %doc usr/doc/gcc-3.3.5/*
|
---|
132 | %{_libdir}/libc06*.dll
|
---|
133 |
|
---|
134 | %files devel
|
---|
135 | %defattr(-,root,root)
|
---|
136 | %doc %{_prefix}/man/man1/*
|
---|
137 | %doc %{_prefix}/man/man7/*
|
---|
138 | %{_bindir}
|
---|
139 | %exclude %{_bindir}/*.dbg
|
---|
140 | %{_includedir}
|
---|
141 | %exclude %{_includedir}/db.h
|
---|
142 | %exclude %{_includedir}/ndbm.h
|
---|
143 | %exclude %{_includedir}/libintl.h
|
---|
144 | %{_usr}/info
|
---|
145 | %{_libdir}
|
---|
146 | %exclude %{_libdir}/*.dbg
|
---|
147 | %exclude %{_libdir}/gcc335.dll
|
---|
148 |
|
---|
149 | %files -n db1-devel
|
---|
150 | %defattr(-,root,root)
|
---|
151 | %{_includedir}/db.h
|
---|
152 | %{_includedir}/ndbm.h
|
---|
153 |
|
---|
154 | %files gettext-devel
|
---|
155 | %defattr(-,root,root)
|
---|
156 | %{_includedir}/libintl.h
|
---|
157 |
|
---|
158 | %files debug
|
---|
159 | %defattr(-,root,root)
|
---|
160 | %{_bindir}/*.dbg
|
---|
161 | %{_libdir}/*.dbg
|
---|
162 |
|
---|
163 | %changelog
|
---|
164 | * Mon Aug 8 2016 Dmitriy Kuminov <coding@dmik.org> 0.6.6-28
|
---|
165 | - Apply patches from tickets #361-365 to make fork() work in dash
|
---|
166 | and similar cases and other minor improvements.
|
---|
167 |
|
---|
168 | * Tue Jun 14 2016 yd <yd@os2power.com> 0.6.6-27
|
---|
169 | - removed libiberty.h since it is already in binutils-devel. ticket#103 and ticket#188.
|
---|
170 |
|
---|
171 | * Sat Feb 07 2015 yd 0.6.6-26
|
---|
172 | - r3946, readded SafeWinUpper.
|
---|
173 | - removed asterisk patch from emxomf.
|
---|
174 |
|
---|
175 | * Fri Jan 23 2015 yd 0.6.6-25
|
---|
176 | - added builtin.h and stddef.h patches required for building gcc 4.9.x.
|
---|
177 |
|
---|
178 | * Sun Jan 18 2015 yd
|
---|
179 | - added new SafeDos* wrappers from trunk r3944.
|
---|
180 |
|
---|
181 | * Sun Jan 11 2015 yd
|
---|
182 | - removed ansidecl.h since it is already in binutils-devel. ticket#103.
|
---|
183 |
|
---|
184 | * Thu Jan 09 2015 yd
|
---|
185 | - added new SafeDos* wrappers from trunk r3942 and r3943.
|
---|
186 | - added emxomfstrip binary from trunk.
|
---|
187 |
|
---|
188 | * Tue Jan 06 2015 yd 0.6.6-21
|
---|
189 | - update to libc 0.6.6-csd6, added omf libraries.
|
---|
190 |
|
---|
191 | * Tue Aug 19 2014 Dmitriy Kuminov <coding@dmik.org> 0.6.5-20
|
---|
192 | - Merged emxomf-remove-asterick.diff from libc ticket #220.
|
---|
193 | - Made libc-devel and libc-gettext-devel strictly depend on current libc.
|
---|
194 |
|
---|
195 | * Wed Jun 25 2014 yd
|
---|
196 | - emxomf, merged libc tickets #251, #293, #295.
|
---|
197 |
|
---|
198 | * Thu Sep 11 2013 yd
|
---|
199 | - ticket#63: remove gcc335.dll from devel distribution.
|
---|
200 |
|
---|
201 | * Thu Mar 21 2013 yd
|
---|
202 | - renamed gettext-devel to libc-gettext-devel to make it more visible.
|
---|
203 |
|
---|
204 | * Thu Dec 13 2012 yd
|
---|
205 | - remove gcc 3.x stdc++/supc++ static libraries.
|
---|
206 |
|
---|
207 | * Mon May 11 2012 yd
|
---|
208 | - remove obsolete binutil headers/libs
|
---|
209 |
|
---|
210 | * Tue Apr 17 2012 yd
|
---|
211 | - update to csd5
|
---|
212 |
|
---|
213 | * Mon Jan 09 2012 yd
|
---|
214 | - commented out sbrk/_sbrk definitions in stdlib.h (use unistd.h ones).
|
---|
215 |
|
---|
216 | * Fri Dec 16 2011 yd
|
---|
217 | - restored stdarg.h/cdefs.h from original libc distribution.
|
---|
218 |
|
---|
219 | * Thu Oct 20 2011 yd
|
---|
220 | - included emxomf.exe by dmik to workaround gcc/wlink bugs.
|
---|
221 |
|
---|
222 | * Wed Oct 12 2011 yd
|
---|
223 | - fixed mmap include
|
---|
224 |
|
---|
225 | * Wed Sep 05 2011 yd
|
---|
226 | - removed binutils
|
---|
227 |
|
---|
228 | * Tue Sep 04 2011 yd
|
---|
229 | - update to csd4
|
---|