|
@@ -1,17 +1,19 @@
|
|
|
|
+%bcond_without tests
|
|
|
|
+
|
|
Summary: Enhanced seccomp library
|
|
Summary: Enhanced seccomp library
|
|
Name: libseccomp
|
|
Name: libseccomp
|
|
-Version: 2.4.1
|
|
+Version: 2.5.0
|
|
Release: 1%{?_dist_release}
|
|
Release: 1%{?_dist_release}
|
|
-ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 mipsel mips64el ppc64 ppc64le s390 s390x
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+
|
|
License: LGPLv2
|
|
License: LGPLv2
|
|
-Group: System Environment/Libraries
|
|
|
|
-Source: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
URL: https://github.com/seccomp/libseccomp
|
|
URL: https://github.com/seccomp/libseccomp
|
|
-#BuildRequires: valgrind >= 1:3.13.0-4
|
|
+Source: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
|
|
|
|
|
|
-Vendor: Project Vine
|
|
+ExclusiveArch: %{ix86} x86_64 %{arm} aarch64 mipsel mips64el ppc64 ppc64le s390 s390x
|
|
-Distribution: Vine Linux
|
|
+#BuildRequires: valgrind >= 1:3.13.0-4
|
|
-Packager: tomop
|
|
+BuildRequires: gperf
|
|
|
|
|
|
%description
|
|
%description
|
|
The libseccomp library provides an easy to use interface to the Linux Kernel's
|
|
The libseccomp library provides an easy to use interface to the Linux Kernel's
|
|
@@ -20,6 +22,7 @@ to specify which syscalls, and optionally which syscall arguments, the
|
|
application is allowed to execute, all of which are enforced by the Linux
|
|
application is allowed to execute, all of which are enforced by the Linux
|
|
Kernel.
|
|
Kernel.
|
|
|
|
|
|
|
|
+
|
|
%package devel
|
|
%package devel
|
|
Summary: Development files used to build applications with libseccomp support
|
|
Summary: Development files used to build applications with libseccomp support
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
@@ -32,6 +35,7 @@ to specify which syscalls, and optionally which syscall arguments, the
|
|
application is allowed to execute, all of which are enforced by the Linux
|
|
application is allowed to execute, all of which are enforced by the Linux
|
|
Kernel.
|
|
Kernel.
|
|
|
|
|
|
|
|
+
|
|
%package static
|
|
%package static
|
|
Summary: Enhanced seccomp static library
|
|
Summary: Enhanced seccomp static library
|
|
Group: Development/Libraries
|
|
Group: Development/Libraries
|
|
@@ -44,13 +48,16 @@ to specify which syscalls, and optionally which syscall arguments, the
|
|
application is allowed to execute, all of which are enforced by the Linux
|
|
application is allowed to execute, all of which are enforced by the Linux
|
|
Kernel.
|
|
Kernel.
|
|
|
|
|
|
|
|
+
|
|
%prep
|
|
%prep
|
|
%setup -q
|
|
%setup -q
|
|
|
|
|
|
|
|
+
|
|
%build
|
|
%build
|
|
%configure
|
|
%configure
|
|
make V=1 %{?_smp_mflags}
|
|
make V=1 %{?_smp_mflags}
|
|
|
|
|
|
|
|
+
|
|
%install
|
|
%install
|
|
rm -rf "%{buildroot}"
|
|
rm -rf "%{buildroot}"
|
|
mkdir -p "%{buildroot}/%{_libdir}"
|
|
mkdir -p "%{buildroot}/%{_libdir}"
|
|
@@ -59,13 +66,15 @@ mkdir -p "%{buildroot}/%{_mandir}"
|
|
make V=1 DESTDIR="%{buildroot}" install
|
|
make V=1 DESTDIR="%{buildroot}" install
|
|
rm -f "%{buildroot}/%{_libdir}/libseccomp.la"
|
|
rm -f "%{buildroot}/%{_libdir}/libseccomp.la"
|
|
|
|
|
|
|
|
+%if %{with tests}
|
|
%check
|
|
%check
|
|
make V=1 check
|
|
make V=1 check
|
|
|
|
+%endif
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
%post -p /sbin/ldconfig
|
|
-
|
|
|
|
%postun -p /sbin/ldconfig
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
+
|
|
%files
|
|
%files
|
|
%{!?_licensedir:%global license %%doc}
|
|
%{!?_licensedir:%global license %%doc}
|
|
%license LICENSE
|
|
%license LICENSE
|
|
@@ -77,6 +86,7 @@ make V=1 check
|
|
|
|
|
|
%files devel
|
|
%files devel
|
|
%{_includedir}/seccomp.h
|
|
%{_includedir}/seccomp.h
|
|
|
|
+%{_includedir}/seccomp-syscalls.h
|
|
%{_libdir}/libseccomp.so
|
|
%{_libdir}/libseccomp.so
|
|
%{_libdir}/pkgconfig/libseccomp.pc
|
|
%{_libdir}/pkgconfig/libseccomp.pc
|
|
%{_bindir}/scmp_sys_resolver
|
|
%{_bindir}/scmp_sys_resolver
|
|
@@ -87,6 +97,9 @@ make V=1 check
|
|
%{_libdir}/libseccomp.a
|
|
%{_libdir}/libseccomp.a
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Tue Aug 04 2020 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.5.0-1
|
|
|
|
+- new upstream release.
|
|
|
|
+
|
|
* Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.4.1-1
|
|
* Sun May 05 2019 Tomohiro "Tomo-p" KATO <tomop@teamgedoh.net> - 2.4.1-1
|
|
- new upstream release.
|
|
- new upstream release.
|
|
|
|
|