]> git.pld-linux.org Git - packages/libnl.git/blob - libnl.spec
064888adf97ab91cf46d5cab01583067ac315db1
[packages/libnl.git] / libnl.spec
1 Summary:        Netlink library
2 Summary(pl):    Biblioteka do obs³ugi gniazd netlink
3 Name:           libnl
4 Version:        1.0
5 %define pre pre5
6 Release:        0.%{pre}.1
7 License:        LGPL v2.1
8 Group:          Libraries
9 Source0:        http://people.suug.ch/~tgr/libnl/files/%{name}-%{version}-%{pre}.tar.gz
10 # Source0-md5:  2cece8968bb36b4cc34b907b6e3c2178
11 Source1:        %{name}-1.pc
12 Patch0:         %{name}-if_ether.patch
13 Patch1:         %{name}-no_root.patch
14 URL:            http://people.suug.ch/~tgr/libnl/
15 BuildRequires:  autoconf
16 BuildRequires:  automake
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 libnl is a library for applications dealing with netlink socket. It
21 provides an easy to use interface for raw netlink message but also
22 netlink family specific APIs.
23
24 %description -l pl
25 libnl jest bibliotek± dla aplikacji rozmawiaj±cych z gniazdem
26 netlink. Udostêpnia ³atwy w u¿yciu interfejs do korzystania z
27 surowych wiadomo¶ci netlink, a tak¿e API specyficzne dla rodziny
28 gniazd netlink.
29
30 %package devel
31 Summary:        Header files for libnl library
32 Summary(pl):    Pliki nag³ówkowe biblioteki libnl
33 Group:          Development/Libraries
34 Requires:       %{name} = %{version}-%{release}
35
36 %description devel
37 Header files for libnl library.
38
39 %description devel -l pl
40 Pliki nag³ówkowe biblioteki libnl.
41
42 %package static
43 Summary:        Static libnl library
44 Summary(pl):    Statyczna biblioteka libnl
45 Group:          Development/Libraries
46 Requires:       %{name}-devel = %{version}-%{release}
47
48 %description static
49 Static libnl library.
50
51 %description static -l pl
52 Statyczna biblioteka libnl.
53
54 %prep
55 %setup -q -n %{name}-%{version}-%{pre}
56 #%patch0 -p1
57 %patch1 -p1
58
59 %build
60 %{__aclocal}
61 %{__autoconf}
62 %configure \
63         --enable-verbose-errors
64 %{__make}
65
66 %install
67 rm -rf $RPM_BUILD_ROOT
68 install -d $RPM_BUILD_ROOT%{_pkgconfigdir}
69
70 %{__make} install \
71         DESTDIR=$RPM_BUILD_ROOT
72
73 install %{SOURCE1} $RPM_BUILD_ROOT%{_pkgconfigdir}/
74
75 %clean
76 rm -rf $RPM_BUILD_ROOT
77
78 %post   -p /sbin/ldconfig
79 %postun -p /sbin/ldconfig
80
81 %files
82 %defattr(644,root,root,755)
83 %doc ChangeLog
84 %attr(755,root,root) %{_libdir}/lib*.so.*.*-*
85
86 %files devel
87 %defattr(644,root,root,755)
88 %attr(755,root,root) %{_libdir}/lib*.so
89 %{_includedir}/netlink
90 %{_pkgconfigdir}/*.pc
This page took 0.03896 seconds and 2 git commands to generate.