]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers.spec
- updated to Linux 2.6.24
[packages/linux-libc-headers.git] / linux-libc-headers.spec
1 %define basever 2.6.24
2 %define postver %{nil}
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:  3f23ad4b69d0a552042d1ed0f4399857
13 %if "%{postver}" != "%{nil}"
14 Source1:        http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
15 # Source1-md5:  11d3513c45bdcbdf9c75364e747568bd
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 Patch9:         %{name}-atm-vbr.patch
32 AutoReqProv:    no
33 BuildRequires:  rpmbuild(macros) >= 1.360
34 Requires(pre):  fileutils
35 Provides:       alsa-driver-devel
36 Provides:       glibc-kernel-headers = %{epoch}:%{version}-%{release}
37 Obsoletes:      alsa-driver-devel
38 Obsoletes:      glibc-kernel-headers
39 Obsoletes:      glibc-kernheaders
40 Conflicts:      lm_sensors-devel < 2.8.2-2
41 ExclusiveOS:    Linux
42 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43
44 %description
45 This package includes the C header files that specify the interface
46 between the Linux kernel and userspace libraries and programs. The
47 header files define structures and constants that are needed for
48 building most standard programs and are also needed for rebuilding the
49 glibc package.
50
51 %description -l pl.UTF-8
52 Ten pakiet zawiera pliki nagłówkowe C, które definiują interfejs
53 między jądrem Linuksa a bibliotekami i programami działającymi w
54 przestrzeni użytkownika. Pliki nagłówkowe definiują struktury i stałe
55 potrzebne do zbudowania większości standardowych programów, są także
56 potrzebne do przebudowania pakietu glibc.
57
58 %prep
59 %setup -q -c
60 cd linux-%{basever}
61 %if "%{postver}" != "%{nil}"
62 bzip2 -dc %{SOURCE1} | patch -p1
63 %endif
64 %patch0 -p1
65 %patch1 -p1
66 %patch2 -p1
67 %patch3 -p1
68 %patch4 -p1
69 %patch5 -p1
70 %patch6 -p1
71 %patch7 -p1
72 %patch8 -p2
73 %patch9 -p1
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77 %{__make} -C linux-%{basever} headers_install \
78         INSTALL_HDR_PATH=$RPM_BUILD_ROOT%{_prefix} \
79 %ifarch ppc ppc64
80         ARCH=powerpc
81 %else
82         ARCH=%{_target_base_arch}
83 %endif
84
85 # provided by glibc-headers
86 rm -rf $RPM_BUILD_ROOT%{_includedir}/scsi
87
88 %clean
89 rm -rf $RPM_BUILD_ROOT
90
91 %pretrans
92 [ ! -L /usr/include/linux ] || rm -f /usr/include/linux
93 [ ! -L /usr/include/asm ] || rm -f /usr/include/asm
94 [ ! -L /usr/include/sound ] || rm -f /usr/include/sound
95 %ifarch sparc sparcv9 sparc64
96 [ ! -L /usr/include/asm-sparc ] || rm -f /usr/include/asm-sparc
97 [ ! -L /usr/include/asm-sparc64 ] || rm -f /usr/include/asm-sparc64
98 %endif
99
100 %files
101 %defattr(644,root,root,755)
102 %{_includedir}/linux
103 %{_includedir}/asm
104 %{_includedir}/asm-generic
105 %ifarch sparc64
106 %{_includedir}/asm-sparc
107 %{_includedir}/asm-sparc64
108 %endif
109 %{_includedir}/mtd
110 %{_includedir}/rdma
111 %{_includedir}/sound
112 %{_includedir}/video
This page took 0.028316 seconds and 3 git commands to generate.