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

Last change on this file since 438 was 438, checked in by dmik, 11 years ago

spec: libc: Release 0.6.5-20.

  • Property svn:eol-style set to native
File size: 4.9 KB
Line 
1
2Name: libc
3License: BSD; GPL v2 or later; LGPL v2.1 or later
4Summary: Standard Shared Libraries
5Group: System/Libraries
6Version: 0.6.5
7Release: 20%{?dist}
8Url: http://svn.netlabs.org/libc
9
10BuildRoot: %{_tmppath}/%{name}-%{version}-build
11Source: libc-%{version}.zip
12Source1: libc-emxomf.zip
13Patch0: libc.patch
14
15# These patches are not actually applied but they record what
16# needs to be done to the stock LIBC 0.6 source in order to build
17# emxomf.exe contained in libc-emxomf.zip
18Patch101: libc-dmik-emxomf-02-remove-asterisk.diff
19Patch102: libc-yuri-emxomf-verbose-warnings-3.patch
20Patch103: libc-steven-emxomf-index-too-large.diff
21
22BuildRequires: rexx_exe
23
24%description
25kLIBC is a C runtime library in which the coder is exploring The Single Unix
26Specification (SUS) and various *BSD, Sun and Linux interfaces used in 'portable'
27software. While implementing SUS completely and providing a great range of special
28BSD, Sun and Linux APIs is a kind of ultimate goal, the main focus is on what is
29interesting to play with and what is requested by porters using kLIBC.
30
31
32%package devel
33License: BSD; GPL v2 or later; LGPL v2.1 or later
34Summary: Include Files and Libraries Mandatory for Development
35Group: Development/Libraries/C and C++
36Requires: libc = %{version}-%{release}
37
38%description devel
39These libraries are needed to develop programs which use the standard C
40library.
41
42
43%package -n db1-devel
44License: BSD; GPL v2 or later; LGPL v2.1 or later
45Summary: Include Files and Libraries Mandatory for Development (db headers)
46Group: Development/Libraries/C and C++
47
48%description -n db1-devel
49These libraries are needed to develop programs which use the standard C
50library (db headers).
51
52
53%package gettext-devel
54License: BSD; GPL v2 or later; LGPL v2.1 or later
55Summary: Include Files and Libraries Mandatory for Development (gettext headers)
56Group: Development/Libraries/C and C++
57Provides: gettext-devel
58Requires: libc = %{version}-%{release}
59
60%description gettext-devel
61These libraries are needed to develop programs which use the standard C
62library (gettext headers).
63
64
65%prep
66%setup -q -c -a 1
67%patch0
68
69%install
70rm -rf $RPM_BUILD_ROOT
71mkdir -p %{buildroot}%{_bindir}
72mkdir -p %{buildroot}%{_includedir}
73mkdir -p %{buildroot}%{_libdir}
74mkdir -p %{buildroot}%{_usr}/i386-pc-os2-elf
75mkdir -p %{buildroot}%{_usr}/i386-pc-os2-emx
76mkdir -p %{buildroot}%{_usr}/man
77mkdir -p %{buildroot}%{_usr}/info
78
79cp -p -r usr/bin/* %{buildroot}%{_bindir}
80cp -p -r usr/include/* %{buildroot}%{_includedir}
81cp -p -r emxomf.exe %{buildroot}%{_bindir}
82cp -p -r usr/lib/* %{buildroot}%{_libdir}
83cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-elf
84cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-emx
85cp -p -r usr/man/* %{buildroot}%{_usr}/man
86cp -p -r usr/man/* %{buildroot}%{_usr}/info
87
88#remove (old) binutils headers/libs
89rm -f %{buildroot}%{_includedir}/ansidecl.h
90rm -f %{buildroot}%{_includedir}/bfd.h
91rm -f %{buildroot}%{_includedir}/bfdlink.h
92rm -f %{buildroot}%{_includedir}/dis-asm.h
93rm -f %{buildroot}%{_includedir}/symcat.h
94rm -f %{buildroot}%{_libdir}/libbfd.*
95rm -f %{buildroot}%{_libdir}/libopcodes.*
96
97#remove libstdc++/supc++ static libs (built with gcc 3.x)
98rm -f %{buildroot}%{_libdir}/libstdc++.*
99rm -f %{buildroot}%{_libdir}/libsupc++.*
100
101rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe
102
103%clean
104rm -rf $RPM_BUILD_ROOT
105
106
107%files
108%defattr(-,root,root)
109%doc usr/doc/gcc-3.3.5/*
110%{_libdir}/libc06*.dll
111
112%files devel
113%defattr(-,root,root)
114%doc %{_prefix}/man/man1/*
115%{_usr}/bin
116%{_usr}/i386-pc-os2-elf
117%{_usr}/i386-pc-os2-emx
118%{_includedir}
119%exclude %{_includedir}/db.h
120%exclude %{_includedir}/ndbm.h
121%exclude %{_includedir}/libintl.h
122%{_usr}/info
123%{_libdir}
124%exclude %{_libdir}/gcc335.dll
125
126%files -n db1-devel
127%defattr(-,root,root)
128%{_includedir}/db.h
129%{_includedir}/ndbm.h
130
131%files gettext-devel
132%defattr(-,root,root)
133%{_includedir}/libintl.h
134
135%changelog
136* Tue Aug 19 2014 Dmitriy Kuminov <coding@dmik.org> 0.6.5-20
137- Merged emxomf-remove-asterick.diff from libc ticket #220.
138- Made libc-devel and libc-gettext-devel strictly depend on current libc.
139
140* Wed Jun 25 2014 yd
141- emxomf, merged libc tickets #251, #293, #295.
142
143* Thu Sep 11 2013 yd
144- ticket#63: remove gcc335.dll from devel distribution.
145
146* Thu Mar 21 2013 yd
147- renamed gettext-devel to libc-gettext-devel to make it more visible.
148
149* Thu Dec 13 2012 yd
150- remove gcc 3.x stdc++/supc++ static libraries.
151
152* Mon May 11 2012 yd
153- remove obsolete binutil headers/libs
154
155* Tue Apr 17 2012 yd
156- update to csd5
157
158* Mon Jan 09 2012 yd
159- commented out sbrk/_sbrk definitions in stdlib.h (use unistd.h ones).
160
161* Fri Dec 16 2011 yd
162- restored stdarg.h/cdefs.h from original libc distribution.
163
164* Thu Oct 20 2011 yd
165- included emxomf.exe by dmik to workaround gcc/wlink bugs.
166
167* Wed Oct 12 2011 yd
168- fixed mmap include
169
170* Wed Sep 05 2011 yd
171- removed binutils
172
173* Tue Sep 04 2011 yd
174- update to csd4
Note: See TracBrowser for help on using the repository browser.