## START: Set by rpmautospec ## (rpmautospec version 0.7.3) ## 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 Name: python-mutf8 Version: 1.0.6 Release: %autorelease Summary: Fast MUTF-8 encoder & decoder License: MIT URL: http://github.com/TkTech/mutf8 # Get sources from GitHub for tests Source: %{url}/archive/v%{version}/mutf8-%{version}.tar.gz BuildRequires: python3-devel BuildRequires: gcc %global _description %{expand: This package contains simple pure-python as well as C encoders and decoders for the MUTF-8 character encoding. In most cases, you can also parse the even-rarer CESU-8. These days, you'll most likely encounter MUTF-8 when working on files or protocols related to the JVM. Strings in a Java .class file are encoded using MUTF-8, strings passed by the JNI, as well as strings exported by the object serializer. This library was extracted from Lawu, a Python library for working with JVM class files.} %description %_description %package -n python3-mutf8 Summary: %{summary} %description -n python3-mutf8 %_description # For official Fedora packages, review which extras should be actually packaged # See: https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#Extras #pyproject_extras_subpkg -n python3-mutf8 test %prep %autosetup -p1 -n mutf8-%{version} %generate_buildrequires %pyproject_buildrequires -x test %build %pyproject_wheel %install %pyproject_install %pyproject_save_files -l mutf8 %check %pyproject_check_import %pytest %files -n python3-mutf8 -f %{pyproject_files} %changelog ## START: Generated by rpmautospec * Tue Apr 22 2025 Benson Muite - 1.0.6-1 - Initial import bz#2359409 ## END: Generated by rpmautospec