add: python-opencc (#10906) (#10940)

* add: python-opencc



* Update opencc.spec



---------



(cherry picked from commit 144b126b03)

Signed-off-by: Owen-sz <owen@fyralabs.com>
Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
Raboneko
2026-03-29 20:12:29 -07:00
committed by GitHub
parent 6b69b1df77
commit 20fa066623
3 changed files with 53 additions and 0 deletions
+5
View File
@@ -0,0 +1,5 @@
project pkg {
rpm {
spec = "opencc.spec"
}
}
+47
View File
@@ -0,0 +1,47 @@
%global pypi_name opencc
%global _desc Open Chinese Convert.
Name: python-%{pypi_name}
Version: 1.2.0
Release: 1%?dist
Summary: Open Chinese Convert
License: Apache-2.0
URL: https://github.com/BYVoid/OpenCC
Source0: %{pypi_source}
BuildRequires: python3-devel
BuildRequires: python3-wheel
BuildRequires: python3-setuptools
BuildRequires: python3-pip
BuildRequires: gcc-c++
BuildRequires: cmake
Packager: Owen Zimmerman <owen@fyralabs.com>
%description
%_desc
%package -n python3-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}
%description -n python3-%{pypi_name}
%_desc
%prep
%autosetup -n %{pypi_name}-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%pyproject_save_files %{pypi_name}
%files -n python3-%{pypi_name} -f %{pyproject_files}
%doc README.md AUTHORS
%license LICENSE
%changelog
* Sun Mar 29 2026 Owen Zimmerman <owen@fyralabs.com>
- Initial commit
+1
View File
@@ -0,0 +1 @@
rpm.version(pypi("opencc"));