Initial import
This commit is contained in:
parent
060e3a0983
commit
da3f1609d7
3 changed files with 73 additions and 0 deletions
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
|||
/ghp-import-2.0.1.tar.gz
|
||||
71
python-ghp-import.spec
Normal file
71
python-ghp-import.spec
Normal file
|
|
@ -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 <manisandro@gmail.com> - 2.0.1-4
|
||||
- Fix ASL2.0 -> ASL 2.0
|
||||
- Strip shebang on non-executable script
|
||||
|
||||
* Fri Sep 03 2021 Sandro Mani <manisandro@gmail.com> - 2.0.1-3
|
||||
- Run %%py3_check_import ghp_import in %%check
|
||||
|
||||
* Thu Sep 02 2021 Sandro Mani <manisandro@gmail.com> - 2.0.1-2
|
||||
- Port to new Python guidelines
|
||||
- Obsolete/provide python3-ghp-import2
|
||||
|
||||
* Wed Sep 01 2021 Sandro Mani <manisandro@gmail.com> - 2.0.1-1
|
||||
- Initial package
|
||||
1
sources
Normal file
1
sources
Normal file
|
|
@ -0,0 +1 @@
|
|||
SHA512 (ghp-import-2.0.1.tar.gz) = 8e53b1a516a8d9780159d57b3973ebe02bbc4f60788470ec823c99608c2b026f5c43a12796506adf039420f06964a11d9e7e318cf9ea10df167faddd8b6f9707
|
||||
Loading…
Add table
Add a link
Reference in a new issue