]> git.pld-linux.org Git - SPECS.git/blob - libnl1.spec
SPECS updated Wed 28 Jul 14:48:01 CEST 2021
[SPECS.git] / libnl1.spec
1 #
2 # Conditional build:
3 %bcond_without  apidocs         # don't build api docs
4
5 Summary:        Netlink sockets library
6 Summary(pl.UTF-8):      Biblioteka do obsługi gniazd netlink
7 Name:           libnl1
8 Version:        1.1.4
9 Release:        4
10 License:        LGPL v2.1
11 Group:          Libraries
12 Source0:        http://people.suug.ch/~tgr/libnl/files/libnl-%{version}.tar.gz
13 # Source0-md5:  580cb878be536804daca87fb75ae46cc
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
17 URL:            http://www.infradead.org/~tgr/libnl/
18 BuildRequires:  autoconf
19 BuildRequires:  automake
20 %{?with_apidocs:BuildRequires:  doxygen}
21 %{?with_apidocs:BuildRequires:  graphviz}
22 BuildRequires:  linux-libc-headers >= 6:2.6.23
23 %{?with_apidocs:BuildRequires:  tetex-dvips}
24 %{?with_apidocs:BuildRequires:  tetex-format-latex}
25 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
26
27 %description
28 libnl1 is a library for applications dealing with netlink socket. It
29 provides an easy to use interface for raw netlink message but also
30 netlink family specific APIs.
31
32 %description -l pl.UTF-8
33 libnl1 jest biblioteką dla aplikacji rozmawiających z gniazdem
34 netlink. Udostępnia łatwy w użyciu interfejs do korzystania z surowych
35 wiadomości netlink, a także API specyficzne dla rodziny gniazd
36 netlink.
37
38 %package devel
39 Summary:        Header files for libnl1 library
40 Summary(pl.UTF-8):      Pliki nagłówkowe biblioteki libnl1
41 Group:          Development/Libraries
42 Requires:       %{name} = %{epoch}:%{version}-%{release}
43 Conflicts:      libnl-devel < 1:3.2
44
45 %description devel
46 Header files for libnl1 library.
47
48 %description devel -l pl.UTF-8
49 Pliki nagłówkowe biblioteki libnl1.
50
51 %package static
52 Summary:        Static libnl1 library
53 Summary(pl.UTF-8):      Statyczna biblioteka libnl1
54 Group:          Development/Libraries
55 Requires:       %{name}-devel = %{epoch}:%{version}-%{release}
56 Conflicts:      libnl-static < 1:3.2
57
58 %description static
59 Static libnl1 library.
60
61 %description static -l pl.UTF-8
62 Statyczna biblioteka libnl1.
63
64 %package apidocs
65 Summary:        libnl1 library API documentation
66 Summary(pl.UTF-8):      Dokumentacja API biblioteki libnl1
67 Group:          Documentation
68 BuildArch:      noarch
69
70 %description apidocs
71 Documentation for libnl1 library API and guides in HTML format
72 generated from sources by doxygen.
73
74 %description apidocs -l pl.UTF-8
75 Dokumentacja API biblioteki libnl1 oraz wprowadzenie w formacie HTML
76 wygenerowane ze źródeł za pomocą doxygena.
77
78 %prep
79 %setup -q -n libnl-%{version}
80 %patch4 -p1
81 %patch5 -p1
82 %patch6 -p1
83
84 %build
85 %{__aclocal}
86 %{__autoconf}
87
88 %configure \
89         --enable-static \
90         --enable-verbose-errors
91
92 %{__make}
93 %{?with_apidocs:%{__make} -C doc gendoc}
94
95 %install
96 rm -rf $RPM_BUILD_ROOT
97 %{__make} install \
98         DESTDIR=$RPM_BUILD_ROOT
99
100 # for autodeps to work
101 chmod +x $RPM_BUILD_ROOT%{_libdir}/libnl.so.*.*
102
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
112 %attr(755,root,root) %{_libdir}/libnl.so.*.*
113 %attr(755,root,root) %ghost %{_libdir}/libnl.so.1
114
115 %files devel
116 %defattr(644,root,root,755)
117 %attr(755,root,root) %{_libdir}/libnl.so
118 %{_includedir}/netlink
119 %{_pkgconfigdir}/libnl-1.pc
120
121 %files static
122 %defattr(644,root,root,755)
123 %{_libdir}/libnl.a
124
125 %if %{with apidocs}
126 %files apidocs
127 %defattr(644,root,root,755)
128 %doc doc/html/*
129 %endif
This page took 3.855958 seconds and 3 git commands to generate.