libseccomp/libseccomp.spec

105 lines
2.6 KiB
RPMSpec
Raw Permalink Normal View History

2019-09-30 10:57:59 -04:00
Name: libseccomp
2020-08-25 15:52:36 +08:00
Version: 2.5.0
Release: 5
2019-09-30 10:57:59 -04:00
Summary: Interface to the syscall filtering mechanism
License: LGPLv2
URL: https://github.com/seccomp/libseccomp
Source0: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
Patch6000: backport-only-request-the-userspace-notification-fd-once.patch
Patch6001: backport-system-change-our-notification-fd-handling.patch
2020-08-25 15:52:36 +08:00
BuildRequires: gcc git gdb gperf
2019-09-30 10:57:59 -04:00
%description
The libseccomp library provides an easy to use, platform independent, interface to
2019-11-06 19:39:49 +08:00
the Linux Kernel's syscall filtering mechanism. The libseccomp API is designed to
2019-09-30 10:57:59 -04:00
abstract away the underlying BPF based syscall filter language and present a more
conventional function-call based filtering interface that should be familiar to,
and easily adopted by, application developers.
%package devel
Summary: Development files for %{name}
Requires: %{name} = %{version}-%{release}
Provides: %{name}-static = %{version}-%{release}
Obsoletes: %{name}-static <= %{version}-%{release}
%description devel
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
2019-11-06 19:39:49 +08:00
%package_help
2019-09-30 10:57:59 -04:00
%prep
%autosetup -n %{name}-%{version} -p1 -S git
%build
%configure
%make_build
%install
%make_install
2019-11-06 19:39:49 +08:00
%delete_la
2019-09-30 10:57:59 -04:00
%check
make check
%pre
%preun
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%doc CREDITS
%license LICENSE
%{_libdir}/%{name}.so.*
%files devel
%{_bindir}/scmp_sys_resolver
%{_includedir}/seccomp.h
2020-05-11 15:06:55 +08:00
%{_includedir}/seccomp-syscalls.h
2019-11-06 19:39:49 +08:00
%{_libdir}/%{name}.a
%{_libdir}/%{name}.so
2019-09-30 10:57:59 -04:00
%{_libdir}/pkgconfig/%{name}.pc
%files help
%doc CHANGELOG CONTRIBUTING.md README.md
%{_mandir}/man*/*
%changelog
* Fri Jun 30 2023 shixuantong <shixuantong1@huawei.com> - 2.5.0-5
- backport patches from upstream
* Thu Sep 15 2022 zhoupengcheng <zhoupengcheng11@huawei.com> - 2.5.0-4
- remove recommend in spec
2020-11-13 14:52:43 +08:00
* Fri Nov 13 2020 Liquor <lirui130@huawei.com> - 2.5.0-3
- Modify the libseccomp-help dependency
2020-11-06 17:16:11 +08:00
* Fri Nov 6 2020 wangchen <wangchen137@huawei.com> - 2.5.0-2
2020-11-06 16:14:23 +08:00
- Add libseccomp-help into Requires.
2020-08-25 15:52:36 +08:00
* Thu Aug 25 2020 Liquor <lirui130@huawei.com> - 2.5.0-1
- update to 2.5.0
2020-05-11 15:06:55 +08:00
* Fri Apr 24 2020 BruceGW <gyl93216@163.com> - 2.4.3-1
- update upstream to 2.4.3
2019-11-06 19:39:49 +08:00
* Fri Oct 11 2019 jiangchuangang <jiangchuangang@huawei.com> - 2.4.1-3
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: remove so.* from devel
2019-09-30 10:57:59 -04:00
* Tue Sep 24 2019 luhuaxin <luhuaxin@huawei.com> - 2.4.1-2
- Type: enhancement
- ID: NA
- SUG: NA
- DESC: add help package and merge static package
* Fri Aug 16 2019 luhuaxin <luhuaxin@huawei.com> - 2.4.1-1
- Package init