summaryrefslogtreecommitdiff
path: root/packaging/libnl3.spec
blob: 167e4f2101bd9b78591a49b80b3ee30260ee70f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
Name:       libnl3
Summary:    Library for netlink sockets
Version:    3.2.22
Release:    1
Group:      System/Network
License:    LGPL-2.1
Source0:    %{name}-%{version}.tar.gz
Source1001: 	libnl3.manifest
BuildRequires:  bison
BuildRequires:  flex

%description
This is a library for applications dealing with netlink sockets.
The library provides an interface for raw netlink messaging and various
netlink family specific interfaces.

%package devel
Summary:    Development library and headers for libnl3
Group:      Development/Libraries
Requires:   %{name} = %{version}-%{release}

%description devel
This is a library for applications dealing with netlink sockets.
The library provides an interface for raw netlink messaging and various
netlink family specific interfaces.
This package contains all files that are needed to build applications using
libnl3.

%package cli
Summary:   Command line interface utils for libnl3
Group:     Development/Libraries
Requires:  %{name} = %{version}-%{release}

%description cli
This package contains various libnl3 utils and additional
libraries on which they depend

%prep
%setup -q
cp %{SOURCE1001} .


%build
chmod +x autogen.sh
%autogen.sh
%configure

make -j1

%install
%make_install
rm -f %{buildroot}/etc/libnl/pktloc

%post -p /sbin/ldconfig
%post cli -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%postun cli -p /sbin/ldconfig

%files
%manifest %{name}.manifest
%defattr(-,root,root,-)
%license COPYING
%{_libdir}/libnl*.so.*
%exclude %{_libdir}/libnl-cli*.so.*
%config(noreplace) %{_sysconfdir}/*

%files devel
%manifest %{name}.manifest
%defattr(-,root,root,-)
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/libnl*.so

%files cli
%defattr(-,root,root,-)
%{_libdir}/libnl-cli*.so.*
%{_libdir}/libnl/
%{_sbindir}/*
%{_mandir}/man8/*