Browse Source

nftables関連

git-svn-id: http://trac.vinelinux.org/repos/projects/specs@9652 ec354946-7b23-47d6-9f5a-488ba84defc7
tomop 8 years ago
parent
commit
be4bd9f146
4 changed files with 393 additions and 7 deletions
  1. 10 7
      j/jansson/jansson-vl.spec
  2. 123 0
      lib/libn/libnftnl/libnftnl-vl.spec
  3. 153 0
      m/mxml/mxml-vl.spec
  4. 107 0
      n/nftables/nftables-vl.spec

+ 10 - 7
j/jansson/jansson-vl.spec

@@ -1,6 +1,6 @@
 Name:		jansson
-Version:	2.1
-Release:        1%{?_dist_release}
+Version:	2.7
+Release:	1%{?_dist_release}
 Summary:	C library for encoding, decoding and manipulating JSON data
 Summary(ja):	JSONデータをエンコード・デコード・操作するためのライブラリ
 
@@ -61,34 +61,37 @@ rm -rf "$RPM_BUILD_ROOT"
 %{_includedir}/*
 
 %changelog
+* Wed Jul  8 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.7-1
+- new upstream release.
+
 * Tue Jun 19 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 	2.1-1
 - initial build for Vine Linux
 
 * Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.1-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
 
-* Thu Jun 11 2011 Sean Middleditch <sean@middleditch.us> 2.1-1
+* Sat Jun 11 2011 Sean Middleditch <sean@middleditch.us> 2.1-1
 - Update to Jansson 2.1.
 - Drop Sphinx patch, no longer necessary.
 
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
 
-* Thu Jul 03 2010 Sean Middleditch <sean@middleditch.us> 1.3-1
+* Sat Jul 03 2010 Sean Middleditch <sean@middleditch.us> 1.3-1
 - Update to Jansson 1.3.
 - Disable warnings-as-errors for Sphinx documentation.
 
 * Thu Jan 21 2010 Sean Middleditch <sean@middleditch.us> 1.2-1
 - Update to Jansson 1.2.
 
-* Thu Jan 11 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-4
+* Mon Jan 11 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-4
 - Update jansson description per upstream's suggestions.
 - Removed README from docs.
 
-* Thu Jan 09 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-3
+* Sat Jan 09 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-3
 - Correct misspelling of jansson in the pkg-config file.
 
-* Thu Jan 09 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-2
+* Sat Jan 09 2010 Sean Middleditch <sean@middleditch.us> 1.1.3-2
 - Fix Changelog dates.
 - Mix autoheader warning.
 - Added make check.

+ 123 - 0
lib/libn/libnftnl/libnftnl-vl.spec

@@ -0,0 +1,123 @@
+#global snapdate 20140903
+
+Name:           libnftnl
+Version:        1.0.3
+Release:        2%{?_dist_release}
+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/libnftnl-%{version}.tar.bz2
+
+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}
+%setup -q
+
+%build
+%configure --disable-static --disable-silent-rules --with-json-parsing --with-xml-parsing
+make %{?_smp_mflags}
+
+%check
+make %{?_smp_mflags} check
+# tests are broken in 1.0.1 re-enable on next update
+#cd tests
+#sh ./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
+* Tue Jul  7 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 1.0.3-2
+- initial build for Vine Linux.
+
+* Fri Dec 26 2014 Kevin Fenzi <kevin@scrye.com> 1.0.3-1
+- Update to final 1.0.3
+
+* Wed Sep 03 2014 Kevin Fenzi <kevin@scrye.com> 1.0.3-0.1.20140903git
+- Update to 20140903 git snapshot
+
+* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.2-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Wed Jun 25 2014 Kevin Fenzi <kevin@scrye.com> 1.0.2-1
+- Update to 1.0.2
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Thu Apr 24 2014 Kevin Fenzi <kevin@scrye.com> 1.0.1-1.
+- Update to 1.0.1
+
+* Sun Mar 30 2014 Kevin Fenzi <kevin@scrye.com> 1.0.0-1.20140330git
+- Update to 20140330 snapshot
+- Sync version to be a post 1.0.0 snapshot
+
+* Wed Mar 26 2014 Kevin Fenzi <kevin@scrye.com> 0-0.10.20140326git
+- Update to 20140326 snapshot
+
+* Fri Mar 07 2014 Kevin Fenzi <kevin@scrye.com> 0-0.9.20140307git
+- Update to 20140307 snapshot
+
+* Sat Jan 25 2014 Kevin Fenzi <kevin@scrye.com> 0-0.8.20140125git
+- Update to 20140125
+
+* Thu Jan 23 2014 Kevin Fenzi <kevin@scrye.com> 0-0.7.20140122git
+- Add obsoletes/provides to devel subpackage as well. 
+
+* Wed Jan 22 2014 Kevin Fenzi <kevin@scrye.com> 0-0.6.20140122git
+- Renamed libnftnl
+- Update to 20140122 snapshot.
+
+* Sat Jan 18 2014 Kevin Fenzi <kevin@scrye.com> 0-0.5.20140118git
+- Update to 20140118 snapshot.
+
+* Sat Jan 11 2014 Kevin Fenzi <kevin@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@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@scrye.com> 0-0.2
+- Fixes from review. 
+
+* Sat Nov 30 2013 Kevin Fenzi <kevin@scrye.com> 0-0.1
+- initial version for Fedora review

+ 153 - 0
m/mxml/mxml-vl.spec

@@ -0,0 +1,153 @@
+Summary:      Miniature XML development library
+Name:         mxml
+Version:      2.8
+Release:      3%{?_dist_release}
+License:      LGPLv2+
+Group:        System Environment/Libraries
+URL:          http://www.msweet.org/blog.php?L+Z3
+Source0:      https://www.msweet.org/files/project3/mxml-2.8.tar.gz
+BuildRoot:    %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+# This is requires because we patch configure.in.
+BuildRequires: autoconf
+
+%description
+Mini-XML is a small XML parsing library that you can use to read XML
+and XML-like data files in your application without requiring large
+non-standard libraries.
+
+%package devel
+Summary:  Libraries, includes, etc to develop mxml applications
+Group:    Development/Libraries
+Requires: mxml = %{version}-%{release}
+Requires: pkgconfig
+
+%description devel
+Libraries, include files, etc you can use to develop mxml
+applications.
+
+%prep
+%setup -q
+
+%build
+# Run autoconf since we patched configure.in.
+autoconf
+%configure --enable-shared
+make %{?_smp_mflags}
+
+%install
+rm -rf %{buildroot}
+make BUILDROOT=%{buildroot} install
+
+# Configuring with --disable-static doesn't work, so let's just delete
+# the .a file by hand.
+rm %{buildroot}%{_libdir}/libmxml.a
+
+# remove extra docs
+rm -rf %{buildroot}%{_datadir}/doc/mxml/
+
+# remove rendered man pages
+rm -f %{buildroot}%{_datadir}/man/cat*/*
+
+
+%clean
+rm -rf %{buildroot}
+
+%post -p /sbin/ldconfig
+
+%postun -p /sbin/ldconfig
+
+%files
+%defattr(-,root,root,-)
+%doc COPYING README
+%{_bindir}/*
+%{_libdir}/libmxml.so.*
+
+%files devel
+%defattr(-,root,root,-)
+%doc CHANGES doc/*.html doc/*.gif
+%{_includedir}/*.h
+%{_libdir}/libmxml.so
+%{_mandir}/*/*
+%{_libdir}/pkgconfig/mxml.pc
+
+%changelog
+* Tue Jul  7 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 2.8-3
+- initia build for Vine Linux.
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8-2
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sun Apr 06 2014 Brendan Jones <brendan.jones.it@gmail.com> 2.8-1
+- Update to 2.8
+
+* Tue Dec 03 2013 Brendan Jones <brendan.jones.it@gmail.com> 2.6-1
+- Update to 2.7
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-10
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-9
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-8
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
+
+* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-7
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
+
+* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-6
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
+
+* Wed Oct 28 2009 Orcan Ogetbil <oget [DOT] fedora [AT] gmail [DOT] com> - 2.5-5
+- Fix typo in the .pc file (RHBZ#503628). Patch by Robert Szalai
+
+* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-4
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
+
+* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5-3
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
+
+* Mon Aug 11 2008 Tom "spot" Callaway <tcallawa@redhat.com> 2.5-2
+- fix license tag
+
+* Tue Jul 08 2008 Anthony Green <green@redhat.com> 2.5
+- Upgrade source.
+
+* Mon Feb 18 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 2.2.2-8
+- Autorebuild for GCC 4.3
+
+* Thu Oct 05 2006 Christian Iseli <Christian.Iseli@licr.org> 2.2.2-7
+ - rebuilt for unwind info generation, broken in gcc-4.1.1-21
+
+* Tue Sep 19 2006 Anthony Green <green@redhat.com> 2.2.2-6
+- Fix release tag.
+
+* Mon Sep 18 2006 Anthony Green <green@redhat.com> 2.2.2-5.1
+- Rebuild.
+
+* Mon Sep  4 2006 Anthony Green <green@redhat.com> 2.2.2-5
+- devel package must Require pkgconfig.
+
+* Wed Jul 19 2006 Anthony Green <green@redhat.com> 2.2.2-4
+- Fix /usr/share references.
+
+* Sat Jul 15 2006 Anthony Green <green@redhat.com> 2.2.2-3
+- Fix /usr/lib reference when deleting libmxml.a.
+
+* Sat Jul 15 2006 Anthony Green <green@redhat.com> 2.2.2-2
+- Fix License (LGPL, not GPL).
+- Move programming documentation to devel package.
+- Build shared library, and no static library.
+- Add %%post(un).
+- Remove rpath with mxml-no-rpath.patch.
+- First Fedora Extras build.
+
+* Fri Sep 23 2005 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 2.2.2-1
+- updated to 2.2.2 (zynaddsubfx needs 2.2 at least)
+* Mon Dec 27 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 
+- spec file cleanup
+* Wed Aug  4 2004 Fernando Lopez-Lezcano <nando@ccrma.stanford.edu> 2.0-1
+- initial build.
+
+

+ 107 - 0
n/nftables/nftables-vl.spec

@@ -0,0 +1,107 @@
+Name:           nftables
+Version:        0.4
+Release:        3%{?_dist_release}
+Summary:        Netfilter Tables userspace utillites
+
+License:        GPLv2
+URL:            http://netfilter.org/projects/nftables/
+Source0:        http://ftp.netfilter.org/pub/nftables/nftables-%{version}.tar.bz2
+# Already applied upstream
+# http://git.netfilter.org/nftables/patch/?id=545c93d54d900e8e20071891b7e2bf3bb0e5fed2
+Patch0:         nftables-0.4-fix-dep-gen.patch
+
+#BuildRequires: autogen
+#BuildRequires: autoconf
+#BuildRequires: automake
+#BuildRequires: libtool
+BuildRequires: flex
+BuildRequires: bison
+BuildRequires: libmnl-devel
+BuildRequires: gmp-devel
+BuildRequires: readline-devel
+BuildRequires: libnftnl-devel
+BuildRequires: docbook2X
+
+%description
+Netfilter Tables userspace utilities.
+
+%prep
+#setup -q -n nftables-%{snapdate}
+%setup -q
+
+%patch0 -p1
+
+%build
+#./autogen.sh
+%configure --disable-silent-rules
+make %{?_smp_mflags}
+
+%install
+%make_install
+find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
+chmod 644 $RPM_BUILD_ROOT/%{_mandir}/man8/nft*
+
+%files
+%doc COPYING TODO
+%config(noreplace) %{_sysconfdir}/nftables/
+%{_sbindir}/nft
+%{_mandir}/man8/nft*
+
+%changelog
+* Wed Jul  8 2015 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> 0.4-3
+- initial build for Vine Linux.
+
+* Sat Jan 10 2015 Kevin Fenzi <kevin@scrye.com> 0.4-2
+- Add patch to fix nft -f dep gen.
+
+* Fri Dec 26 2014 Kevin Fenzi <kevin@scrye.com> 0.4-1
+- Update to 0.4
+- Add Epoch to fix versioning. 
+
+* Wed Sep 03 2014 Kevin Fenzi <kevin@scrye.com> 0.100-4.20140903git
+- Update to 20140903 snapshot
+
+* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-4.20140704git
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
+
+* Fri Jul 04 2014 Kevin Fenzi <kevin@scrye.com> 0.100-3.20140704git
+- Update to new snapshot
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.100-2.20140426git
+- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Sat Apr 26 2014 Kevin Fenzi <kevin@scrye.com> 0.100-1.20140426git
+- Update t0 20140426
+
+* Sun Mar 30 2014 Kevin Fenzi <kevin@scrye.com> 0.100-1.20140330git
+- Update to 20140330 snapshot
+- Sync versions to be post 0.100 release.
+
+* Wed Mar 26 2014 Kevin Fenzi <kevin@scrye.com> 0-0.7.20140326git
+- Update to 20140326 snapshot
+- Fix permissions on man pages. 
+
+* Mon Mar 24 2014 Kevin Fenzi <kevin@scrye.com> 0-0.6.20140324git
+- Update to 20140324 snapshot
+
+* Fri Mar 07 2014 Kevin Fenzi <kevin@scrye.com> 0-0.5.20140307git
+- Update to 20140307
+
+* Sat Jan 25 2014 Kevin Fenzi <kevin@scrye.com> 0-0.4.20140125git
+- Update to 20140125 snapshot
+
+* Sat Jan 18 2014 Kevin Fenzi <kevin@scrye.com> 0-0.3.20140118git
+- Update to 20140118 snapshot
+- Fixed License tag to be correct
+- Fixed changelog
+- nft scripts now use full path for nft
+- Fixed man page building
+- Dropped unneeded rm in install
+- Patched build to not be silent. 
+
+* Tue Dec 03 2013 Kevin Fenzi <kevin@scrye.com> 0-0.2.20131202git
+- Use upstream snapshots for source.
+- Use 0 for version. 
+
+* Sat Nov 30 2013 Kevin Fenzi <kevin@scrye.com> 0-0.1
+- initial version for Fedora review