public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Nicolas Chauvet <kwizart@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/afflib] f43: Update to 3.7.22 and pyprojectize
Date: Fri, 06 Nov 2026 09:06:48 GMT [thread overview]
Message-ID: <179395600863.1.9437872388934301158.rpms-afflib-cc670b21e3dd@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/afflib
Branch : f43
Commit : cc670b21e3dd2b99ae3f528862e2859588310d1c
Author : Nicolas Chauvet <kwizart@gmail.com>
Date : 2026-01-29T23:15:57+01:00
Stats : +20/-76 in 1 file(s)
URL : https://src.fedoraproject.org/rpms/afflib/c/cc670b21e3dd2b99ae3f528862e2859588310d1c?branch=f43
Log:
Update to 3.7.22 and pyprojectize
---
diff --git a/afflib.spec b/afflib.spec
index 1be8728..fcb1edc 100644
--- a/afflib.spec
+++ b/afflib.spec
@@ -1,25 +1,18 @@
Name: afflib
-Version: 3.7.20
+Version: 3.7.22
Release: %autorelease
-# Automatically converted from old format: BSD with advertising - review is highly recommended.
License: LicenseRef-Callaway-BSD-with-advertising
Summary: Library to support the Advanced Forensic Format
-# Build also the python2 package
-%global with_python2 0
-# Build also the python3 package
-%global with_python3 1
-
%global gituser sshock
%global gitname AFFLIBv3
-%global gitdate 20240324
-%global commit 95bf6cb9cf344ed6dccb8eb12bc159a17e616adb
+%global gitdate 20250908
+%global commit 23935ba31271e55890a2126bd0f1944daeb33438
%global shortcommit %(c=%{commit}; echo ${c:0:7})
URL: https://github.com/sshock/AFFLIBv3
VCS: https://github.com/sshock/AFFLIBv3
-#Source0: %%{vcs}/archive/v%%{version}/%%{name}-%%{version}.tar.gz
-Source0: %{vcs}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz#/%{name}-%{version}-%{shortcommit}.tar.gz
+Source0: %{vcs}/archive/%{commit}/%{name}-%{shortcommit}.tar.gz
BuildRequires: gcc-c++
BuildRequires: libtool
@@ -38,20 +31,9 @@ BuildRequires: zlib-devel
#BuildRequires: libedit-devel - good replacement for readline - not supported for now
-%if 0%{?with_python2}
-BuildRequires: python2
-BuildRequires: python2-devel
-BuildRequires: python2-setuptools
-BuildRequires: python2-Cython
-%endif
-
-
-%if 0%{?with_python3}
BuildRequires: python%{python3_pkgversion}
BuildRequires: python%{python3_pkgversion}-devel
-BuildRequires: python%{python3_pkgversion}-setuptools
BuildRequires: python%{python3_pkgversion}-Cython
-%endif
@@ -83,36 +65,15 @@ Requires: pkgconfig
The %{name}-devel package contains libraries and header files for
developing applications that use %{name}.
-#====================================================================
-%if 0%{?with_python2}
-%package -n python2-pyaff
-Summary: Python2 binding for the AFFLIB
-Group: Development/Libraries
-%{?python_provide:%python_provide python2-pyaff}
-
-%description -n python2-pyaff
-Python2 bindings for AFFLIB.
-These bindings currently support a read-only file-like interface to AFFLIB and
-basic metadata accessor functions. The binding is not currently complete.
-# end with_python2
-%endif
-
-
-
-%if 0%{?with_python3}
%package -n python%{python3_pkgversion}-pyaff
Summary: Python3 binding for the AFFLIB
Group: Development/Libraries
-%{?python_provide:%python_provide python%{python3_pkgversion}-pyaff}
-
%description -n python%{python3_pkgversion}-pyaff
Python3 bindings for AFFLIB.
These bindings currently support a read-only file-like interface to AFFLIB and
basic metadata accessor functions. The binding is not currently complete.
-# end with_python3
-%endif
@@ -126,12 +87,19 @@ basic metadata accessor functions. The binding is not currently complete.
find lzma443 -type f -exec chmod 0644 {} ';'
chmod 0644 lib/base64.{h,cpp}
+# Change the python module name
+#sed -i -e 's/PyAFF/pyaff/' pyaff/setup.py
+
./bootstrap.sh
+%generate_buildrequires
+cd pyaff
+%pyproject_buildrequires
+
%build
%configure --enable-shared \
--disable-static \
- --enable-python=no \
+ --enable-python=yes \
--enable-s3=yes
# Remove rpath from libtool
@@ -145,15 +113,9 @@ sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
rm $(grep -rl '/\* Generated by Cython')
%make_build
-cd pyaff
-%global py_setup_args build_ext --include-dirs %{_builddir}/AFFLIBv3-%{commit}/include --library-dirs %{_builddir}/AFFLIBv3-%{commit}/lib/.libs
-%if 0%{?with_python2}
-%py2_build
-%endif
-%if 0%{?with_python3}
-%py3_build
-%endif
+cd pyaff
+%pyproject_wheel
%install
@@ -161,16 +123,12 @@ cd pyaff
find %{buildroot} -name '*.la' -exec rm -f {} ';'
cd pyaff
-%if 0%{?with_python2}
-%py2_install
-%endif
-
-%if 0%{?with_python3}
-%py3_install
-%endif
+%pyproject_install
+%pyproject_save_files -L 'pyaff*'
-%ldconfig_scriptlets
+%check
+%pyproject_check_import
%files
@@ -189,23 +147,9 @@ cd pyaff
%{_libdir}/*.so
%{_libdir}/pkgconfig/afflib.pc
-%if 0%{?with_python2}
-%files -n python2-pyaff
-%license COPYING
+%files -n python%{python3_pkgversion}-pyaff -f %{pyproject_files}
%doc pyaff/README
-%{python2_sitearch}/PyAFF*
-%{python2_sitearch}/pyaff*
-%endif
-
-
-%if 0%{?with_python3}
-%files -n python%{python3_pkgversion}-pyaff
-%license COPYING
-%doc pyaff/README
-%{python3_sitearch}/PyAFF*
-%{python3_sitearch}/pyaff*
-%endif
-
+%exclude %{python3_sitearch}/PyAFF*egg-info
%changelog
reply other threads:[~2026-11-06 9:06 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179395600863.1.9437872388934301158.rpms-afflib-cc670b21e3dd@fedoraproject.org \
--to=kwizart@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox