70 lines
1.9 KiB
RPMSpec
70 lines
1.9 KiB
RPMSpec
|
Name: libmnl
|
||
|
Version: 1.0.3
|
||
|
Release: 1mamba
|
||
|
Summary: libmnl is a minimalistic user-space library oriented to Netlink developers
|
||
|
Group: System/Libraries
|
||
|
Vendor: openmamba
|
||
|
Distribution: openmamba
|
||
|
Packager: Davide Madrisan <davide.madrisan@gmail.com>
|
||
|
URL: http://www.iptables.org/projects/libmnl/index.html
|
||
|
Source: ftp://ftp.netfilter.org/pub/libmnl/libmnl-%{version}.tar.bz2
|
||
|
License: LGPL
|
||
|
## AUTOBUILDREQ-BEGIN
|
||
|
BuildRequires: glibc-devel
|
||
|
## AUTOBUILDREQ-END
|
||
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
||
|
|
||
|
%description
|
||
|
libmnl is a minimalistic user-space library oriented to Netlink developers.
|
||
|
There are a lot of common tasks in parsing, validating, constructing of both the Netlink header and TLVs that are repetitive and easy to get wrong.
|
||
|
This library aims to provide simple helpers that allows you to re-use code and to avoid re-inventing the wheel.
|
||
|
|
||
|
%package devel
|
||
|
Group: Development/Libraries
|
||
|
Summary: Development files for %{name}
|
||
|
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
|
||
|
Requires: pkg-config
|
||
|
|
||
|
%description devel
|
||
|
This package contains libraries and header files for developing applications that use %{name}.
|
||
|
|
||
|
%debug_package
|
||
|
|
||
|
%prep
|
||
|
%setup -q
|
||
|
|
||
|
%build
|
||
|
%configure --disable-static
|
||
|
%make
|
||
|
|
||
|
%install
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
%makeinstall
|
||
|
|
||
|
%clean
|
||
|
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
|
||
|
|
||
|
%post -p /sbin/ldconfig
|
||
|
%postun -p /sbin/ldconfig
|
||
|
|
||
|
%files
|
||
|
%defattr(-,root,root)
|
||
|
%{_libdir}/libmnl.so.*
|
||
|
%doc COPYING
|
||
|
|
||
|
%files devel
|
||
|
%defattr(-,root,root)
|
||
|
%dir %{_includedir}/libmnl
|
||
|
%{_includedir}/libmnl/libmnl.h
|
||
|
%{_libdir}/libmnl.la
|
||
|
%{_libdir}/libmnl.so
|
||
|
%{_libdir}/pkgconfig/libmnl.pc
|
||
|
%doc README
|
||
|
|
||
|
%changelog
|
||
|
* Sat Aug 11 2012 Automatic Build System <autodist@mambasoft.it> 1.0.3-1mamba
|
||
|
- automatic version update by autodist
|
||
|
|
||
|
* Mon Apr 30 2012 Davide Madrisan <davide.madrisan@gmail.com> 1.0.2-1mamba
|
||
|
- package created by autospec
|