## START: Set by rpmautospec ## (rpmautospec version 0.8.1) ## RPMAUTOSPEC: autorelease, autochangelog %define autorelease(e:s:pb:n) %{?-p:0.}%{lua: release_number = 1; base_release_number = tonumber(rpm.expand("%{?-b*}%{!?-b:1}")); print(release_number + base_release_number - 1); }%{?-e:.%{-e*}}%{?-s:.%{-s*}}%{!?-n:%{?dist}} ## END: Set by rpmautospec %global pypi_name typecode-libmagic-system-provided %global pypi_name_with_underscore %(echo "%{pypi_name}" | sed "s/-/_/g") %global wheel_name typecode-libmagic %global wheel_name_with_underscore %(echo "%{wheel_name}" | sed "s/-/_/g") Name: python-%{wheel_name} Version: 33.0.0 Release: %autorelease Summary: ScanCode Toolkit plugin to use pre-installed libmagic library and data file # Only the code in src/__init__.py is relevant as we do not bundle libmagic License: BSD-2-Clause URL: https://github.com/aboutcode-org/scancode-plugins Source: %{pypi_source %{pypi_name_with_underscore}} Patch: remove-unused-licenses.patch Patch: name-fix.patch BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(plugincode) %global common_description %{expand: The path to libmagic and its database is determined from well known distro locations.} %description %{common_description} %package -n python3-%{wheel_name} Summary: %{summary} Requires: file-devel %description -n python3-%{wheel_name} %{common_description} %prep %autosetup -p1 -n %{pypi_name_with_underscore}-%{version} %generate_buildrequires %pyproject_buildrequires %build %pyproject_wheel %install %pyproject_install %pyproject_save_files %{wheel_name_with_underscore} %check %pyproject_check_import %files -n python3-%{wheel_name} -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Sun Sep 14 2025 Robert-André Mauchin - 33.0.0-1 - Update to 33.0.0 * Fri Aug 15 2025 Python Maint - 21.5.31-10 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 21.5.31-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild * Wed Jun 11 2025 Python Maint - 21.5.31-8 - Rebuilt for Python 3.14 * Sat Jan 18 2025 Fedora Release Engineering - 21.5.31-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_42_Mass_Rebuild * Fri Jul 19 2024 Fedora Release Engineering - 21.5.31-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild * Fri Jun 07 2024 Python Maint - 21.5.31-5 - Rebuilt for Python 3.13 * Fri Jan 26 2024 Fedora Release Engineering - 21.5.31-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Mon Jan 22 2024 Fedora Release Engineering - 21.5.31-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild * Thu Nov 02 2023 Robert-André Mauchin - 21.5.31-2 - Fix patch * Thu Nov 02 2023 Robert-André Mauchin - 21.5.31-1 - Initial import ## END: Generated by rpmautospec