Blame python-ghp-import.spec

da3f160
Name:           python-ghp-import
cc87abc
Version:        2.1.0
cc87abc
Release:        1%{?dist}
da3f160
Summary:        GitHub Pages Import
da3f160
BuildArch:      noarch
da3f160
da3f160
License:        ASL 2.0
da3f160
URL:            https://github.com/c-w/ghp-import
da3f160
Source0:        %{pypi_source ghp-import}
da3f160
da3f160
BuildRequires:  python3-devel
da3f160
da3f160
da3f160
%description
da3f160
GitHub Pages Import.
da3f160
da3f160
da3f160
%package -n python3-ghp-import
da3f160
Summary:        %{summary}
da3f160
Obsoletes:      python3-ghp-import2 < 1.0.1-12
da3f160
Provides:       python3-ghp-import2 = %{version}-%{release}
da3f160
da3f160
%description -n python3-ghp-import
da3f160
GitHub Pages Import.
da3f160
da3f160
da3f160
%prep
da3f160
%autosetup -p1 -n ghp-import-%{version}
da3f160
da3f160
da3f160
%generate_buildrequires
da3f160
%pyproject_buildrequires -r
da3f160
da3f160
da3f160
%build
da3f160
%pyproject_wheel
da3f160
da3f160
da3f160
%install
da3f160
%pyproject_install
da3f160
%pyproject_save_files ghp_import
da3f160
da3f160
# Remove shebang on non-executable script
da3f160
sed -i '1{/^#!/d}' %{buildroot}%{python3_sitelib}/ghp_import.py
da3f160
da3f160
da3f160
%check
da3f160
%py3_check_import ghp_import
da3f160
da3f160
da3f160
%files -n python3-ghp-import -f %{pyproject_files}
da3f160
%doc README.md
da3f160
%license LICENSE
da3f160
%{_bindir}/ghp-import
da3f160
da3f160
da3f160
da3f160
%changelog
cc87abc
* Tue May 03 2022 Sandro Mani <manisandro@gmail.com> - 2.1.0-1
cc87abc
- Update to 2.1.0
cc87abc
b232d2d
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.2-2
b232d2d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
b232d2d
7a154e4
* Wed Jan 05 2022 Sandro Mani <manisandro@gmail.com> - 2.0.2-1
7a154e4
- Update to 2.0.2
7a154e4
da3f160
* Mon Sep 27 2021 Sandro Mani <manisandro@gmail.com> - 2.0.1-4
da3f160
- Fix ASL2.0 -> ASL 2.0
da3f160
- Strip shebang on non-executable script
da3f160
da3f160
* Fri Sep 03 2021 Sandro Mani <manisandro@gmail.com> - 2.0.1-3
da3f160
- Run %%py3_check_import ghp_import in %%check
da3f160
da3f160
* Thu Sep 02 2021 Sandro Mani <manisandro@gmail.com> - 2.0.1-2
da3f160
- Port to new Python guidelines
da3f160
- Obsolete/provide python3-ghp-import2
da3f160
da3f160
* Wed Sep 01 2021 Sandro Mani <manisandro@gmail.com> - 2.0.1-1
da3f160
- Initial package