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

Last change on this file since 770 was 525, checked in by Yuri Dario, 11 years ago

spec: libc, r3946, readded SafeWinUpper, removed asterisk patch from emxomf.

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