]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers.spec
- updated to 2.6.23.1
[packages/linux-libc-headers.git] / linux-libc-headers.spec
1 %define basever 2.6.23
2 %define postver .1
3 Summary:        Linux kernel headers for use with C libraries
4 Summary(pl.UTF-8):      Nagłówki jądra Linuksa do użytku z bibliotekami C
5 Name:           linux-libc-headers
6 Version:        %{basever}%{postver}
7 Release:        1
8 Epoch:          7
9 License:        GPL v2
10 Group:          Development
11 Source0:        http://www.kernel.org/pub/linux/kernel/v2.6/linux-%{basever}.tar.bz2
12 # Source0-md5:  2cc2fd4d521dc5d7cfce0d8a9d1b3472
13 %if "%{postver}" != "%{nil}"
14 Source1:        http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
15 # Source1-md5:  896c5d4e7fd68d37b8c16e5d2842563b
16 %endif
17 # DROP? (these were always kept in private drivers dir, not exported)
18 #Source1:       %{name}-dv1394.h
19 #Source2:       %{name}-ieee1394-ioctl.h
20 # DROP for now? iptables accesses kernel headers/sources directly
21 #PatchX: %{name}-netfilter.patch
22 Patch0:         %{name}-esfq.patch
23 Patch1:         %{name}-wrr.patch
24 Patch2:         %{name}-fbsplash.patch
25 Patch3:         %{name}-imq.patch
26 Patch4:         %{name}-endian.patch
27 Patch5:         %{name}-pagesize.patch
28 Patch6:         %{name}-include.patch
29 Patch7:         %{name}-pom-set.patch
30 Patch8:         linux-kernel-headers.SuSE.TIOCGDEV.patch
31 AutoReqProv:    no
32 BuildRequires:  rpmbuild(macros) >= 1.213
33 Requires(pre):  fileutils
34 Provides:       alsa-driver-devel
35 Provides:       glibc-kernel-headers = %{epoch}:%{version}-%{release}
36 Obsoletes:      alsa-driver-devel
37 Obsoletes:      glibc-kernel-headers
38 Obsoletes:      glibc-kernheaders
39 Conflicts:      lm_sensors-devel < 2.8.2-2
40 ExclusiveOS:    Linux
41 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42
43 %define         no_install_post_strip           1
44
45 %description
46 This package includes the C header files that specify the interface
47 between the Linux kernel and userspace libraries and programs. The
48 header files define structures and constants that are needed for
49 building most standard programs and are also needed for rebuilding the
50 glibc package.
51
52 %description -l pl.UTF-8
53 Ten pakiet zawiera pliki nagłówkowe C, które definiują interfejs
54 między jądrem Linuksa a bibliotekami i programami działającymi w
55 przestrzeni użytkownika. Pliki nagłówkowe definiują struktury i stałe
56 potrzebne do zbudowania większości standardowych programów, są także
57 potrzebne do przebudowania pakietu glibc.
58
59 %prep
60 %setup -qc
61 cd linux-%{basever}
62 %patch0 -p1
63 %patch1 -p1
64 %patch2 -p1
65 %patch3 -p1
66 %patch4 -p1
67 %patch5 -p1
68 %patch6 -p1
69 %patch7 -p1
70 %patch8 -p2
71
72 %install
73 rm -rf $RPM_BUILD_ROOT
74 %{__make} -C linux-%{basever} headers_install \
75         INSTALL_HDR_PATH=$RPM_BUILD_ROOT%{_prefix} \
76 %ifarch ppc ppc64
77         ARCH=powerpc
78 %else
79         ARCH=%{_target_base_arch}
80 %endif
81
82 # provided by glibc-headers
83 rm -rf $RPM_BUILD_ROOT%{_includedir}/scsi
84
85 %clean
86 rm -rf $RPM_BUILD_ROOT
87
88 %pretrans
89 [ ! -L /usr/include/linux ] || rm -f /usr/include/linux
90 [ ! -L /usr/include/asm ] || rm -f /usr/include/asm
91 [ ! -L /usr/include/sound ] || rm -f /usr/include/sound
92 %ifarch sparc sparcv9 sparc64
93 [ ! -L /usr/include/asm-sparc ] || rm -f /usr/include/asm-sparc
94 [ ! -L /usr/include/asm-sparc64 ] || rm -f /usr/include/asm-sparc64
95 %endif
96
97 %files
98 %defattr(644,root,root,755)
99 %{_includedir}/linux
100 %{_includedir}/asm
101 %{_includedir}/asm-generic
102 %ifarch %{x8664}
103 %{_includedir}/asm-i386
104 %{_includedir}/asm-x86_64
105 %endif
106 %ifarch sparc64
107 %{_includedir}/asm-sparc
108 %{_includedir}/asm-sparc64
109 %endif
110 %{_includedir}/mtd
111 %{_includedir}/rdma
112 %{_includedir}/sound
113 %{_includedir}/video
This page took 0.030265 seconds and 4 git commands to generate.