]>
Commit | Line | Data |
---|---|---|
cf5d7df2 ER |
1 | # |
2 | # Conditional build: | |
3 | %bcond_without apidocs # don't build api docs | |
067eeff0 | 4 | |
38377c03 | 5 | Summary: Netlink sockets library |
847e7f7c | 6 | Summary(pl.UTF-8): Biblioteka do obsługi gniazd netlink |
067eeff0 ER |
7 | Name: libnl1 |
8 | Version: 1.1.4 | |
b5ba3fba | 9 | Release: 2 |
cf446e29 | 10 | License: LGPL v2.1 |
11 | Group: Libraries | |
067eeff0 ER |
12 | Source0: http://people.suug.ch/~tgr/libnl/files/libnl-%{version}.tar.gz |
13 | # Source0-md5: 580cb878be536804daca87fb75ae46cc | |
fe91a5dd AM |
14 | Patch4: libnl-1.0-pre8-more-build-output.patch |
15 | Patch5: libnl-1.1-include-limits-h.patch | |
16 | Patch6: libnl-1.1-doc-inlinesrc.patch | |
e4a7e7b2 | 17 | URL: http://www.infradead.org/~tgr/libnl/ |
296b7e1c AM |
18 | BuildRequires: autoconf |
19 | BuildRequires: automake | |
f16fda09 | 20 | %{?with_apidocs:BuildRequires: doxygen} |
21 | %{?with_apidocs:BuildRequires: graphviz} | |
d3017be5 | 22 | BuildRequires: linux-libc-headers >= 6:2.6.23 |
cf5d7df2 ER |
23 | %{?with_apidocs:BuildRequires: tetex-dvips} |
24 | %{?with_apidocs:BuildRequires: tetex-format-latex} | |
cf446e29 | 25 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) |
26 | ||
27 | %description | |
296b7e1c | 28 | libnl1 is a library for applications dealing with netlink socket. It |
cf446e29 | 29 | provides an easy to use interface for raw netlink message but also |
30 | netlink family specific APIs. | |
31 | ||
7d5aeb16 | 32 | %description -l pl.UTF-8 |
fe91a5dd AM |
33 | libnl1 jest biblioteką dla aplikacji rozmawiających z gniazdem |
34 | netlink. Udostępnia łatwy w użyciu interfejs do korzystania z surowych | |
d3017be5 ER |
35 | wiadomości netlink, a także API specyficzne dla rodziny gniazd |
36 | netlink. | |
cf446e29 | 37 | |
38 | %package devel | |
296b7e1c AM |
39 | Summary: Header files for libnl1 library |
40 | Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libnl1 | |
cf446e29 | 41 | Group: Development/Libraries |
e461b498 | 42 | Requires: %{name} = %{epoch}:%{version}-%{release} |
491353de | 43 | Conflicts: libnl-devel < 1:3.2 |
cf446e29 | 44 | |
45 | %description devel | |
296b7e1c | 46 | Header files for libnl1 library. |
cf446e29 | 47 | |
7d5aeb16 | 48 | %description devel -l pl.UTF-8 |
296b7e1c | 49 | Pliki nagłówkowe biblioteki libnl1. |
cf446e29 | 50 | |
51 | %package static | |
296b7e1c AM |
52 | Summary: Static libnl1 library |
53 | Summary(pl.UTF-8): Statyczna biblioteka libnl1 | |
cf446e29 | 54 | Group: Development/Libraries |
e461b498 | 55 | Requires: %{name}-devel = %{epoch}:%{version}-%{release} |
491353de | 56 | Conflicts: libnl-static < 1:3.2 |
cf446e29 | 57 | |
58 | %description static | |
296b7e1c | 59 | Static libnl1 library. |
cf446e29 | 60 | |
7d5aeb16 | 61 | %description static -l pl.UTF-8 |
296b7e1c | 62 | Statyczna biblioteka libnl1. |
cf446e29 | 63 | |
d4b0a9a2 | 64 | %package apidocs |
296b7e1c AM |
65 | Summary: libnl1 library API documentation |
66 | Summary(pl.UTF-8): Dokumentacja API biblioteki libnl1 | |
d4b0a9a2 ER |
67 | Group: Documentation |
68 | ||
69 | %description apidocs | |
296b7e1c | 70 | Documentation for libnl1 library API and guides in HTML format |
d4b0a9a2 ER |
71 | generated from sources by doxygen. |
72 | ||
38377c03 | 73 | %description apidocs -l pl.UTF-8 |
296b7e1c | 74 | Dokumentacja API biblioteki libnl1 oraz wprowadzenie w formacie HTML |
38377c03 JB |
75 | wygenerowane ze źródeł za pomocą doxygena. |
76 | ||
cf446e29 | 77 | %prep |
067eeff0 | 78 | %setup -q -n libnl-%{version} |
fe91a5dd AM |
79 | %patch4 -p1 |
80 | %patch5 -p1 | |
81 | %patch6 -p1 | |
cf446e29 | 82 | |
83 | %build | |
296b7e1c AM |
84 | %{__aclocal} |
85 | %{__autoconf} | |
86 | ||
cf446e29 | 87 | %configure \ |
fe91a5dd | 88 | --enable-static \ |
296b7e1c | 89 | --enable-verbose-errors |
e5602faf | 90 | |
cf446e29 | 91 | %{__make} |
cf5d7df2 | 92 | %{?with_apidocs:%{__make} -C doc gendoc} |
cf446e29 | 93 | |
94 | %install | |
95 | rm -rf $RPM_BUILD_ROOT | |
cf446e29 | 96 | %{__make} install \ |
97 | DESTDIR=$RPM_BUILD_ROOT | |
98 | ||
296b7e1c AM |
99 | # for autodeps to work |
100 | chmod +x $RPM_BUILD_ROOT%{_libdir}/libnl.so.*.* | |
97557ef8 | 101 | |
cf446e29 | 102 | %clean |
103 | rm -rf $RPM_BUILD_ROOT | |
104 | ||
105 | %post -p /sbin/ldconfig | |
106 | %postun -p /sbin/ldconfig | |
107 | ||
108 | %files | |
109 | %defattr(644,root,root,755) | |
110 | %doc ChangeLog | |
296b7e1c AM |
111 | %attr(755,root,root) %{_libdir}/libnl.so.*.* |
112 | %attr(755,root,root) %ghost %{_libdir}/libnl.so.1 | |
cf446e29 | 113 | |
114 | %files devel | |
115 | %defattr(644,root,root,755) | |
ce849f60 | 116 | %attr(755,root,root) %{_libdir}/libnl.so |
cf446e29 | 117 | %{_includedir}/netlink |
296b7e1c | 118 | %{_pkgconfigdir}/libnl-1.pc |
23a6789c PZ |
119 | |
120 | %files static | |
121 | %defattr(644,root,root,755) | |
122 | %{_libdir}/libnl.a | |
cf5d7df2 ER |
123 | |
124 | %if %{with apidocs} | |
125 | %files apidocs | |
126 | %defattr(644,root,root,755) | |
d4b0a9a2 | 127 | %doc doc/html/* |
cf5d7df2 | 128 | %endif |