]> git.pld-linux.org Git - packages/libseccomp.git/commitdiff
up to 2.2.3
authorElan Ruusamäe <glen@delfi.ee>
Mon, 15 Feb 2016 20:57:03 +0000 (22:57 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Mon, 15 Feb 2016 20:57:03 +0000 (22:57 +0200)
libseccomp-pc.patch [deleted file]
libseccomp.spec

diff --git a/libseccomp-pc.patch b/libseccomp-pc.patch
deleted file mode 100644 (file)
index 68498af..0000000
+++ /dev/null
@@ -1,12 +0,0 @@
---- 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; \
index fa32890a348564d80e29c663dfd3569bf5bef4b1..6854645c0f73ecaa8dd1d2b3e1ac477054995b91 100644 (file)
@@ -1,17 +1,18 @@
 #
+# 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)
 
@@ -58,27 +59,22 @@ Statyczna biblioteka Seccomp.
 
 %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
@@ -101,6 +97,8 @@ 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
This page took 0.090378 seconds and 4 git commands to generate.