diff --git a/anda/langs/python/uroman/anda.hcl b/anda/langs/python/uroman/anda.hcl new file mode 100644 index 0000000000..3bda26f105 --- /dev/null +++ b/anda/langs/python/uroman/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "uroman.spec" + } +} diff --git a/anda/langs/python/uroman/update.rhai b/anda/langs/python/uroman/update.rhai new file mode 100644 index 0000000000..169a84812a --- /dev/null +++ b/anda/langs/python/uroman/update.rhai @@ -0,0 +1 @@ +rpm.version(pypi("uroman")); diff --git a/anda/langs/python/uroman/uroman.spec b/anda/langs/python/uroman/uroman.spec new file mode 100644 index 0000000000..9d44f9a4b0 --- /dev/null +++ b/anda/langs/python/uroman/uroman.spec @@ -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 + +%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 +- Initial commit