libnftnl-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. #global snapdate 20140903
  2. Name: libnftnl
  3. Version: 1.0.3
  4. Release: 2%{?_dist_release}
  5. Summary: Library for low-level interaction with nftables Netlink's API over libmnl
  6. License: GPLv2+
  7. URL: http://netfilter.org/projects/libnftnl/
  8. Source0: http://ftp.netfilter.org/pub/libnftnl/libnftnl-%{version}.tar.bz2
  9. BuildRequires: libmnl-devel
  10. BuildRequires: mxml-devel
  11. BuildRequires: jansson-devel
  12. # replace old libnftables package
  13. Provides: libnftables = %{version}-%{release}
  14. Obsoletes: libnftables < 0-0.6
  15. %description
  16. A library for low-level interaction with nftables Netlink's API over libmnl.
  17. %package devel
  18. Summary: Development files for %{name}
  19. Requires: %{name}%{_isa} = %{version}-%{release}
  20. # replace old libnftables-devel package
  21. Provides: libnftables-devel = %{version}-%{release}
  22. Obsoletes: libnftables-devel < 0-0.6
  23. %description devel
  24. The %{name}-devel package contains libraries and header files for
  25. developing applications that use %{name}.
  26. %prep
  27. #setup -q -n libnftnl-%{snapdate}
  28. %setup -q
  29. %build
  30. %configure --disable-static --disable-silent-rules --with-json-parsing --with-xml-parsing
  31. make %{?_smp_mflags}
  32. %check
  33. make %{?_smp_mflags} check
  34. # tests are broken in 1.0.1 re-enable on next update
  35. #cd tests
  36. #sh ./test-script.sh
  37. %install
  38. %make_install
  39. find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
  40. %post -p /sbin/ldconfig
  41. %postun -p /sbin/ldconfig
  42. %files
  43. %doc COPYING
  44. %{_libdir}/*.so.*
  45. %files devel
  46. %{_libdir}/libnft*.so
  47. %{_libdir}/pkgconfig/libnftnl.pc
  48. %{_includedir}/libnftnl
  49. %changelog
  50. * Tue Jul 7 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-2
  51. - initial build for Vine Linux.
  52. * Fri Dec 26 2014 Kevin Fenzi <kevin@scrye.com> 1.0.3-1
  53. - Update to final 1.0.3
  54. * Wed Sep 03 2014 Kevin Fenzi <kevin@scrye.com> 1.0.3-0.1.20140903git
  55. - Update to 20140903 git snapshot
  56. * Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
  57. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
  58. * Wed Jun 25 2014 Kevin Fenzi <kevin@scrye.com> 1.0.2-1
  59. - Update to 1.0.2
  60. * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
  61. - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
  62. * Thu Apr 24 2014 Kevin Fenzi <kevin@scrye.com> 1.0.1-1.
  63. - Update to 1.0.1
  64. * Sun Mar 30 2014 Kevin Fenzi <kevin@scrye.com> 1.0.0-1.20140330git
  65. - Update to 20140330 snapshot
  66. - Sync version to be a post 1.0.0 snapshot
  67. * Wed Mar 26 2014 Kevin Fenzi <kevin@scrye.com> 0-0.10.20140326git
  68. - Update to 20140326 snapshot
  69. * Fri Mar 07 2014 Kevin Fenzi <kevin@scrye.com> 0-0.9.20140307git
  70. - Update to 20140307 snapshot
  71. * Sat Jan 25 2014 Kevin Fenzi <kevin@scrye.com> 0-0.8.20140125git
  72. - Update to 20140125
  73. * Thu Jan 23 2014 Kevin Fenzi <kevin@scrye.com> 0-0.7.20140122git
  74. - Add obsoletes/provides to devel subpackage as well.
  75. * Wed Jan 22 2014 Kevin Fenzi <kevin@scrye.com> 0-0.6.20140122git
  76. - Renamed libnftnl
  77. - Update to 20140122 snapshot.
  78. * Sat Jan 18 2014 Kevin Fenzi <kevin@scrye.com> 0-0.5.20140118git
  79. - Update to 20140118 snapshot.
  80. * Sat Jan 11 2014 Kevin Fenzi <kevin@scrye.com> 0-0.4.20140111git
  81. - Update to 20140111 snapshot.
  82. - Enable xml (some tests stll fail, but it otherwise builds ok)
  83. * Mon Dec 02 2013 Kevin Fenzi <kevin@scrye.com> 0-0.3.20131202git
  84. - Update to 20131202 snapshot, switch to upstream snapshot repo instead of git checkouts.
  85. * Mon Dec 02 2013 Kevin Fenzi <kevin@scrye.com> 0-0.2
  86. - Fixes from review.
  87. * Sat Nov 30 2013 Kevin Fenzi <kevin@scrye.com> 0-0.1
  88. - initial version for Fedora review