]>
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 | |
eccc73f7 | 9 | Release: 4 |
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 | 67 | Group: Documentation |
13445bc6 | 68 | BuildArch: noarch |
d4b0a9a2 ER |
69 | |
70 | %description apidocs | |
296b7e1c | 71 | Documentation for libnl1 library API and guides in HTML format |
d4b0a9a2 ER |
72 | generated from sources by doxygen. |
73 | ||
38377c03 | 74 | %description apidocs -l pl.UTF-8 |
296b7e1c | 75 | Dokumentacja API biblioteki libnl1 oraz wprowadzenie w formacie HTML |
38377c03 JB |
76 | wygenerowane ze źródeł za pomocą doxygena. |
77 | ||
cf446e29 | 78 | %prep |
067eeff0 | 79 | %setup -q -n libnl-%{version} |
fe91a5dd AM |
80 | %patch4 -p1 |
81 | %patch5 -p1 | |
82 | %patch6 -p1 | |
cf446e29 | 83 | |
84 | %build | |
296b7e1c AM |
85 | %{__aclocal} |
86 | %{__autoconf} | |
87 | ||
cf446e29 | 88 | %configure \ |
fe91a5dd | 89 | --enable-static \ |
296b7e1c | 90 | --enable-verbose-errors |
e5602faf | 91 | |
cf446e29 | 92 | %{__make} |
cf5d7df2 | 93 | %{?with_apidocs:%{__make} -C doc gendoc} |
cf446e29 | 94 | |
95 | %install | |
96 | rm -rf $RPM_BUILD_ROOT | |
cf446e29 | 97 | %{__make} install \ |
98 | DESTDIR=$RPM_BUILD_ROOT | |
99 | ||
296b7e1c AM |
100 | # for autodeps to work |
101 | chmod +x $RPM_BUILD_ROOT%{_libdir}/libnl.so.*.* | |
97557ef8 | 102 | |
cf446e29 | 103 | %clean |
104 | rm -rf $RPM_BUILD_ROOT | |
105 | ||
106 | %post -p /sbin/ldconfig | |
107 | %postun -p /sbin/ldconfig | |
108 | ||
109 | %files | |
110 | %defattr(644,root,root,755) | |
111 | %doc ChangeLog | |
296b7e1c AM |
112 | %attr(755,root,root) %{_libdir}/libnl.so.*.* |
113 | %attr(755,root,root) %ghost %{_libdir}/libnl.so.1 | |
cf446e29 | 114 | |
115 | %files devel | |
116 | %defattr(644,root,root,755) | |
ce849f60 | 117 | %attr(755,root,root) %{_libdir}/libnl.so |
cf446e29 | 118 | %{_includedir}/netlink |
296b7e1c | 119 | %{_pkgconfigdir}/libnl-1.pc |
23a6789c PZ |
120 | |
121 | %files static | |
122 | %defattr(644,root,root,755) | |
123 | %{_libdir}/libnl.a | |
cf5d7df2 ER |
124 | |
125 | %if %{with apidocs} | |
126 | %files apidocs | |
127 | %defattr(644,root,root,755) | |
d4b0a9a2 | 128 | %doc doc/html/* |
cf5d7df2 | 129 | %endif |