]> git.pld-linux.org Git - packages/linux-libc-headers.git/blob - linux-libc-headers.spec
- removed obsolete pagesize,include,ppc patches
[packages/linux-libc-headers.git] / linux-libc-headers.spec
1 %define basever 2.6.25
2 %define postver .4
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:  db95a49a656a3247d4995a797d333153
13 %if "%{postver}" != "%{nil}"
14 Source1:        http://www.kernel.org/pub/linux/kernel/v2.6/patch-%{version}.bz2
15 # Source1-md5:  f12f43dd78b765f3d1402aa9d2170cf5
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}-pom-set.patch
28 Patch6:         linux-kernel-headers.SuSE.TIOCGDEV.patch
29 Patch7:         %{name}-atm-vbr.patch
30 AutoReqProv:    no
31 BuildRequires:  rpmbuild(macros) >= 1.360
32 Requires(pre):  fileutils
33 Provides:       alsa-driver-devel
34 Provides:       glibc-kernel-headers = %{epoch}:%{version}-%{release}
35 Obsoletes:      alsa-driver-devel
36 Obsoletes:      glibc-kernel-headers
37 Obsoletes:      glibc-kernheaders
38 Conflicts:      lm_sensors-devel < 2.8.2-2
39 ExclusiveOS:    Linux
40 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
42 # no objects to extract debug info from
43 %define         _enable_debug_packages  0
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 -q -c
61 cd linux-%{basever}
62 %if "%{postver}" != "%{nil}"
63 bzip2 -dc %{SOURCE1} | patch -p1
64 %endif
65 %patch0 -p1
66 %patch1 -p1
67 %patch2 -p1
68 %patch3 -p1
69 %patch4 -p1
70 %patch5 -p1
71 %patch6 -p2
72 %patch7 -p1
73
74 %install
75 rm -rf $RPM_BUILD_ROOT
76 %{__make} -C linux-%{basever} headers_install \
77         INSTALL_HDR_PATH=$RPM_BUILD_ROOT%{_prefix} \
78 %ifarch ppc ppc64
79         ARCH=powerpc
80 %else
81         ARCH=%{_target_base_arch}
82 %endif
83
84 # provided by glibc-headers
85 rm -rf $RPM_BUILD_ROOT%{_includedir}/scsi
86
87 %clean
88 rm -rf $RPM_BUILD_ROOT
89
90 %pretrans
91 [ ! -L /usr/include/linux ] || rm -f /usr/include/linux
92 [ ! -L /usr/include/asm ] || rm -f /usr/include/asm
93 [ ! -L /usr/include/sound ] || rm -f /usr/include/sound
94 %ifarch sparc sparcv9 sparc64
95 [ ! -L /usr/include/asm-sparc ] || rm -f /usr/include/asm-sparc
96 [ ! -L /usr/include/asm-sparc64 ] || rm -f /usr/include/asm-sparc64
97 %endif
98
99 %files
100 %defattr(644,root,root,755)
101 %{_includedir}/linux
102 %{_includedir}/asm
103 %{_includedir}/asm-generic
104 %ifarch sparc64
105 %{_includedir}/asm-sparc
106 %{_includedir}/asm-sparc64
107 %endif
108 %{_includedir}/mtd
109 %{_includedir}/rdma
110 %{_includedir}/sound
111 %{_includedir}/video
This page took 0.041676 seconds and 4 git commands to generate.