mirror of
https://github.com/openRuyi-Project/openRuyi.git
synced 2026-05-14 19:03:38 +00:00
44 lines
1.3 KiB
RPMSpec
44 lines
1.3 KiB
RPMSpec
# SPDX-FileCopyrightText: (C) 2026 Institute of Software, Chinese Academy of Sciences (ISCAS)
|
|
# SPDX-FileCopyrightText: (C) 2026 openRuyi Project Contributors
|
|
# SPDX-FileContributor: purofle <yuguo.or@isrc.iscas.ac.cn>
|
|
#
|
|
# SPDX-License-Identifier: MulanPSL-2.0
|
|
|
|
%global srcname opencc
|
|
%global packagename opencc-python-reimplemented
|
|
|
|
Name: python-opencc-python-reimplemented
|
|
Version: 0.1.7
|
|
Release: %autorelease
|
|
Summary: OpenCC made with Python
|
|
License: Apache-2.0
|
|
URL: https://github.com/yichen0831/opencc-python
|
|
#!RemoteAsset: sha256:4f777ea3461a25257a7b876112cfa90bb6acabc6dfb843bf4d11266e43579dee
|
|
Source0: https://files.pythonhosted.org/packages/source/o/%{packagename}/%{packagename}-%{version}.tar.gz
|
|
BuildArch: noarch
|
|
BuildSystem: pyproject
|
|
|
|
BuildOption(install): -l %{srcname}
|
|
|
|
BuildRequires: pyproject-rpm-macros
|
|
BuildRequires: pkgconfig(python3)
|
|
BuildRequires: python3dist(setuptools)
|
|
BuildRequires: python3dist(pip)
|
|
BuildRequires: python3dist(wheel)
|
|
|
|
Provides: python3-%{srcname}
|
|
%python_provide python3-%{srcname}
|
|
|
|
%description
|
|
Open Chinese convert (OpenCC) in pure Python
|
|
|
|
%generate_buildrequires
|
|
%pyproject_buildrequires
|
|
|
|
%files -f %{pyproject_files}
|
|
%doc README.md
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|
|
%{?autochangelog}
|