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

Last change on this file since 321 was 306, checked in by Yuri Dario, 13 years ago

spec: libc remove obsolete binutil headers/libs.

  • Property svn:eol-style set to native
File size: 3.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: 15%{?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
15BuildRequires: rexx_exe
16
17%description
18kLIBC is a C runtime library in which the coder is exploring The Single Unix
19Specification (SUS) and various *BSD, Sun and Linux interfaces used in 'portable'
20software. While implementing SUS completely and providing a great range of special
21BSD, Sun and Linux APIs is a kind of ultimate goal, the main focus is on what is
22interesting to play with and what is requested by porters using kLIBC.
23
24
25%package devel
26License: BSD; GPL v2 or later; LGPL v2.1 or later
27Summary: Include Files and Libraries Mandatory for Development
28Group: Development/Libraries/C and C++
29Requires: libc = %{version}
30
31%description devel
32These libraries are needed to develop programs which use the standard C
33library.
34
35
36%package -n db1-devel
37License: BSD; GPL v2 or later; LGPL v2.1 or later
38Summary: Include Files and Libraries Mandatory for Development (db headers)
39Group: Development/Libraries/C and C++
40
41%description -n db1-devel
42These libraries are needed to develop programs which use the standard C
43library (db headers).
44
45
46%package -n gettext-devel
47License: BSD; GPL v2 or later; LGPL v2.1 or later
48Summary: Include Files and Libraries Mandatory for Development (gettext headers)
49Group: Development/Libraries/C and C++
50
51%description -n gettext-devel
52These libraries are needed to develop programs which use the standard C
53library (gettext headers).
54
55
56%prep
57%setup -q -c -a 1
58%patch0
59
60%install
61rm -rf $RPM_BUILD_ROOT
62mkdir -p %{buildroot}%{_bindir}
63mkdir -p %{buildroot}%{_includedir}
64mkdir -p %{buildroot}%{_libdir}
65mkdir -p %{buildroot}%{_usr}/i386-pc-os2-elf
66mkdir -p %{buildroot}%{_usr}/i386-pc-os2-emx
67mkdir -p %{buildroot}%{_usr}/man
68mkdir -p %{buildroot}%{_usr}/info
69
70cp -p -r usr/bin/* %{buildroot}%{_bindir}
71cp -p -r usr/include/* %{buildroot}%{_includedir}
72cp -p -r emxomf.exe %{buildroot}%{_bindir}
73cp -p -r usr/lib/* %{buildroot}%{_libdir}
74cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-elf
75cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-emx
76cp -p -r usr/man/* %{buildroot}%{_usr}/man
77cp -p -r usr/man/* %{buildroot}%{_usr}/info
78
79#remove (old) binutils headers/libs
80rm -f %{buildroot}%{_includedir}/ansidecl.h
81rm -f %{buildroot}%{_includedir}/bfd.h
82rm -f %{buildroot}%{_includedir}/bfdlink.h
83rm -f %{buildroot}%{_includedir}/dis-asm.h
84rm -f %{buildroot}%{_includedir}/symcat.h
85rm -f %{buildroot}%{_libdir}/libbfd.*
86rm -f %{buildroot}%{_libdir}/libopcodes.*
87
88rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe
89
90%clean
91rm -rf $RPM_BUILD_ROOT
92
93
94%files
95%defattr(-,root,root)
96%doc usr/doc/gcc-3.3.5/*
97%{_libdir}/libc06*.dll
98
99%files devel
100%defattr(-,root,root)
101%doc %{_prefix}/man/man1/*
102%{_usr}/bin
103%{_usr}/i386-pc-os2-elf
104%{_usr}/i386-pc-os2-emx
105%{_includedir}
106%exclude %{_includedir}/db.h
107%exclude %{_includedir}/ndbm.h
108%exclude %{_includedir}/libintl.h
109%{_usr}/info
110%{_libdir}
111
112%files -n db1-devel
113%defattr(-,root,root)
114%{_includedir}/db.h
115%{_includedir}/ndbm.h
116
117%files -n gettext-devel
118%defattr(-,root,root)
119%{_includedir}/libintl.h
120
121%changelog
122* Mon May 11 2012 yd
123- remove obsolete binutil headers/libs
124
125* Tue Apr 17 2012 yd
126- update to csd5
127
128* Mon Jan 09 2012 yd
129- commented out sbrk/_sbrk definitions in stdlib.h (use unistd.h ones).
130
131* Fri Dec 16 2011 yd
132- restored stdarg.h/cdefs.h from original libc distribution.
133
134* Thu Oct 20 2011 yd
135- included emxomf.exe by dmik to workaround gcc/wlink bugs.
136
137* Wed Oct 12 2011 yd
138- fixed mmap include
139
140* Wed Sep 05 2011 yd
141- removed binutils
142
143* Tue Sep 04 2011 yd
144- update to csd4
Note: See TracBrowser for help on using the repository browser.