From 11a96db84f28d82294c5e99451face094536ce96 Mon Sep 17 00:00:00 2001 From: Troy Dawson Date: Wed, 14 Oct 2020 20:12:58 -0700 Subject: [PATCH] RHEL 9.0.0 Alpha bootstrap The content of this branch was automatically imported from Fedora ELN with the following as its source: https://src.fedoraproject.org/rpms/python-scour#1791a8123d6e750cca82c114a04e27f99f1f4239 --- .gitignore | 4 ++ python-scour.spec | 120 ++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 3 files changed, 125 insertions(+) create mode 100644 python-scour.spec create mode 100644 sources diff --git a/.gitignore b/.gitignore index e69de29..ba33769 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,4 @@ +/scour-0.35.tar.gz +/scour-0.37.tar.gz +/scour-0.38.tar.gz +/scour-0.38.1.tar.gz diff --git a/python-scour.spec b/python-scour.spec new file mode 100644 index 0000000..bfd6caa --- /dev/null +++ b/python-scour.spec @@ -0,0 +1,120 @@ +%global modname scour +%global sum An SVG scrubber + +Name: python-scour +Version: 0.38.1 +%global gitversion 038.1 +Release: 1%{?dist} +Summary: %{sum} + +License: ASL 2.0 +URL: https://github.com/scour-project/scour +Source0: %{url}/archive/v%{gitversion}.tar.gz#/%{modname}-%{version}.tar.gz + +BuildRequires: python3-devel +BuildRequires: python3-setuptools +# Tests +BuildRequires: python3-six +BuildRequires: python3-flake8 +BuildRequires: python3-coverage + +BuildArch: noarch + +%description +%{sum}. + + +%package -n python3-%{modname} +Summary: %{sum} +%{?python_provide:%python_provide python3-%{modname}} + + +%description -n python3-%{modname} +%{sum}. + + +%prep +%autosetup -n %{modname}-%{gitversion} + +# Better safe than sorry +find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';' +find . -type f -name '*.py' -exec sed -i /env\ python/d {} ';' + +%build +%py3_build + +%install +%py3_install + + +%check +%{__python3} setup.py test + +%{!?_licensedir: %global license %doc} + +%files -n python3-%{modname} +%doc README.md +%license LICENSE +%{_bindir}/%{modname} +%{python3_sitelib}/%{modname}/ +%{python3_sitelib}/%{modname}-%{version}* + + +%changelog +* Thu Sep 03 2020 Gwyn Ciesla - 0.38.1 +- 0.38.1 + +* Tue Aug 18 2020 Gwyn Ciesla - 0.38-1 +- 0.38 + +* Wed Jul 29 2020 Fedora Release Engineering - 0.37-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Mon May 25 2020 Miro Hrončok - 0.37-7 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 0.37-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 03 2019 Miro Hrončok - 0.37-5 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Wed Aug 28 2019 Gwyn Ciesla - 0.37-4 +- Drop Python 2. + +* Mon Aug 19 2019 Miro Hrončok - 0.37-3 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.37-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Thu Jan 31 2019 Gwyn Ciesla - 0.37-1 +- 0.37 + +* Sat Jul 14 2018 Fedora Release Engineering - 0.35-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.35-8 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.35-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Tue Jan 30 2018 Iryna Shcherbina - 0.35-6 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 0.35-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 0.35-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 0.35-3 +- Rebuild for Python 3.6 + +* Fri Oct 28 2016 Jon Ciesla - 0.35-2 +- Fix Source0. + +* Fri Oct 28 2016 Jon Ciesla - 0.35-1 +- Initial package. diff --git a/sources b/sources new file mode 100644 index 0000000..228fc22 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (scour-0.38.1.tar.gz) = e21f675f511aa9c15212c998a8c44b8e8ac2e880f006d4eea2b35fca740291b7dfd75c6410000e98fe9a90d7c3209c7b012316c159d4cd9debe14fbf7f597d3c