| 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: 20%{?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 | # 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
|
|---|
| 18 | Patch101: libc-dmik-emxomf-02-remove-asterisk.diff
|
|---|
| 19 | Patch102: libc-yuri-emxomf-verbose-warnings-3.patch
|
|---|
| 20 | Patch103: libc-steven-emxomf-index-too-large.diff
|
|---|
| 21 |
|
|---|
| 22 | BuildRequires: rexx_exe
|
|---|
| 23 |
|
|---|
| 24 | %description
|
|---|
| 25 | kLIBC is a C runtime library in which the coder is exploring The Single Unix
|
|---|
| 26 | Specification (SUS) and various *BSD, Sun and Linux interfaces used in 'portable'
|
|---|
| 27 | software. While implementing SUS completely and providing a great range of special
|
|---|
| 28 | BSD, Sun and Linux APIs is a kind of ultimate goal, the main focus is on what is
|
|---|
| 29 | interesting to play with and what is requested by porters using kLIBC.
|
|---|
| 30 |
|
|---|
| 31 |
|
|---|
| 32 | %package devel
|
|---|
| 33 | License: BSD; GPL v2 or later; LGPL v2.1 or later
|
|---|
| 34 | Summary: Include Files and Libraries Mandatory for Development
|
|---|
| 35 | Group: Development/Libraries/C and C++
|
|---|
| 36 | Requires: libc = %{version}-%{release}
|
|---|
| 37 |
|
|---|
| 38 | %description devel
|
|---|
| 39 | These libraries are needed to develop programs which use the standard C
|
|---|
| 40 | library.
|
|---|
| 41 |
|
|---|
| 42 |
|
|---|
| 43 | %package -n db1-devel
|
|---|
| 44 | License: BSD; GPL v2 or later; LGPL v2.1 or later
|
|---|
| 45 | Summary: Include Files and Libraries Mandatory for Development (db headers)
|
|---|
| 46 | Group: Development/Libraries/C and C++
|
|---|
| 47 |
|
|---|
| 48 | %description -n db1-devel
|
|---|
| 49 | These libraries are needed to develop programs which use the standard C
|
|---|
| 50 | library (db headers).
|
|---|
| 51 |
|
|---|
| 52 |
|
|---|
| 53 | %package gettext-devel
|
|---|
| 54 | License: BSD; GPL v2 or later; LGPL v2.1 or later
|
|---|
| 55 | Summary: Include Files and Libraries Mandatory for Development (gettext headers)
|
|---|
| 56 | Group: Development/Libraries/C and C++
|
|---|
| 57 | Provides: gettext-devel
|
|---|
| 58 | Requires: libc = %{version}-%{release}
|
|---|
| 59 |
|
|---|
| 60 | %description gettext-devel
|
|---|
| 61 | These libraries are needed to develop programs which use the standard C
|
|---|
| 62 | library (gettext headers).
|
|---|
| 63 |
|
|---|
| 64 |
|
|---|
| 65 | %prep
|
|---|
| 66 | %setup -q -c -a 1
|
|---|
| 67 | %patch0
|
|---|
| 68 |
|
|---|
| 69 | %install
|
|---|
| 70 | rm -rf $RPM_BUILD_ROOT
|
|---|
| 71 | mkdir -p %{buildroot}%{_bindir}
|
|---|
| 72 | mkdir -p %{buildroot}%{_includedir}
|
|---|
| 73 | mkdir -p %{buildroot}%{_libdir}
|
|---|
| 74 | mkdir -p %{buildroot}%{_usr}/i386-pc-os2-elf
|
|---|
| 75 | mkdir -p %{buildroot}%{_usr}/i386-pc-os2-emx
|
|---|
| 76 | mkdir -p %{buildroot}%{_usr}/man
|
|---|
| 77 | mkdir -p %{buildroot}%{_usr}/info
|
|---|
| 78 |
|
|---|
| 79 | cp -p -r usr/bin/* %{buildroot}%{_bindir}
|
|---|
| 80 | cp -p -r usr/include/* %{buildroot}%{_includedir}
|
|---|
| 81 | cp -p -r emxomf.exe %{buildroot}%{_bindir}
|
|---|
| 82 | cp -p -r usr/lib/* %{buildroot}%{_libdir}
|
|---|
| 83 | cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-elf
|
|---|
| 84 | cp -p -r usr/man/* %{buildroot}%{_usr}/i386-pc-os2-emx
|
|---|
| 85 | cp -p -r usr/man/* %{buildroot}%{_usr}/man
|
|---|
| 86 | cp -p -r usr/man/* %{buildroot}%{_usr}/info
|
|---|
| 87 |
|
|---|
| 88 | #remove (old) binutils headers/libs
|
|---|
| 89 | rm -f %{buildroot}%{_includedir}/ansidecl.h
|
|---|
| 90 | rm -f %{buildroot}%{_includedir}/bfd.h
|
|---|
| 91 | rm -f %{buildroot}%{_includedir}/bfdlink.h
|
|---|
| 92 | rm -f %{buildroot}%{_includedir}/dis-asm.h
|
|---|
| 93 | rm -f %{buildroot}%{_includedir}/symcat.h
|
|---|
| 94 | rm -f %{buildroot}%{_libdir}/libbfd.*
|
|---|
| 95 | rm -f %{buildroot}%{_libdir}/libopcodes.*
|
|---|
| 96 |
|
|---|
| 97 | #remove libstdc++/supc++ static libs (built with gcc 3.x)
|
|---|
| 98 | rm -f %{buildroot}%{_libdir}/libstdc++.*
|
|---|
| 99 | rm -f %{buildroot}%{_libdir}/libsupc++.*
|
|---|
| 100 |
|
|---|
| 101 | rexx2vio $RPM_BUILD_ROOT%{_bindir}/dllar.cmd $RPM_BUILD_ROOT%{_bindir}/dllar.exe
|
|---|
| 102 |
|
|---|
| 103 | %clean
|
|---|
| 104 | rm -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
|
|---|