ee04a87
# Created by pyp2rpm-3.3.6
ee04a87
%global pypi_name op1svg
ee04a87
ee04a87
%global forgeurl https://github.com/op1hacks/op1svg
ee04a87
%global commit 50a3b01ebb74fd07b33d91c08b1e59e11494801d
ee04a87
%forgemeta
ee04a87
ee04a87
%global common_description %{expand:
ee04a87
op1svg normalizes SVG files so that the OP-1 understands them:
ee04a87
- Remove unsupported tags and attributes
ee04a87
- Remove comments
ee04a87
- Convert styles to attributes, and drop unsupported styles
ee04a87
- Fix decimals; a maximum of 4 decimals is supported by the OP-1
ee04a87
- Reformat the path data in paths}
ee04a87
ee04a87
Name:           python-%{pypi_name}
ee04a87
Version:        0.1.0
e15ed19
Release:        10%{?dist}
ee04a87
Summary:        Normalize SVG files so that the OP-1 understands them
ee04a87
ee04a87
License:        MIT
ee04a87
URL:            %{forgeurl}
ee04a87
Source0:        %{forgesource}
3855b63
Source1:        op1svg.1
ee04a87
BuildArch:      noarch
ee04a87
ee04a87
BuildRequires:  sed
ee04a87
BuildRequires:  python3-devel
ee04a87
BuildRequires:  python3dist(setuptools)
ee04a87
ee04a87
%description
ee04a87
%{common_description}
ee04a87
ee04a87
%package -n     %{pypi_name}
ee04a87
Summary:        %{summary}
ee04a87
ee04a87
%description -n %{pypi_name}
ee04a87
%{common_description}
ee04a87
ee04a87
%prep
ee04a87
%forgesetup
ee04a87
# Remove bundled egg-info
ee04a87
rm -rf %{pypi_name}.egg-info
ee04a87
# Remove unneeded shebang
ee04a87
sed -e "\|#!/usr/bin/env python3|d" -i %{pypi_name}/*.py
ee04a87
ee04a87
%build
ee04a87
%py3_build
ee04a87
ee04a87
%install
ee04a87
%py3_install
3855b63
mkdir -p %{buildroot}%{_mandir}/man1
3855b63
cp -P %{SOURCE1} %{buildroot}%{_mandir}/man1
ee04a87
ee04a87
%files -n %{pypi_name}
ee04a87
%license LICENSE
ee04a87
%doc README.md template
ee04a87
%{_bindir}/op1svg
ee04a87
%{python3_sitelib}/%{pypi_name}
ee04a87
%{python3_sitelib}/%{pypi_name}-%{version}-py%{python3_version}.egg-info
3855b63
%{_mandir}/man1/op1svg.1*
ee04a87
ee04a87
%changelog
e15ed19
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-10
e15ed19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
e15ed19
02ff2ab
* Tue Jun 13 2023 Python Maint <python-maint@redhat.com> - 0.1.0-9
02ff2ab
- Rebuilt for Python 3.12
02ff2ab
8e719b5
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-8
8e719b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
8e719b5
f754ae1
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-7
f754ae1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
f754ae1
d591ef6
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.1.0-6
d591ef6
- Rebuilt for Python 3.11
d591ef6
74e7ced
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-5
74e7ced
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
74e7ced
f0466b5
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.0-4
f0466b5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
f0466b5
810d7f9
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.1.0-3
810d7f9
- Rebuilt for Python 3.10
810d7f9
3855b63
* Fri Apr 30 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.1.0-2.20210419git50a3b01
3855b63
- Add man page contributed by Ben Beasley
3855b63
ee04a87
* Sat Apr 24 2021 Davide Cavalca <dcavalca@fedoraproject.org> - 0.1.0-1.20210419git50a3b01
ee04a87
- Initial package.