input/libseccomp.spec
raw · 3.4 KiB
%bcond_with 32bit
Name: libseccomp
Version: 2.6.1
Release: 1%{?dist}
Summary: The libseccomp library provides an interface for seccomp system calls in Linux
Summary(ru): Библиотека libseccomp предоставляет интерфейс для работы с системными вызовами seccomp в Linux
License: LGPL-2.1-or-later
URL: https://github.com/seccomp/libseccomp/wiki
Source0: https://github.com/seccomp/libseccomp/releases/download/v%{version}/%{name}-%{version}.tar.gz
Packager: NICE SOFT GROUP LLC (ООО "НАЙС СОФТ ГРУПП") 5024245440 <niceos@ncsgp.ru>
Vendor: NiceSOFT
Distribution: NiceOS.Core
BugURL: https://bugs.niceos.ru/
VCS: https://specs.niceos.ru/rmps/%{name}
BuildRequires: gperf
BuildRequires: which
%if 0%{?with_check}
BuildRequires: which
%endif
%description
libseccomp provides an easy-to-use, platform-independent interface to the Linux
kernel's seccomp syscall filtering mechanism. It allows applications to create
system-call filters for sandboxing and reducing the attack surface.
%description -l ru
libseccomp предоставляет удобный и платформонезависимый интерфейс к механизму
фильтрации системных вызовов seccomp в ядре Linux. Библиотека позволяет
создавать фильтры системных вызовов для песочниц и ограничения возможностей
программ, повышая их безопасность.
%package devel
Summary: Development files for libseccomp
Summary(ru): Файлы разработки для libseccomp
Provides: pkgconfig(libseccomp)
Requires: %{name} = %{version}-%{release}
%description -n %{name}-devel
This subpackage contains headers, pkg-config files and development symlinks
needed to build applications that use libseccomp.
%description -l ru -n %{name}-devel
Подпакет содержит заголовочные файлы, файлы pkg-config и линковочные симлинки,
необходимые для сборки приложений, использующих libseccomp.
%if %{with 32bit}
%package_32bit
%endif
%prep
%autosetup -p1
%build
mkdir -pv build64
pushd build64
%configure64 --disable-static
%make_build
popd
%if %{with 32bit}
mkdir -pv build32
pushd build32
%configure32 --disable-static
%make_build
popd
%endif
%install
pushd build64
%make_install %{?_smp_mflags}
popd
%if %{with 32bit}
%make32_install
%endif
rm -f %{buildroot}%{_libdir}/*.la
%clean
rm -rf %{buildroot}
%if 0%{?with_check}
%check
make check %{?_smp_mflags}
%endif
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-,root,root,-)
%doc LICENSE
%doc CREDITS
%doc README.md
%attr(755,root,root) %{_libdir}/libseccomp.so.*
%files -n %{name}-devel
%defattr(-,root,root,-)
%{_includedir}/seccomp.h
%{_includedir}/seccomp-syscalls.h
%{_libdir}/libseccomp.so
%{_libdir}/pkgconfig/libseccomp.pc
%{_bindir}/scmp_sys_resolver
%{_mandir}/man1/*
%{_mandir}/man3/*
%if %{with 32bit}
%files_32bit
%endif
%changelog
* Tue Jul 07 2026 NiceOS Team <support@niceos.ru> - 2.6.1-1
- EN: Update to upstream version 2.6.1.
- RU: Обновление до upstream-версии 2.6.1.
* Fri Jan 09 2026 NiceOS Team <niceos@ncsgp.ru> - 2.6.0-1
- Initial build for NiceOS (Первая сборка для НАЙС.ОС)