2013-01-13 17:04:46 +08:00
|
|
|
%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
|
2013-01-13 17:04:46 +08:00
|
|
|
|
|
|
|
Name: python3-%{module_name}
|
|
|
|
Summary: Python bindings to libcangjie
|
2024-09-09 17:17:02 +02:00
|
|
|
Version: 1.5.0
|
2024-07-10 14:54:06 +02:00
|
|
|
Release: %{autorelease}
|
2023-07-20 01:27:40 +02:00
|
|
|
%forgemeta
|
|
|
|
License: LGPL-3.0-only
|
2024-07-07 15:39:44 +02:00
|
|
|
URL: https://gitlab.freedesktop.org/cangjie/pycangjie
|
2023-07-20 01:27:40 +02:00
|
|
|
Source0: %{forgesource}
|
2013-01-13 17:04:46 +08:00
|
|
|
|
2024-07-07 17:34:43 +02:00
|
|
|
%forgemeta
|
|
|
|
|
2024-07-07 16:57:33 +02:00
|
|
|
BuildRequires: gcc
|
2024-07-07 15:39:44 +02:00
|
|
|
BuildRequires: meson
|
2023-11-13 11:05:08 +01:00
|
|
|
BuildRequires: python3dist(cython)
|
2013-01-13 17:04:46 +08:00
|
|
|
BuildRequires: python3-devel
|
2024-09-09 17:17:02 +02:00
|
|
|
BuildRequires: libcangjie-devel >= 1.4.0
|
2013-01-13 17:04:46 +08:00
|
|
|
|
2023-07-20 01:27:40 +02:00
|
|
|
|
2013-01-13 17:04:46 +08:00
|
|
|
%description
|
|
|
|
Python bindings to libcangjie, the library implementing Cangjie and Quick
|
|
|
|
input methods.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
2024-07-07 15:39:44 +02:00
|
|
|
%autosetup -n pycangjie-%{version}
|
2015-06-19 12:04:01 +02:00
|
|
|
|
2013-01-13 17:04:46 +08:00
|
|
|
|
|
|
|
%build
|
2024-07-26 16:53:45 +02:00
|
|
|
%meson
|
2024-07-07 15:39:44 +02:00
|
|
|
%meson_build
|
2013-01-13 17:04:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2024-07-07 15:39:44 +02:00
|
|
|
%meson_install
|
2013-01-13 17:04:46 +08:00
|
|
|
|
|
|
|
find %{buildroot} -name '*.la' -exec rm -f '{}' \;
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
2024-07-07 17:12:21 +02:00
|
|
|
export CANGJIE_DB=/usr/share/libcangjie/cangjie.db
|
2024-07-07 15:39:44 +02:00
|
|
|
%meson_test
|
2013-01-13 17:04:46 +08:00
|
|
|
|
|
|
|
|
|
|
|
%files
|
2024-07-08 16:55:32 +02:00
|
|
|
%license COPYING
|
|
|
|
%doc README.md docs/*.md
|
2013-01-13 17:04:46 +08:00
|
|
|
%{python3_sitearch}/%{module_name}
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2023-07-20 00:10:15 +02:00
|
|
|
%autochangelog
|