python3-cangjie/python3-cangjie.spec

56 lines
1.0 KiB
RPMSpec
Raw Normal View History

%global module_name cangjie
2024-07-07 16:51:44 +02:00
%global forgeurl https://gitlab.freedesktop.org/cangjie/pycangjie
2024-09-09 17:17:02 +02:00
%global archiveext tar.bz2
Name: python3-%{module_name}
Summary: Python bindings to libcangjie
2024-09-09 17:17:02 +02:00
Version: 1.5.0
Release: %{autorelease}
%forgemeta
License: LGPL-3.0-only
URL: https://gitlab.freedesktop.org/cangjie/pycangjie
Source0: %{forgesource}
%forgemeta
BuildRequires: gcc
BuildRequires: meson
2023-11-13 11:05:08 +01:00
BuildRequires: python3dist(cython)
BuildRequires: python3-devel
2024-09-09 17:17:02 +02:00
BuildRequires: libcangjie-devel >= 1.4.0
%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
2024-07-08 16:55:32 +02:00
%license COPYING
%doc README.md docs/*.md
%{python3_sitearch}/%{module_name}
%changelog
%autochangelog