From da3f1609d7d0d005e6be7a3ee06e89713002c7e9 Mon Sep 17 00:00:00 2001 From: Sandro Mani Date: Tue, 28 Sep 2021 16:45:17 +0200 Subject: [PATCH] Initial import --- .gitignore | 1 + python-ghp-import.spec | 71 ++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 73 insertions(+) create mode 100644 .gitignore create mode 100644 python-ghp-import.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..fe76c31 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +/ghp-import-2.0.1.tar.gz diff --git a/python-ghp-import.spec b/python-ghp-import.spec new file mode 100644 index 0000000..2702012 --- /dev/null +++ b/python-ghp-import.spec @@ -0,0 +1,71 @@ +Name: python-ghp-import +Version: 2.0.1 +Release: 4%{?dist} +Summary: GitHub Pages Import +BuildArch: noarch + +License: ASL 2.0 +URL: https://github.com/c-w/ghp-import +Source0: %{pypi_source ghp-import} + +BuildRequires: python3-devel + + +%description +GitHub Pages Import. + + +%package -n python3-ghp-import +Summary: %{summary} +Obsoletes: python3-ghp-import2 < 1.0.1-12 +Provides: python3-ghp-import2 = %{version}-%{release} + +%description -n python3-ghp-import +GitHub Pages Import. + + +%prep +%autosetup -p1 -n ghp-import-%{version} + + +%generate_buildrequires +%pyproject_buildrequires -r + + +%build +%pyproject_wheel + + +%install +%pyproject_install +%pyproject_save_files ghp_import + +# Remove shebang on non-executable script +sed -i '1{/^#!/d}' %{buildroot}%{python3_sitelib}/ghp_import.py + + +%check +%py3_check_import ghp_import + + +%files -n python3-ghp-import -f %{pyproject_files} +%doc README.md +%license LICENSE +%{_bindir}/ghp-import + + + +%changelog +* Mon Sep 27 2021 Sandro Mani - 2.0.1-4 +- Fix ASL2.0 -> ASL 2.0 +- Strip shebang on non-executable script + +* Fri Sep 03 2021 Sandro Mani - 2.0.1-3 +- Run %%py3_check_import ghp_import in %%check + +* Thu Sep 02 2021 Sandro Mani - 2.0.1-2 +- Port to new Python guidelines +- Obsolete/provide python3-ghp-import2 + +* Wed Sep 01 2021 Sandro Mani - 2.0.1-1 +- Initial package diff --git a/sources b/sources new file mode 100644 index 0000000..06e3622 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (ghp-import-2.0.1.tar.gz) = 8e53b1a516a8d9780159d57b3973ebe02bbc4f60788470ec823c99608c2b026f5c43a12796506adf039420f06964a11d9e7e318cf9ea10df167faddd8b6f9707