Mageia Bugzilla – Attachment 12080 Details for
Bug 27820
Add libseccomp-static as it's needed to build snapd
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Proposal spec file to build libseccomp with a static rpm
libseccomp.spec (text/plain), 2.68 KB, created by
Kristoffer Grundström
on 2020-12-14 22:59:20 CET
(
hide
)
Description:
Proposal spec file to build libseccomp with a static rpm
Filename:
MIME Type:
Creator:
Kristoffer Grundström
Created:
2020-12-14 22:59:20 CET
Size:
2.68 KB
patch
obsolete
>Name: libseccomp >Version: 2.5.1 >Release: 1 >Summary: Enhanced seccomp library >License: LGPLv2 >URL: https://github.com/seccomp/libseccomp >Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz >BuildRequires: gcc >BuildRequires: gperf >BuildRequires: make > >%ifnarch riscv64 s390 ># Versions prior to 3.13.0-4 do not work on ARM with newer glibc 2.25.0-6 ># See https://bugzilla.redhat.com/show_bug.cgi?id=1466017 >BuildRequires: valgrind >= 3.13.0-4 >%endif > >%description >The libseccomp library provides an easy to use interface to the Linux Kernel's >syscall filtering mechanism, seccomp. The libseccomp API allows an application >to specify which syscalls, and optionally which syscall arguments, the >application is allowed to execute, all of which are enforced by the Linux >Kernel. > >%package devel >Summary: Development files used to build applications with libseccomp support >Requires: %{name}%{?_isa} = %{version}-%{release} > >%description devel >The libseccomp library provides an easy to use interface to the Linux Kernel's >syscall filtering mechanism, seccomp. The libseccomp API allows an application >to specify which syscalls, and optionally which syscall arguments, the >application is allowed to execute, all of which are enforced by the Linux >Kernel. > >%package static >Summary: Enhanced seccomp static library >Requires: %{name}-devel%{?_isa} = %{version}-%{release} > >%description static >The libseccomp library provides an easy to use interface to the Linux Kernel's >syscall filtering mechanism, seccomp. The libseccomp API allows an application >to specify which syscalls, and optionally which syscall arguments, the >application is allowed to execute, all of which are enforced by the Linux >Kernel. > >%prep >%setup -q > >%build >%configure2_5x >%make_build > >%install >mkdir -p %{buildroot}/%{_libdir} >mkdir -p %{buildroot}/%{_includedir} >mkdir -p %{buildroot}/%{_mandir} > >%makeinstall > >rm -f %{buildroot}/%{_libdir}/libseccomp.la > >%check ># Tests 36 and 37 fail on the build systems for the arches below and I'm not ># able to reproduce the failure so just skip the tests for now >%ifarch i686 ppc64le s390x >rm -f tests/36-sim-ipc_syscalls.tests tests/37-sim-ipc_syscalls_be.tests >%endif >%make_build check > >%files >%license LICENSE >%doc CREDITS README.md CHANGELOG CONTRIBUTING.md >%{_libdir}/libseccomp.so.* > >%files devel >%{_includedir}/seccomp.h >%{_includedir}/seccomp-syscalls.h >%{_libdir}/libseccomp.so >%{_libdir}/pkgconfig/libseccomp.pc >%{_bindir}/scmp_sys_resolver >%{_mandir}/man1/* >%{_mandir}/man3/* > >%files static >%{_libdir}/libseccomp.a > >%changelog >* Mon Dec 14 2020 Kristoffer Grundström <lovaren@gmail.com> - 2.5.1-1.mga7 >- Built static version
Name: libseccomp Version: 2.5.1 Release: 1 Summary: Enhanced seccomp library License: LGPLv2 URL: https://github.com/seccomp/libseccomp Source0: %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz BuildRequires: gcc BuildRequires: gperf BuildRequires: make %ifnarch riscv64 s390 # Versions prior to 3.13.0-4 do not work on ARM with newer glibc 2.25.0-6 # See https://bugzilla.redhat.com/show_bug.cgi?id=1466017 BuildRequires: valgrind >= 3.13.0-4 %endif %description The libseccomp library provides an easy to use interface to the Linux Kernel's syscall filtering mechanism, seccomp. The libseccomp API allows an application to specify which syscalls, and optionally which syscall arguments, the application is allowed to execute, all of which are enforced by the Linux Kernel. %package devel Summary: Development files used to build applications with libseccomp support Requires: %{name}%{?_isa} = %{version}-%{release} %description devel The libseccomp library provides an easy to use interface to the Linux Kernel's syscall filtering mechanism, seccomp. The libseccomp API allows an application to specify which syscalls, and optionally which syscall arguments, the application is allowed to execute, all of which are enforced by the Linux Kernel. %package static Summary: Enhanced seccomp static library Requires: %{name}-devel%{?_isa} = %{version}-%{release} %description static The libseccomp library provides an easy to use interface to the Linux Kernel's syscall filtering mechanism, seccomp. The libseccomp API allows an application to specify which syscalls, and optionally which syscall arguments, the application is allowed to execute, all of which are enforced by the Linux Kernel. %prep %setup -q %build %configure2_5x %make_build %install mkdir -p %{buildroot}/%{_libdir} mkdir -p %{buildroot}/%{_includedir} mkdir -p %{buildroot}/%{_mandir} %makeinstall rm -f %{buildroot}/%{_libdir}/libseccomp.la %check # Tests 36 and 37 fail on the build systems for the arches below and I'm not # able to reproduce the failure so just skip the tests for now %ifarch i686 ppc64le s390x rm -f tests/36-sim-ipc_syscalls.tests tests/37-sim-ipc_syscalls_be.tests %endif %make_build check %files %license LICENSE %doc CREDITS README.md CHANGELOG CONTRIBUTING.md %{_libdir}/libseccomp.so.* %files devel %{_includedir}/seccomp.h %{_includedir}/seccomp-syscalls.h %{_libdir}/libseccomp.so %{_libdir}/pkgconfig/libseccomp.pc %{_bindir}/scmp_sys_resolver %{_mandir}/man1/* %{_mandir}/man3/* %files static %{_libdir}/libseccomp.a %changelog * Mon Dec 14 2020 Kristoffer Grundström <lovaren@gmail.com> - 2.5.1-1.mga7 - Built static version
View Attachment As Raw
Actions:
View
Attachments on
bug 27820
: 12080