]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers.spec
- updated to 2.6.36
[packages/linux-libc-headers.git] / linux-libc-headers.spec
1 %define basever 2.6.36
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:  61f3739a73afb6914cb007f37fb09b62
13 %if "%{postver}" != "%{nil}"
14 Source1:        http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
15 # Source1-md5:  738f762746488345b1a8707d00895eef
16 %endif
17 # DROP for now? iptables accesses kernel headers/sources directly
18 #PatchX: %{name}-netfilter.patch
19 Patch0:         %{name}-esfq.patch
20 Patch1:         %{name}-wrr.patch
21 Patch2:         %{name}-fbsplash.patch
22 Patch3:         %{name}-imq.patch
23 Patch4:         %{name}-endian.patch
24 Patch5:         %{name}-pom-set.patch
25 Patch6:         linux-kernel-headers.SuSE.TIOCGDEV.patch
26 Patch7:         %{name}-atm-vbr.patch
27 Patch8:         vserver.patch
28 AutoReqProv:    no
29 BuildRequires:  perl-base
30 BuildRequires:  rpmbuild(macros) >= 1.568
31 Requires(pre):  fileutils
32 Provides:       alsa-driver-devel
33 Provides:       glibc-kernel-headers = %{epoch}:%{version}-%{release}
34 Obsoletes:      alsa-driver-devel
35 Obsoletes:      glibc-kernel-headers
36 Obsoletes:      glibc-kernheaders
37 Conflicts:      lm_sensors-devel < 2.8.2-2
38 ExclusiveOS:    Linux
39 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40
41 # no objects to extract debug info from
42 %define         _enable_debug_packages  0
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 -p2
71 %patch7 -p1
72 %patch8 -p1
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76
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 # currently provided by libdrm-devel
89 rm -rf $RPM_BUILD_ROOT%{_includedir}/drm
90
91 # trash
92 find $RPM_BUILD_ROOT%{_includedir} -type f -name '..install.cmd' -o -name '.install' | xargs rm
93
94 %clean
95 rm -rf $RPM_BUILD_ROOT
96
97 %pretrans
98 [ ! -L /usr/include/linux ] || rm -f /usr/include/linux
99 [ ! -L /usr/include/asm ] || rm -f /usr/include/asm
100 [ ! -L /usr/include/sound ] || rm -f /usr/include/sound
101
102 %files
103 %defattr(644,root,root,755)
104 %{_includedir}/asm
105 %{_includedir}/asm-generic
106 %{_includedir}/linux
107 %{_includedir}/mtd
108 %{_includedir}/rdma
109 %{_includedir}/sound
110 %{_includedir}/video
111 %{_includedir}/xen
This page took 0.03055 seconds and 4 git commands to generate.