public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/libseccomp] f43: Update to version 2.6.1; Resolves: rhbz#2341880
@ 2026-07-18 16:44 Michel Lind
  0 siblings, 0 replies; only message in thread
From: Michel Lind @ 2026-07-18 16:44 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/libseccomp
            Branch : f43
            Commit : dbba67fc576b025600d3efebd3c02fb0f3e2d66e
            Author : Michel Lind <salimma@fedoraproject.org>
            Date   : 2026-07-18T11:25:11+01:00
            Stats  : +84/-26 in 4 file(s)
            URL    : https://src.fedoraproject.org/rpms/libseccomp/c/dbba67fc576b025600d3efebd3c02fb0f3e2d66e?branch=f43

            Log:
            Update to version 2.6.1; Resolves: rhbz#2341880

- Build Python bindings; Resolves: rhbz#2437438
- Enable Packit
- Support disabling tests for iterating on spec changes

Signed-off-by: Michel Lind <salimma@fedoraproject.org>

---
diff --git a/.gitignore b/.gitignore
index 73baea7..37a0601 100644
--- a/.gitignore
+++ b/.gitignore
@@ -20,3 +20,4 @@
 /libseccomp-2.5.3.tar.gz
 /libseccomp-2.5.5.tar.gz
 /libseccomp-2.6.0.tar.gz
+/libseccomp-2.6.1.tar.gz

diff --git a/libseccomp.spec b/libseccomp.spec
index f1b6fbf..224eb4d 100644
--- a/libseccomp.spec
+++ b/libseccomp.spec
@@ -1,17 +1,24 @@
+%bcond python 1
+%bcond test 1
+
+%ifarch %{ix86}
+%global _cython_cpu i386
+%elifarch ppc64le
+%global _cython_cpu powerpc64le
+%else
+%global _cython_cpu %{_host_cpu}
+%endif
+
 Name:           libseccomp
-Version:        2.6.0
+Version:        2.6.1
 Release:        %autorelease
 Summary:        Enhanced seccomp library
-License:        LGPL-2.1-only
-URL:            https://github.com/seccomp/libseccomp
-Source0:        %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
 
-# Backports from upstream
+%global soname_version %%(echo %%{version}} | cut -d. -f1)
 
-# From https://github.com/seccomp/libseccomp/pull/459
-Patch0101:      fix-murmur-hash-strict-aliasing-violation.patch
-# https://github.com/seccomp/libseccomp/pull/452
-Patch0102: remove-fuzzer-test-from-62-sim-arch_transactions.patch
+License:        LGPL-2.1-only
+URL:            https://github.com/seccomp/libseccomp
+Source:         %{url}/releases/download/v%{version}/%{name}-%{version}.tar.gz
 
 BuildRequires:  gcc
 BuildRequires:  gperf
@@ -23,40 +30,65 @@ BuildRequires:  make
 BuildRequires:  valgrind >= 1:3.13.0-4
 %endif
 
-%description
+%global _description %{expand:
 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.
+Kernel.}
+
+%description %{_description}
+
 
 %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.
+%description devel %{_description}
+
+The %{name}-devel package contains the dynamic library and header files for
+developing applications that use %{name}.
+
 
 %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.
+%description static %{_description}
+
+The %{name}-static package contains the static library for developing 
+applications that statically link against %{name}.
+
+
+%if %{with python}
+%package python
+Summary:        Python bindings for %{name}
+BuildRequires:  python3-devel
+BuildRequires:  python3dist(cython)
+BuildRequires:  python3dist(setuptools)
+BuildRequires:  sed
+Requires:       %{name}%{?_isa} = %{version}-%{release}
+
+%description python %{_description}
+
+The %{name}-python package contains Python bindings for %{name}.
+
+%files python
+%{python3_sitearch}/seccomp-%{version}-py%{python3_version}.egg-info/
+%{python3_sitearch}/seccomp.cpython-%{python3_version_nodots}-%{_cython_cpu}-linux-gnu.so
+%endif
+
 
 %prep
 %autosetup -p1
+%if %{with python}
+sed -ie 's|$cmd /usr/bin/env python|$cmd %{python3}|g' tests/regression
+%endif
+
+%conf
+%configure %{?with_python:--enable-python}
 
 %build
-%configure
 %make_build
 
 %install
@@ -67,15 +99,23 @@ mkdir -p %{buildroot}/%{_mandir}
 %make_install
 
 rm -f %{buildroot}/%{_libdir}/libseccomp.la
+%if %{with python}
+# this file is not necessary, and the files listed are prefixed with
+# %%{buildroot} so we'd have to clean it up or delete it
+rm -f %{buildroot}%{python3_sitearch}/install_files.txt
+%endif
 
 %check
+%if %{with tests}
 %make_build check
+%endif
 
 
 %files
 %license LICENSE
 %doc CREDITS README.md CHANGELOG CONTRIBUTING.md
-%{_libdir}/libseccomp.so.*
+%{_libdir}/libseccomp.so.%{soname_version}
+%{_libdir}/libseccomp.so.%{version}
 
 %files devel
 %{_includedir}/seccomp.h
@@ -89,5 +129,6 @@ rm -f %{buildroot}/%{_libdir}/libseccomp.la
 %files static
 %{_libdir}/libseccomp.a
 
+
 %changelog
 %autochangelog

diff --git a/packit.yaml b/packit.yaml
new file mode 100644
index 0000000..fdf84eb
--- /dev/null
+++ b/packit.yaml
@@ -0,0 +1,16 @@
+# See the documentation for more information:
+# https://packit.dev/docs/configuration/
+
+copy_upstream_release_description: false
+
+jobs:
+- job: pull_from_upstream
+  trigger: release
+  dist_git_branches:
+    - fedora-rawhide
+
+- job: koji_build
+  trigger: commit
+  allowed_committers: ['packit']
+  dist_git_branches:
+    - fedora-rawhide

diff --git a/sources b/sources
index f1d46fe..34ffbd0 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (libseccomp-2.6.0.tar.gz) = 9039478656d9b670af2ff4cb67b6b1fa315821e59d2f82ba6247e988859ddc7e3d15fea159eccca161bf2890828bb62aa6ab4d6b7ff55f27a9d6bd9532eeee1b
+SHA512 (libseccomp-2.6.1.tar.gz) = 468404874ee013177f048611a4fefef87f4ee01b83d991f8bf9026c8fdb8506badd613e0355ad8222c5a7f51162b6829de6d72fc53222a56e0e123d5e85f73c4

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-07-18 16:44 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-07-18 16:44 [rpms/libseccomp] f43: Update to version 2.6.1; Resolves: rhbz#2341880 Michel Lind

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox