2013-01-13 09:04:46 +00:00
|
|
|
%global module_name cangjie
|
2024-07-07 14:51:44 +00:00
|
|
|
%global forgeurl https://gitlab.freedesktop.org/cangjie/pycangjie
|
2013-01-13 09:04:46 +00:00
|
|
|
|
|
|
|
Name: python3-%{module_name}
|
|
|
|
Summary: Python bindings to libcangjie
|
2024-07-07 13:39:44 +00:00
|
|
|
Version: 1.4
|
2023-07-19 23:27:40 +00:00
|
|
|
Release: %{autorelease}
|
|
|
|
%forgemeta
|
|
|
|
License: LGPL-3.0-only
|
2024-07-07 13:39:44 +00:00
|
|
|
URL: https://gitlab.freedesktop.org/cangjie/pycangjie
|
2023-07-19 23:27:40 +00:00
|
|
|
Source0: %{forgesource}
|
2013-01-13 09:04:46 +00:00
|
|
|
|
2024-07-07 13:39:44 +00:00
|
|
|
BuildRequires: meson
|
2023-11-13 10:05:08 +00:00
|
|
|
BuildRequires: python3dist(cython)
|
2013-01-13 09:04:46 +00:00
|
|
|
BuildRequires: python3-devel
|
2024-07-07 13:39:44 +00:00
|
|
|
BuildRequires: libcangjie-devel >= 1.3.1
|
2013-01-13 09:04:46 +00:00
|
|
|
|
2023-07-19 23:27:40 +00:00
|
|
|
|
2013-01-13 09:04:46 +00:00
|
|
|
%description
|
|
|
|
Python bindings to libcangjie, the library implementing Cangjie and Quick
|
|
|
|
input methods.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-07-07 13:39:44 +00:00
|
|
|
%autosetup -n pycangjie-%{version}
|
2015-06-19 10:04:01 +00:00
|
|
|
|
2013-01-13 09:04:46 +00:00
|
|
|
|
|
|
|
%build
|
2024-07-07 13:39:44 +00:00
|
|
|
%meson -Db_coverage=true
|
|
|
|
%meson_build
|
2013-01-13 09:04:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2024-07-07 13:39:44 +00:00
|
|
|
%meson_install
|
2013-01-13 09:04:46 +00:00
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2024-07-07 13:39:44 +00:00
|
|
|
%meson_test
|
2013-01-13 09:04:46 +00:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2023-07-19 23:27:40 +00:00
|
|
|
%doc COPYING README.md docs/*.md
|
2013-01-13 09:04:46 +00:00
|
|
|
%{python3_sitearch}/%{module_name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-19 22:10:15 +00:00
|
|
|
%autochangelog
|