+++ /dev/null
---- libseccomp-2.0.0/Makefile~ 2013-01-16 21:07:08.000000000 +0100
-+++ libseccomp-2.0.0/Makefile 2013-01-28 17:51:12.258014973 +0100
-@@ -85,7 +85,8 @@
-
- install: $(SUBDIRS_BUILD)
- @$(ECHO_INFO) "installing in $(INSTALL_PREFIX) ..."
-- $(INSTALL_PC_MACRO) libseccomp.pc
-+ $(INSTALL) -d $(INSTALL_LIB_DIR)/pkgconfig
-+ $(INSTALL) libseccomp.pc $(INSTALL_LIB_DIR)/pkgconfig
- @for dir in $(SUBDIRS_INSTALL); do \
- $(ECHO_INFO) "installing from $$dir/"; \
- $(MAKE) -C $$dir install; \
#
+# Conditional build:
%bcond_without tests
+%bcond_without static_libs # don't build static libraries
Summary: Enhanced Seccomp (mode 2) Helper library
Summary(pl.UTF-8): Rozszerzona biblioteka pomocnicza Seccomp (trybu 2)
Name: libseccomp
-Version: 2.1.1
-Release: 2
+Version: 2.2.3
+Release: 1
License: LGPL v2.1
Group: Libraries
-Source0: http://downloads.sourceforge.net/libseccomp/%{name}-%{version}.tar.gz
-# Source0-md5: 1f41207b29e66a7e5e375dd48a64de85
-Patch0: %{name}-pc.patch
-URL: http://libseccomp.sourceforge.net/
+Source0: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
+# Source0-md5: 7db418d35d7a6168400bf6b05502f8bf
+URL: https://github.com/seccomp/libseccomp
BuildRequires: bash
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%prep
%setup -q
-%patch0 -p1
%build
-# not autoconf configure
-./configure \
- --prefix=%{_prefix} \
- --libdir=%{_libdir}
+%configure \
+ --disable-silent-rules \
+ %{!?with_static_libs:--disable-static}
+%{__make}
-GCC="%{__cc}" \
-CFLAGS="%{rpmcflags} -Wall" \
-%{__make} \
- V=1
-
-%{?with_tests:%{__make} check V=1}
+%{?with_tests:%{__make} check}
%install
rm -rf $RPM_BUILD_ROOT
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
-cp -p src/libseccomp.a $RPM_BUILD_ROOT%{_libdir}
+# obsoleted by pkg-config file
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libseccomp.la
%clean
rm -rf $RPM_BUILD_ROOT
%{_pkgconfigdir}/libseccomp.pc
%{_mandir}/man3/seccomp_*.3*
+%if %{with static_libs}
%files static
%defattr(644,root,root,755)
%{_libdir}/libseccomp.a
+%endif