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

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

spec: libc, removed libiberty.h since it is already in binutils-devel. ticket#103 and ticket#188.

  • Property svn:eol-style set to native
File size: 6.0 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: 27%{?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}/libiberty.h
103rm -f %{buildroot}%{_includedir}/symcat.h
104rm -f %{buildroot}%{_libdir}/libbfd.*
105rm -f %{buildroot}%{_libdir}/libopcodes.*
106
107#remove libstdc++/supc++ static libs (built with gcc 3.x)
108rm -f %{buildroot}%{_libdir}/libstdc++.*
109rm -f %{buildroot}%{_libdir}/libsupc++.*
110rm -f %{buildroot}%{_libdir}/libiberty.*
111
112rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe
113
114# build omf libraries
115cd %{buildroot}%{_libdir}
116cmd /c "@MakeOmfLibs.cmd"
117
118%clean
119rm -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
Note: See TracBrowser for help on using the repository browser.