diff --git a/anda/langs/python/superisoupdater/anda.hcl b/anda/langs/python/superisoupdater/anda.hcl new file mode 100644 index 0000000000..faf4d34d2f --- /dev/null +++ b/anda/langs/python/superisoupdater/anda.hcl @@ -0,0 +1,6 @@ +project pkg { + arches = ["x86_64"] + rpm { + spec = "superisoupdater.spec" + } +} diff --git a/anda/langs/python/superisoupdater/remove-version-reqs.patch b/anda/langs/python/superisoupdater/remove-version-reqs.patch new file mode 100644 index 0000000000..e367b49cb3 --- /dev/null +++ b/anda/langs/python/superisoupdater/remove-version-reqs.patch @@ -0,0 +1,33 @@ +diff --git a/requirements.txt b/requirements.txt +index f450174..94ac9b8 100644 +--- a/requirements.txt ++++ b/requirements.txt +@@ -1,4 +1,4 @@ +-beautifulsoup4==4.12.2 +-requests==2.31.0 +-tqdm==4.65.0 +-PGPy13==0.6.1rc1 +\ No newline at end of file ++beautifulsoup4 ++requests ++tqdm ++PGPy13 +diff --git a/setup.py b/setup.py +index aa41242..348b51c 100644 +--- a/setup.py ++++ b/setup.py +@@ -43,10 +43,10 @@ setup( + package_data={"": ["config.toml.default"]}, + python_requires=">=3.10, <4", + install_requires=[ +- "beautifulsoup4==4.12.2", +- "requests==2.31.0", +- "tqdm==4.65.0", +- "PGPy13==0.6.1rc1", ++ "beautifulsoup4", ++ "requests", ++ "tqdm", ++ "PGPy13", + ], # Optional + # extras_require={ + # "dev": [""], diff --git a/anda/langs/python/superisoupdater/superisoupdater.spec b/anda/langs/python/superisoupdater/superisoupdater.spec new file mode 100644 index 0000000000..a7b7751d77 --- /dev/null +++ b/anda/langs/python/superisoupdater/superisoupdater.spec @@ -0,0 +1,63 @@ +%global pypi_name sisou +%global _desc A powerful tool to conveniently update all of your ISOs! + +Name: python-%{pypi_name} +Version: 1.4.1 +Release: 1%?dist +Summary: %{_desc} +License: GPLv3 +URL: https://github.com/JoshuaVandaele/SuperISOUpdater +Source0: %url/archive/refs/tags/%{version}.tar.gz +Patch0: remove-version-reqs.patch +BuildArch: noarch + +BuildRequires: python3-devel +BuildRequires: python3-build +BuildRequires: python3-wheel +BuildRequires: python3-setuptools +BuildRequires: python3-pip + +Packager: Owen Zimmerman + +%description +%{_desc} + +%package -n python3-%{pypi_name} +Summary: %{summary} +Provides: sisou +Provides: SuperISOUpdater +Provides: superisoupdater +%{?python_provide:%python_provide python3-%{pypi_name}} + +%description -n python3-%{pypi_name} +%{_desc} + +%prep +%autosetup -p1 -n SuperISOUpdater-%{version} + +%build +%pyproject_wheel + +%install +%pyproject_install +%pyproject_save_files sisou + +%files -n python3-%{pypi_name} -f %{pyproject_files} +%doc README.md +%license LICENSE +%{_bindir}/sisou +%ghost %{python3_sitelib}/__pycache__/*.cpython-*.pyc +%ghost %{python3_sitelib}/%{name}/subcommands/__pycache__/*.cpython-*.pyc +%{python3_sitelib}/sisou-%{version}.dist-info/* +%{python3_sitelib}/config/*.py +%{python3_sitelib}/config/__pycache__/*.cpython-*.pyc +%{python3_sitelib}/config/__pycache__/*.cpython-*.*-*.pyc +%{python3_sitelib}/config/config.toml.default +%{python3_sitelib}/modules/*.py +%{python3_sitelib}/modules/__pycache__/*.pyc +%{python3_sitelib}/modules/updaters/*.py +%{python3_sitelib}/modules/updaters/__pycache__/*.pyc + +%changelog +* Wed Oct 08 2025 Owen Zimmerman +- Initial commit diff --git a/anda/langs/python/superisoupdater/update.rhai b/anda/langs/python/superisoupdater/update.rhai new file mode 100644 index 0000000000..ddf8b96010 --- /dev/null +++ b/anda/langs/python/superisoupdater/update.rhai @@ -0,0 +1 @@ +rpm.version(gh("JoshuaVandaele/SuperISOUpdater"));