mirror of
https://github.com/terrapkg/packages.git
synced 2026-05-31 09:01:55 +00:00
(cherry picked from commit aefa4c0cad)
Signed-off-by: Owen-sz <owen@fyralabs.com>
Co-authored-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com>
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
project pkg {
|
||||
arches = ["x86_64"]
|
||||
rpm {
|
||||
spec = "uroman.spec"
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1 @@
|
||||
rpm.version(pypi("uroman"));
|
||||
@@ -0,0 +1,52 @@
|
||||
%global pypi_name uroman
|
||||
%global _desc Universal Romanizer that can convert any unicode script to roman (latin) script.
|
||||
|
||||
Name: python-%{pypi_name}
|
||||
Version: 1.3.1.1
|
||||
Release: 1%{?dist}
|
||||
Summary: Universal Romanizer that can convert any unicode script to roman (latin) script
|
||||
License: GPL-3.0-or-later
|
||||
URL: https://github.com/isi-nlp/uroman
|
||||
Source0: %{pypi_source}
|
||||
BuildArch: noarch
|
||||
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-wheel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-pip
|
||||
BuildRequires: python3-hatchling
|
||||
|
||||
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}
|
||||
rm -r %{buildroot}%{python3_sitelib}/LICENSE.txt
|
||||
rm -r %{buildroot}%{python3_sitelib}/README.md
|
||||
rm -r %{buildroot}%{python3_sitelib}/pyproject.toml
|
||||
rm -r %{buildroot}%{python3_sitelib}/requirements.txt
|
||||
|
||||
%files -n python3-%{pypi_name} -f %{pyproject_files}
|
||||
%doc README.md
|
||||
%license LICENSE.txt
|
||||
%{_bindir}/uroman
|
||||
|
||||
%changelog
|
||||
* Sun May 24 2026 Owen Zimmerman <owen@fyralabs.com>
|
||||
- Initial commit
|
||||
Reference in New Issue
Block a user