|
|
|
@ -2,81 +2,124 @@
|
|
|
|
|
%global sum An SVG scrubber
|
|
|
|
|
|
|
|
|
|
Name: python-scour
|
|
|
|
|
Version: 0.38.1
|
|
|
|
|
%global gitversion 038.1
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 0.38.2
|
|
|
|
|
Release: 10%{?dist}
|
|
|
|
|
Summary: %{sum}
|
|
|
|
|
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
# All files are Apache-2.0 except scour/svg_regex.py
|
|
|
|
|
# which is BSD-3-Clause
|
|
|
|
|
License: Apache-2.0 AND BSD-3-Clause
|
|
|
|
|
URL: https://github.com/scour-project/scour
|
|
|
|
|
Source0: %{url}/archive/v%{gitversion}.tar.gz#/%{modname}-%{version}.tar.gz
|
|
|
|
|
Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
# Tests
|
|
|
|
|
%if !0%{?rhel}
|
|
|
|
|
%if !0%{?centos}
|
|
|
|
|
BuildRequires: python3-six
|
|
|
|
|
BuildRequires: python3-flake8
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
%global _description %{expand:
|
|
|
|
|
Scour is an SVG optimizer/cleaner written in Python that reduces the
|
|
|
|
|
size of scalable vector graphics by optimizing structure and removing
|
|
|
|
|
unnecessary data.
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
%{sum}.
|
|
|
|
|
It can be used to create streamlined vector graphics suitable for web
|
|
|
|
|
deployment, publishing/sharing or further processing.
|
|
|
|
|
|
|
|
|
|
The goal of Scour is to output a file that renders identically at a
|
|
|
|
|
fraction of the size by removing a lot of redundant information created
|
|
|
|
|
by most SVG editors. Optimization options are typically lossless but can
|
|
|
|
|
be tweaked for more aggressive cleaning.}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%description %_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package -n python3-%{modname}
|
|
|
|
|
Summary: %{sum}
|
|
|
|
|
%{?python_provide:%python_provide python3-%{modname}}
|
|
|
|
|
|
|
|
|
|
Requires: python3-packaging
|
|
|
|
|
|
|
|
|
|
%description -n python3-%{modname}
|
|
|
|
|
%{sum}.
|
|
|
|
|
%_description
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%autosetup -n %{modname}-%{gitversion}
|
|
|
|
|
%autosetup -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
# 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 {} ';'
|
|
|
|
|
|
|
|
|
|
%generate_buildrequires
|
|
|
|
|
%pyproject_buildrequires
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%py3_build
|
|
|
|
|
%pyproject_wheel
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
%py3_install
|
|
|
|
|
%pyproject_install
|
|
|
|
|
%pyproject_save_files %{modname}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
%if !0%{?rhel}
|
|
|
|
|
%if !0%{?centos}
|
|
|
|
|
%{__python3} setup.py test
|
|
|
|
|
%endif
|
|
|
|
|
%endif
|
|
|
|
|
%pyproject_check_import
|
|
|
|
|
%{py3_test_envvars} %{python3} setup.py test
|
|
|
|
|
|
|
|
|
|
%{!?_licensedir: %global license %doc}
|
|
|
|
|
|
|
|
|
|
%files -n python3-%{modname}
|
|
|
|
|
%files -n python3-%{modname} -f %{pyproject_files}
|
|
|
|
|
%{_bindir}/scour
|
|
|
|
|
%doc README.md
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%{_bindir}/%{modname}
|
|
|
|
|
%{python3_sitelib}/%{modname}/
|
|
|
|
|
%{python3_sitelib}/%{modname}-%{version}*
|
|
|
|
|
%doc HISTORY.md
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 0.38.1-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
* Wed Dec 25 2024 Arkady L. Shane <tigro@msvsphere-os.ru> - 0.38.2-10
|
|
|
|
|
- Rebuilt for MSVSphere 10
|
|
|
|
|
|
|
|
|
|
* Fri Jul 19 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.2-10
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_41_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jun 07 2024 Python Maint <python-maint@redhat.com> - 0.38.2-9
|
|
|
|
|
- Rebuilt for Python 3.13
|
|
|
|
|
|
|
|
|
|
* Fri Jan 26 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.2-8
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jan 22 2024 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.2-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_40_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Sep 09 2023 Benson Muite <benson_muite@emailplus.org> - 0.38.2-6
|
|
|
|
|
- Use new Python build macros
|
|
|
|
|
|
|
|
|
|
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.2-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.38.2-4
|
|
|
|
|
- Rebuilt for Python 3.12
|
|
|
|
|
|
|
|
|
|
* Sun Mar 05 2023 Gwyn Ciesla <gwync@protonmail.com> - 0.38.2-3
|
|
|
|
|
- migrated to SPDX license
|
|
|
|
|
|
|
|
|
|
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Tue Dec 13 2022 Gwyn Ciesla <gwync@protonmail.com> - 0.38.2-1
|
|
|
|
|
- 0.38.2
|
|
|
|
|
|
|
|
|
|
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.1-7
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.38.1-6
|
|
|
|
|
- Rebuilt for Python 3.11
|
|
|
|
|
|
|
|
|
|
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.1-5
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Apr 22 2021 Jan Horak <jhorak@redhat.com> - 0.38.1-4
|
|
|
|
|
- Don't run tests on the centos and rhel because of missing required packages
|
|
|
|
|
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.1-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.38.1-3
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.38.1-3
|
|
|
|
|
- Rebuilt for Python 3.10
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.38.1-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|