]> git.pld-linux.org Git - packages/libnl.git/blob - libnl.spec
b53e928c2962d73beb05ac26b4ee80ca8259a848
[packages/libnl.git] / libnl.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # don't build api docs
4
5 Summary:        Netlink library
6 Summary(pl.UTF-8):      Biblioteka do obsługi gniazd netlink
7 Name:           libnl
8 Version:        1.1
9 Release:        3
10 Epoch:          1
11 License:        LGPL v2.1
12 Group:          Libraries
13 Source0:        http://people.suug.ch/~tgr/libnl/files/%{name}-%{version}.tar.gz
14 # Source0-md5:  ae970ccd9144e132b68664f98e7ceeb1
15 Patch0:         %{name}-static.patch
16 Patch1:         %{name}-ULONG_MAX.patch
17 URL:            http://people.suug.ch/~tgr/libnl/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 BuildRequires:  linux-libc-headers >= 6:2.6.23
21 %{?with_apidocs:BuildRequires:  tetex-dvips}
22 %{?with_apidocs:BuildRequires:  tetex-format-latex}
23 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
24
25 %description
26 libnl is a library for applications dealing with netlink socket. It
27 provides an easy to use interface for raw netlink message but also
28 netlink family specific APIs.
29
30 %description -l pl.UTF-8
31 libnl jest biblioteką dla aplikacji rozmawiających z gniazdem netlink.
32 Udostępnia łatwy w użyciu interfejs do korzystania z surowych
33 wiadomości netlink, a także API specyficzne dla rodziny gniazd
34 netlink.
35
36 %package devel
37 Summary:        Header files for libnl library
38 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libnl
39 Group:          Development/Libraries
40 Requires:       %{name} = %{epoch}:%{version}-%{release}
41
42 %description devel
43 Header files for libnl library.
44
45 %description devel -l pl.UTF-8
46 Pliki nagłówkowe biblioteki libnl.
47
48 %package static
49 Summary:        Static libnl library
50 Summary(pl.UTF-8):      Statyczna biblioteka libnl
51 Group:          Development/Libraries
52 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
53
54 %description static
55 Static libnl library.
56
57 %description static -l pl.UTF-8
58 Statyczna biblioteka libnl.
59
60 %prep
61 %setup -q
62 %patch0 -p1
63 %patch1 -p1
64
65 %build
66 %{__aclocal}
67 %{__autoconf}
68
69 %configure \
70         --enable-verbose-errors
71
72 %{__make}
73 %{?with_apidocs:%{__make} -C doc gendoc}
74
75 %install
76 rm -rf $RPM_BUILD_ROOT
77
78 %{__make} install \
79         DESTDIR=$RPM_BUILD_ROOT
80
81 # for autodeps to work
82 chmod +x $RPM_BUILD_ROOT%{_libdir}/libnl.so.*.*
83
84 %clean
85 rm -rf $RPM_BUILD_ROOT
86
87 %post   -p /sbin/ldconfig
88 %postun -p /sbin/ldconfig
89
90 %files
91 %defattr(644,root,root,755)
92 %doc ChangeLog
93 %attr(755,root,root) %{_libdir}/libnl.so.*.*
94 %attr(755,root,root) %ghost %{_libdir}/libnl.so.1
95
96 %files devel
97 %defattr(644,root,root,755)
98 %attr(755,root,root) %{_libdir}/libnl.so
99 %{_includedir}/netlink
100 %{_pkgconfigdir}/libnl-1.pc
101
102 %files static
103 %defattr(644,root,root,755)
104 %{_libdir}/libnl.a
105
106 %if %{with apidocs}
107 %files apidocs
108 %defattr(644,root,root,755)
109 %doc apidocs
110 %endif
This page took 0.056829 seconds and 2 git commands to generate.