]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers.spec
- updated to 3.0.1
[packages/linux-libc-headers.git] / linux-libc-headers.spec
1 %define basever 3.0
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/v3.0/linux-%{basever}.tar.bz2
12 # Source0-md5:  398e95866794def22b12dfbc15ce89c0
13 %if "%{postver}" > "0"
14 Source1:        http://www.kernel.org/pub/linux/kernel/v3.0/patch-%{version}.bz2
15 # Source1-md5:  ac49f7907f1fc85fbab92d0f1aa1552a
16 %endif
17 Patch0:         %{name}-esfq.patch
18 Patch1:         %{name}-wrr.patch
19 Patch2:         %{name}-fbsplash.patch
20 Patch3:         %{name}-imq.patch
21 Patch4:         %{name}-endian.patch
22 Patch5:         %{name}-pom-set.patch
23 Patch6:         %{name}-atm-vbr.patch
24 Patch7:         vserver.patch
25 AutoReqProv:    no
26 BuildRequires:  perl-base
27 BuildRequires:  rpmbuild(macros) >= 1.568
28 Requires(pre):  fileutils
29 Provides:       alsa-driver-devel
30 Provides:       glibc-kernel-headers = %{epoch}:%{version}-%{release}
31 Obsoletes:      alsa-driver-devel
32 Obsoletes:      glibc-kernel-headers
33 Obsoletes:      glibc-kernheaders
34 Conflicts:      lm_sensors-devel < 2.8.2-2
35 ExclusiveOS:    Linux
36 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
37
38 # no objects to extract debug info from
39 %define         _enable_debug_packages  0
40
41 %description
42 This package includes the C header files that specify the interface
43 between the Linux kernel and userspace libraries and programs. The
44 header files define structures and constants that are needed for
45 building most standard programs and are also needed for rebuilding the
46 glibc package.
47
48 %description -l pl.UTF-8
49 Ten pakiet zawiera pliki nagłówkowe C, które definiują interfejs
50 między jądrem Linuksa a bibliotekami i programami działającymi w
51 przestrzeni użytkownika. Pliki nagłówkowe definiują struktury i stałe
52 potrzebne do zbudowania większości standardowych programów, są także
53 potrzebne do przebudowania pakietu glibc.
54
55 %prep
56 %setup -q -c
57 cd linux-%{basever}
58 %if "%{postver}" > "0"
59 bzip2 -dc %{SOURCE1} | patch -p1
60 %endif
61 %patch0 -p1
62 %patch1 -p1
63 %patch2 -p1
64 %patch3 -p1
65 %patch4 -p1
66 %patch5 -p1
67 %patch6 -p1
68 %patch7 -p1
69
70 %install
71 rm -rf $RPM_BUILD_ROOT
72
73 %{__make} -C linux-%{basever} headers_install \
74         INSTALL_HDR_PATH=$RPM_BUILD_ROOT%{_prefix} \
75 %ifarch ppc ppc64
76         ARCH=powerpc
77 %else
78         ARCH=%{_target_base_arch}
79 %endif
80
81 # provided by glibc-headers
82 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/scsi
83
84 # currently provided by libdrm-devel
85 %{__rm} -r $RPM_BUILD_ROOT%{_includedir}/drm
86
87 # trash
88 find $RPM_BUILD_ROOT%{_includedir} -type f -name '..install.cmd' -o -name '.install' | xargs %{__rm}
89
90 %clean
91 rm -rf $RPM_BUILD_ROOT
92
93 %pretrans
94 [ ! -L /usr/include/linux ] || rm -f /usr/include/linux
95 [ ! -L /usr/include/asm ] || rm -f /usr/include/asm
96 [ ! -L /usr/include/sound ] || rm -f /usr/include/sound
97
98 %files
99 %defattr(644,root,root,755)
100 %{_includedir}/asm
101 %{_includedir}/asm-generic
102 %{_includedir}/linux
103 %{_includedir}/mtd
104 %{_includedir}/rdma
105 %{_includedir}/sound
106 %{_includedir}/video
107 %{_includedir}/xen
This page took 0.100067 seconds and 4 git commands to generate.