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: 27%{?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}/libiberty.h
|
---|
103 | rm -f %{buildroot}%{_includedir}/symcat.h
|
---|
104 | rm -f %{buildroot}%{_libdir}/libbfd.*
|
---|
105 | rm -f %{buildroot}%{_libdir}/libopcodes.*
|
---|
106 |
|
---|
107 | #remove libstdc++/supc++ static libs (built with gcc 3.x)
|
---|
108 | rm -f %{buildroot}%{_libdir}/libstdc++.*
|
---|
109 | rm -f %{buildroot}%{_libdir}/libsupc++.*
|
---|
110 | rm -f %{buildroot}%{_libdir}/libiberty.*
|
---|
111 |
|
---|
112 | rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe
|
---|
113 |
|
---|
114 | # build omf libraries
|
---|
115 | cd %{buildroot}%{_libdir}
|
---|
116 | cmd /c "@MakeOmfLibs.cmd"
|
---|
117 |
|
---|
118 | %clean
|
---|
119 | rm -rf $RPM_BUILD_ROOT
|
---|
120 |
|
---|
121 |
|
---|
122 | %files
|
---|
123 | %defattr(-,root,root)
|
---|
124 | %doc usr/doc/gcc-3.3.5/*
|
---|
125 | %{_libdir}/libc06*.dll
|
---|
126 |
|
---|
127 | %files devel
|
---|
128 | %defattr(-,root,root)
|
---|
129 | %doc %{_prefix}/man/man1/*
|
---|
130 | %doc %{_prefix}/man/man7/*
|
---|
131 | %{_bindir}
|
---|
132 | %exclude %{_bindir}/*.dbg
|
---|
133 | %{_includedir}
|
---|
134 | %exclude %{_includedir}/db.h
|
---|
135 | %exclude %{_includedir}/ndbm.h
|
---|
136 | %exclude %{_includedir}/libintl.h
|
---|
137 | %{_usr}/info
|
---|
138 | %{_libdir}
|
---|
139 | %exclude %{_libdir}/*.dbg
|
---|
140 | %exclude %{_libdir}/gcc335.dll
|
---|
141 |
|
---|
142 | %files -n db1-devel
|
---|
143 | %defattr(-,root,root)
|
---|
144 | %{_includedir}/db.h
|
---|
145 | %{_includedir}/ndbm.h
|
---|
146 |
|
---|
147 | %files gettext-devel
|
---|
148 | %defattr(-,root,root)
|
---|
149 | %{_includedir}/libintl.h
|
---|
150 |
|
---|
151 | %files debug
|
---|
152 | %defattr(-,root,root)
|
---|
153 | %{_bindir}/*.dbg
|
---|
154 | %{_libdir}/*.dbg
|
---|
155 |
|
---|
156 | %changelog
|
---|
157 | * Tue Jun 14 2016 yd <yd@os2power.com> 0.6.6-27
|
---|
158 | - removed libiberty.h since it is already in binutils-devel. ticket#103 and ticket#188.
|
---|
159 |
|
---|
160 | * Sat Feb 07 2015 yd 0.6.6-26
|
---|
161 | - r3946, readded SafeWinUpper.
|
---|
162 | - removed asterisk patch from emxomf.
|
---|
163 |
|
---|
164 | * Fri Jan 23 2015 yd 0.6.6-25
|
---|
165 | - added builtin.h and stddef.h patches required for building gcc 4.9.x.
|
---|
166 |
|
---|
167 | * Sun Jan 18 2015 yd
|
---|
168 | - added new SafeDos* wrappers from trunk r3944.
|
---|
169 |
|
---|
170 | * Sun Jan 11 2015 yd
|
---|
171 | - removed ansidecl.h since it is already in binutils-devel. ticket#103.
|
---|
172 |
|
---|
173 | * Thu Jan 09 2015 yd
|
---|
174 | - added new SafeDos* wrappers from trunk r3942 and r3943.
|
---|
175 | - added emxomfstrip binary from trunk.
|
---|
176 |
|
---|
177 | * Tue Jan 06 2015 yd 0.6.6-21
|
---|
178 | - update to libc 0.6.6-csd6, added omf libraries.
|
---|
179 |
|
---|
180 | * Tue Aug 19 2014 Dmitriy Kuminov <coding@dmik.org> 0.6.5-20
|
---|
181 | - Merged emxomf-remove-asterick.diff from libc ticket #220.
|
---|
182 | - Made libc-devel and libc-gettext-devel strictly depend on current libc.
|
---|
183 |
|
---|
184 | * Wed Jun 25 2014 yd
|
---|
185 | - emxomf, merged libc tickets #251, #293, #295.
|
---|
186 |
|
---|
187 | * Thu Sep 11 2013 yd
|
---|
188 | - ticket#63: remove gcc335.dll from devel distribution.
|
---|
189 |
|
---|
190 | * Thu Mar 21 2013 yd
|
---|
191 | - renamed gettext-devel to libc-gettext-devel to make it more visible.
|
---|
192 |
|
---|
193 | * Thu Dec 13 2012 yd
|
---|
194 | - remove gcc 3.x stdc++/supc++ static libraries.
|
---|
195 |
|
---|
196 | * Mon May 11 2012 yd
|
---|
197 | - remove obsolete binutil headers/libs
|
---|
198 |
|
---|
199 | * Tue Apr 17 2012 yd
|
---|
200 | - update to csd5
|
---|
201 |
|
---|
202 | * Mon Jan 09 2012 yd
|
---|
203 | - commented out sbrk/_sbrk definitions in stdlib.h (use unistd.h ones).
|
---|
204 |
|
---|
205 | * Fri Dec 16 2011 yd
|
---|
206 | - restored stdarg.h/cdefs.h from original libc distribution.
|
---|
207 |
|
---|
208 | * Thu Oct 20 2011 yd
|
---|
209 | - included emxomf.exe by dmik to workaround gcc/wlink bugs.
|
---|
210 |
|
---|
211 | * Wed Oct 12 2011 yd
|
---|
212 | - fixed mmap include
|
---|
213 |
|
---|
214 | * Wed Sep 05 2011 yd
|
---|
215 | - removed binutils
|
---|
216 |
|
---|
217 | * Tue Sep 04 2011 yd
|
---|
218 | - update to csd4
|
---|