]>
Commit | Line | Data |
---|---|---|
822efbf9 | 1 | Summary: Netlink library |
cd2b2b50 | 2 | Summary(pl.UTF-8): Biblioteka do obsługi gniazd netlink |
822efbf9 | 3 | Name: libnl |
54ebd723 | 4 | Version: 1.0 |
254ef5df | 5 | %define pre pre7 |
309767e1 | 6 | Release: 0.%{pre}.3 |
822efbf9 | 7 | License: LGPL v2.1 |
8 | Group: Libraries | |
54ebd723 | 9 | Source0: http://people.suug.ch/~tgr/libnl/files/%{name}-%{version}-%{pre}.tar.gz |
254ef5df JB |
10 | # Source0-md5: db9f6265c370f09defd2d2fa3540758e |
11 | #Patch0: %{name}-llh.patch | |
822efbf9 | 12 | URL: http://people.suug.ch/~tgr/libnl/ |
de222217 JB |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
254ef5df | 15 | BuildRequires: linux-libc-headers >= 7:2.6.20 |
822efbf9 | 16 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
17 | ||
18 | %description | |
19 | libnl is a library for applications dealing with netlink socket. It | |
20 | provides an easy to use interface for raw netlink message but also | |
21 | netlink family specific APIs. | |
22 | ||
1568cddb JR |
23 | %description -l pl.UTF-8 |
24 | libnl jest biblioteką dla aplikacji rozmawiających z gniazdem | |
25 | netlink. Udostępnia łatwy w użyciu interfejs do korzystania z | |
26 | surowych wiadomości netlink, a także API specyficzne dla rodziny | |
de222217 | 27 | gniazd netlink. |
822efbf9 | 28 | |
29 | %package devel | |
30 | Summary: Header files for libnl library | |
cd2b2b50 | 31 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnl |
822efbf9 | 32 | Group: Development/Libraries |
33 | Requires: %{name} = %{version}-%{release} | |
254ef5df | 34 | Requires: linux-libc-headers >= 7:2.6.20 |
822efbf9 | 35 | |
36 | %description devel | |
37 | Header files for libnl library. | |
38 | ||
1568cddb JR |
39 | %description devel -l pl.UTF-8 |
40 | Pliki nagłówkowe biblioteki libnl. | |
822efbf9 | 41 | |
42 | %package static | |
43 | Summary: Static libnl library | |
cd2b2b50 | 44 | Summary(pl.UTF-8): Statyczna biblioteka libnl |
822efbf9 | 45 | Group: Development/Libraries |
46 | Requires: %{name}-devel = %{version}-%{release} | |
47 | ||
48 | %description static | |
49 | Static libnl library. | |
50 | ||
1568cddb | 51 | %description static -l pl.UTF-8 |
822efbf9 | 52 | Statyczna biblioteka libnl. |
53 | ||
54 | %prep | |
54ebd723 | 55 | %setup -q -n %{name}-%{version}-%{pre} |
822efbf9 | 56 | |
57 | %build | |
58 | %{__aclocal} | |
59 | %{__autoconf} | |
60 | %configure \ | |
61 | --enable-verbose-errors | |
1a633036 | 62 | |
822efbf9 | 63 | %{__make} |
64 | ||
65 | %install | |
66 | rm -rf $RPM_BUILD_ROOT | |
67 | ||
68 | %{__make} install \ | |
69 | DESTDIR=$RPM_BUILD_ROOT | |
70 | ||
71 | %clean | |
72 | rm -rf $RPM_BUILD_ROOT | |
73 | ||
74 | %post -p /sbin/ldconfig | |
75 | %postun -p /sbin/ldconfig | |
76 | ||
77 | %files | |
78 | %defattr(644,root,root,755) | |
79 | %doc ChangeLog | |
309767e1 | 80 | %attr(755,root,root) %{_libdir}/libnl.so.[0-9].[0-9]* |
396c17da | 81 | %ghost %attr(755,root,root) %{_libdir}/libnl.so.[!.] |
822efbf9 | 82 | |
83 | %files devel | |
84 | %defattr(644,root,root,755) | |
42dd8581 | 85 | %attr(755,root,root) %{_libdir}/libnl.so |
822efbf9 | 86 | %{_includedir}/netlink |
42dd8581 | 87 | %{_pkgconfigdir}/libnl-1.pc |