python3-cangjie/python3-cangjie.spec
Mathieu Bridon 601c29abb6 Stop building with code coverage enabled
This is the root cause of
[issue 40](https://gitlab.freedesktop.org/cangjie/pycangjie/-/issues/40)
we encountered upstream.

Also, code coverage should not be ran while building Fedora packages
because they modify the sources:
https://docs.fedoraproject.org/en-US/packaging-guidelines/Python/#_linters
2024-07-26 16:53:45 +02:00

56 lines
1021 B
RPMSpec

%global module_name cangjie
%global forgeurl https://gitlab.freedesktop.org/cangjie/pycangjie
%global archiveext tar.xz
Name: python3-%{module_name}
Summary: Python bindings to libcangjie
Version: 1.4
Release: %{autorelease}
%forgemeta
License: LGPL-3.0-only
URL: https://gitlab.freedesktop.org/cangjie/pycangjie
Source0: %{forgesource}
%forgemeta
BuildRequires: gcc
BuildRequires: meson
BuildRequires: python3dist(cython)
BuildRequires: python3-devel
BuildRequires: libcangjie-devel >= 1.3.1
%description
Python bindings to libcangjie, the library implementing Cangjie and Quick
input methods.
%prep
%autosetup -n pycangjie-%{version}
%build
%meson
%meson_build
%install
%meson_install
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
%check
export CANGJIE_DB=/usr/share/libcangjie/cangjie.db
%meson_test
%files
%license COPYING
%doc README.md docs/*.md
%{python3_sitearch}/%{module_name}
%changelog
%autochangelog