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

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

spec: libc, renamed gettext-devel to libc-gettext-devel to make it more visible.

  • Property svn:eol-style set to native
File size: 4.2 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: 17%{?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 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++
50Provides: gettext-devel
51
52%description gettext-devel
53These libraries are needed to develop programs which use the standard C
54library (gettext headers).
55
56
57%prep
58%setup -q -c -a 1
59%patch0
60
61%install
62rm -rf $RPM_BUILD_ROOT
63mkdir -p %{buildroot}%{_bindir}
64mkdir -p %{buildroot}%{_includedir}
65mkdir -p %{buildroot}%{_libdir}
66mkdir -p %{buildroot}%{_usr}/i386-pc-os2-elf
67mkdir -p %{buildroot}%{_usr}/i386-pc-os2-emx
68mkdir -p %{buildroot}%{_usr}/man
69mkdir -p %{buildroot}%{_usr}/info
70
71cp -p -r usr/bin/* %{buildroot}%{_bindir}
72cp -p -r usr/include/* %{buildroot}%{_includedir}
73cp -p -r emxomf.exe %{buildroot}%{_bindir}
74cp -p -r usr/lib/* %{buildroot}%{_libdir}
75cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-elf
76cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-emx
77cp -p -r usr/man/* %{buildroot}%{_usr}/man
78cp -p -r usr/man/* %{buildroot}%{_usr}/info
79
80#remove (old) binutils headers/libs
81rm -f %{buildroot}%{_includedir}/ansidecl.h
82rm -f %{buildroot}%{_includedir}/bfd.h
83rm -f %{buildroot}%{_includedir}/bfdlink.h
84rm -f %{buildroot}%{_includedir}/dis-asm.h
85rm -f %{buildroot}%{_includedir}/symcat.h
86rm -f %{buildroot}%{_libdir}/libbfd.*
87rm -f %{buildroot}%{_libdir}/libopcodes.*
88
89#remove libstdc++/supc++ static libs (built with gcc 3.x)
90rm -f %{buildroot}%{_libdir}/libstdc++.*
91rm -f %{buildroot}%{_libdir}/libsupc++.*
92
93rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe
94
95%clean
96rm -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
Note: See TracBrowser for help on using the repository browser.