[libnftnl] Add obsoletes/provides to devel subpackage as well.

Kevin Fenzi kevin at fedoraproject.org
Sat Jan 25 17:08:14 UTC 2014


commit 4c46e3587d00b6ba6cbef7f1d8b374521016de83
Author: Kevin Fenzi <kevin at scrye.com>
Date:   Sat Jan 25 10:08:32 2014 -0700

    Add obsoletes/provides to devel subpackage as well.

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


More information about the scm-commits mailing list