commit 4b9ed97dfadcbe66cfef9deadd46ec0940ce86e43b095e51fb40524d66455153 Author: Jan Engelhardt Date: Mon Jun 4 14:19:44 2012 +0000 New package OBS-URL: https://build.opensuse.org/package/show/security:netfilter/libnetfilter_cthelper?expand=0&rev=1 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/baselibs.conf b/baselibs.conf new file mode 100644 index 0000000..80a4350 --- /dev/null +++ b/baselibs.conf @@ -0,0 +1 @@ +libnetfilter_cttimeout1 diff --git a/libname.diff b/libname.diff new file mode 100644 index 0000000..e0da1cf --- /dev/null +++ b/libname.diff @@ -0,0 +1,22 @@ + +In anticipation that the official release might use +libnetfilter_cthelper.so.0 as SONAME, make sure this prerelease has a +different one. + +--- + src/Makefile.am | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +Index: libnetfilter_cthelper/src/Makefile.am +=================================================================== +--- libnetfilter_cthelper.orig/src/Makefile.am ++++ libnetfilter_cthelper/src/Makefile.am +@@ -2,7 +2,7 @@ include $(top_srcdir)/Make_global.am + lib_LTLIBRARIES = libnetfilter_cthelper.la + + libnetfilter_cthelper_la_LIBADD = ${LIBMNL_LIBS} +-libnetfilter_cthelper_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libnetfilter_cthelper.map -version-info $(LIBVERSION) ++libnetfilter_cthelper_la_LDFLAGS = -Wl,--version-script=$(srcdir)/libnetfilter_cthelper.map -version-info $(LIBVERSION) -release 0 + libnetfilter_cthelper_la_SOURCES = libnetfilter_cthelper.c \ + libnetfilter_cthelper.map \ + internal.h diff --git a/libnetfilter_cthelper-0.tar.xz b/libnetfilter_cthelper-0.tar.xz new file mode 100644 index 0000000..fc681a7 --- /dev/null +++ b/libnetfilter_cthelper-0.tar.xz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:e7fc3db7ac47b7583219e0c73839489ba0f2bddfede73de077f3e80980dfb6b5 +size 22224 diff --git a/libnetfilter_cthelper.changes b/libnetfilter_cthelper.changes new file mode 100644 index 0000000..f6e8882 --- /dev/null +++ b/libnetfilter_cthelper.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Jun 4 14:06:19 UTC 2012 - jengelh@inai.de + +- Initial package for build.opensuse.org diff --git a/libnetfilter_cthelper.spec b/libnetfilter_cthelper.spec new file mode 100644 index 0000000..f72310f --- /dev/null +++ b/libnetfilter_cthelper.spec @@ -0,0 +1,89 @@ +# +# spec file for package libnetfilter_cthelper +# +# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany. +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# + + +Name: libnetfilter_cthelper +%define lname %{name}-0-0 +Version: 0 +Release: 0 +Url: http://netfilter.org/projects/libnetfilter_cthelper/ +Summary: Userspace library for the Netfilter Conntrack Helper extension +License: LGPL-2.1+ +Group: Productivity/Networking/Security + +#Git-Clone: git://git.netfilter.org/libnetfilter_cthelper +Source: %name-%version.tar.xz +Source3: baselibs.conf +Patch1: libname.diff +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: autoconf, automake >= 1.6 +BuildRequires: libtool +BuildRequires: pkgconfig >= 0.21 +BuildRequires: pkgconfig(libmnl) >= 1.0.0 +BuildRequires: xz + +%description +This library provides the programming interface (API) to the +Netfilter userspace helper infrastructure. + +%package -n %lname +Summary: Userspace library for the Netfilter Conntrack Helper extension +Group: System/Libraries + +%description -n %lname +This library provides the programming interface (API) to the +Netfilter userspace helper infrastructure. + +%package devel +Requires: %lname = %version +Summary: Userspace library for the Netfilter Conntrack Helper extension +Group: Development/Libraries/C and C++ + +%description devel +This library provides the programming interface (API) to the +Netfilter userspace helper infrastructure. + +%prep +%setup -qn %name +%patch -P 1 -p1 + +%build +if [ ! -e configure ]; then + autoreconf -fi; +fi; +%configure --disable-static --includedir=%_includedir/%name-%version +make %{?_smp_mflags} + +%install +%makeinstall +rm -f "%buildroot/%_libdir"/*.la; + +%post -n %lname -p /sbin/ldconfig + +%postun -n %lname -p /sbin/ldconfig + +%files -n %lname +%defattr(-,root,root) +%_libdir/libnetfilter_cthelper-0.so.0* + +%files devel +%defattr(-,root,root) +%_includedir/libnetfilter_cthelper* +%_libdir/libnetfilter_cthelper.so +%_libdir/pkgconfig/libnetfilter_cthelper.pc + +%changelog