Blame libnftnl.spec

4c46e3
%global snapdate 20140122
4c46e3
4c46e3
Name:           libnftnl
4c46e3
Version:        0
4c46e3
Release:        0.7.%{snapdate}git%{?dist}
4c46e3
Summary:        Library for low-level interaction with nftables Netlink's API over libmnl
4c46e3
4c46e3
License:        GPLv2+
4c46e3
URL:            http://netfilter.org/projects/libnftnl/
4c46e3
Source0:        http://ftp.netfilter.org/pub/libnftnl/snapshot/libnftnl-%{snapdate}.tar.bz2
4c46e3
4c46e3
BuildRequires:  autogen
4c46e3
BuildRequires:  autoconf
4c46e3
BuildRequires:  automake
4c46e3
BuildRequires:  libtool
4c46e3
BuildRequires:  libmnl-devel
4c46e3
BuildRequires:  mxml-devel
4c46e3
BuildRequires:  jansson-devel
4c46e3
4c46e3
# replace old libnftables package
4c46e3
Provides: libnftables = %{version}-%{release}
4c46e3
Obsoletes: libnftables < 0-0.6
4c46e3
4c46e3
%description
4c46e3
A library for low-level interaction with nftables Netlink's API over libmnl.
4c46e3
4c46e3
%package        devel
4c46e3
Summary:        Development files for %{name}
4c46e3
Requires:       %{name}%{_isa} = %{version}-%{release}
4c46e3
# replace old libnftables-devel package
4c46e3
Provides: libnftables-devel = %{version}-%{release}
4c46e3
Obsoletes: libnftables-devel < 0-0.6
4c46e3
4c46e3
%description    devel
4c46e3
The %{name}-devel package contains libraries and header files for
4c46e3
developing applications that use %{name}.
4c46e3
4c46e3
%prep
4c46e3
%setup -q -n libnftnl-%{snapdate}
4c46e3
4c46e3
%build
4c46e3
./autogen.sh
4c46e3
%configure --disable-static --disable-silent-rules --with-json-parsing --with-xml-parsing
4c46e3
make %{?_smp_mflags}
4c46e3
4c46e3
%check
4c46e3
make %{?_smp_mflags} check
4c46e3
cd tests
4c46e3
./test-script.sh
4c46e3
4c46e3
%install
4c46e3
%make_install
4c46e3
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
4c46e3
4c46e3
4c46e3
%post -p /sbin/ldconfig
4c46e3
4c46e3
%postun -p /sbin/ldconfig
4c46e3
4c46e3
4c46e3
%files
4c46e3
%doc COPYING
4c46e3
%{_libdir}/*.so.*
4c46e3
4c46e3
%files devel
4c46e3
%{_libdir}/libnft*.so
4c46e3
%{_libdir}/pkgconfig/libnftnl.pc
4c46e3
%{_includedir}/libnftnl
4c46e3
4c46e3
%changelog
4c46e3
* Thu Jan 23 2014 Kevin Fenzi <kevin@scrye.com> 0-0.7.20140122git
4c46e3
- Add obsoletes/provides to devel subpackage as well. 
4c46e3
4c46e3
* Wed Jan 22 2014 Kevin Fenzi <kevin@scrye.com> 0-0.6.20140122git
4c46e3
- Renamed libnftnl
4c46e3
- Update to 20140122 snapshot.
4c46e3
4c46e3
* Sat Jan 18 2014 Kevin Fenzi <kevin@scrye.com> 0-0.5.20140118git
4c46e3
- Update to 20140118 snapshot.
4c46e3
4c46e3
* Sat Jan 11 2014 Kevin Fenzi <kevin@scrye.com> 0-0.4.20140111git
4c46e3
- Update to 20140111 snapshot. 
4c46e3
- Enable xml (some tests stll fail, but it otherwise builds ok)
4c46e3
4c46e3
* Mon Dec 02 2013 Kevin Fenzi <kevin@scrye.com> 0-0.3.20131202git
4c46e3
- Update to 20131202 snapshot, switch to upstream snapshot repo instead of git checkouts. 
4c46e3
4c46e3
* Mon Dec 02 2013 Kevin Fenzi <kevin@scrye.com> 0-0.2
4c46e3
- Fixes from review. 
4c46e3
4c46e3
* Sat Nov 30 2013 Kevin Fenzi <kevin@scrye.com> 0-0.1
4c46e3
- initial version for Fedora review