## 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 Name: python-%{pypi_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 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-%{pypi_name} Summary: %{summary} Requires: file-devel %description -n python3-%{pypi_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} %check %pyproject_check_import %files -n python3-%{pypi_name} -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Sun Sep 14 2025 Robert-André Mauchin - 33.0.0-1 - Uncommitted changes ## END: Generated by rpmautospec