]>
Commit | Line | Data |
---|---|---|
cf446e29 | 1 | Summary: Netlink library |
7d5aeb16 | 2 | Summary(pl.UTF-8): Biblioteka do obsługi gniazd netlink |
cf446e29 | 3 | Name: libnl |
a8935b02 | 4 | Version: 1.0 |
ce849f60 JB |
5 | %define pre pre6 |
6 | Release: 0.%{pre}.1 | |
cf446e29 | 7 | License: LGPL v2.1 |
8 | Group: Libraries | |
a8935b02 | 9 | Source0: http://people.suug.ch/~tgr/libnl/files/%{name}-%{version}-%{pre}.tar.gz |
ce849f60 JB |
10 | # Source0-md5: 0f57cb7085dc27e054691bff858613c9 |
11 | Patch0: %{name}-llh.patch | |
cf446e29 | 12 | URL: http://people.suug.ch/~tgr/libnl/ |
bfcf7fdc JB |
13 | BuildRequires: autoconf |
14 | BuildRequires: automake | |
cf446e29 | 15 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
16 | ||
17 | %description | |
18 | libnl is a library for applications dealing with netlink socket. It | |
19 | provides an easy to use interface for raw netlink message but also | |
20 | netlink family specific APIs. | |
21 | ||
7d5aeb16 JR |
22 | %description -l pl.UTF-8 |
23 | libnl jest biblioteką dla aplikacji rozmawiających z gniazdem | |
24 | netlink. Udostępnia łatwy w użyciu interfejs do korzystania z | |
25 | surowych wiadomości netlink, a także API specyficzne dla rodziny | |
bfcf7fdc | 26 | gniazd netlink. |
cf446e29 | 27 | |
28 | %package devel | |
29 | Summary: Header files for libnl library | |
7d5aeb16 | 30 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnl |
cf446e29 | 31 | Group: Development/Libraries |
32 | Requires: %{name} = %{version}-%{release} | |
33 | ||
34 | %description devel | |
35 | Header files for libnl library. | |
36 | ||
7d5aeb16 JR |
37 | %description devel -l pl.UTF-8 |
38 | Pliki nagłówkowe biblioteki libnl. | |
cf446e29 | 39 | |
40 | %package static | |
41 | Summary: Static libnl library | |
7d5aeb16 | 42 | Summary(pl.UTF-8): Statyczna biblioteka libnl |
cf446e29 | 43 | Group: Development/Libraries |
44 | Requires: %{name}-devel = %{version}-%{release} | |
45 | ||
46 | %description static | |
47 | Static libnl library. | |
48 | ||
7d5aeb16 | 49 | %description static -l pl.UTF-8 |
cf446e29 | 50 | Statyczna biblioteka libnl. |
51 | ||
52 | %prep | |
a8935b02 | 53 | %setup -q -n %{name}-%{version}-%{pre} |
29c351e4 | 54 | %patch0 -p1 |
cf446e29 | 55 | |
56 | %build | |
57 | %{__aclocal} | |
58 | %{__autoconf} | |
e5602faf | 59 | |
cf446e29 | 60 | %configure \ |
61 | --enable-verbose-errors | |
e5602faf | 62 | |
cf446e29 | 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 | |
ce849f60 | 80 | %attr(755,root,root) %{_libdir}/libnl.so.*.* |
cf446e29 | 81 | |
82 | %files devel | |
83 | %defattr(644,root,root,755) | |
ce849f60 | 84 | %attr(755,root,root) %{_libdir}/libnl.so |
cf446e29 | 85 | %{_includedir}/netlink |
ce849f60 | 86 | %{_pkgconfigdir}/libnl-1.pc |