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