%global srcname rebulk Name: python-%{srcname} Version: 3.3.0 Release: 11%{?dist} Summary: ReBulk is a python library that performs advanced searches in strings # Everything licensed as MIT, except: # rebulk/toposort.py: Apache (v2.0) # rebulk/test/test_toposort.py: Apache (v2.0) # Automatically converted from old format: MIT and ASL 2.0 - review is highly recommended. License: LicenseRef-Callaway-MIT AND Apache-2.0 URL: https://github.com/Toilal/rebulk Source: %{url}/archive/v%{version}/%{srcname}-%{version}.tar.gz BuildArch: noarch BuildRequires: python3-devel BuildRequires: python3dist(pytest) %global _description %{expand: ReBulk is a python library that performs advanced searches in strings that would be hard to implement using re module or String methods only. It includes some features like Patterns, Match, Rule that allows developers to build a custom and complex string matcher using a readable and extendable API.} %description %_description %package -n python3-%{srcname} Summary: %summary %description -n python3-%{srcname} %_description %prep %autosetup -n %{srcname}-%{version} %generate_buildrequires %pyproject_buildrequires -t %build %pyproject_wheel %install %pyproject_install # Remove shebang from Python3 libraries for lib in `find %{buildroot}%{python3_sitelib} -name "*.py"`; do sed '1{\@^#!/usr/bin/env python@d}' $lib > $lib.new && touch -r $lib $lib.new && mv $lib.new $lib done %pyproject_save_files -l %{srcname} %check %pytest %files -n python3-%{srcname} -f %{pyproject_files} %doc README.md CHANGELOG.md %changelog * Fri Sep 19 2025 Python Maint - 3.3.0-11 - Rebuilt for Python 3.14.0rc3 bytecode * Fri Aug 15 2025 Python Maint - 3.3.0-10 - Rebuilt for Python 3.14.0rc2 bytecode * Fri Jul 25 2025 Fedora Release Engineering - 3.3.0-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_43_Mass_Rebuild %autochangelog