Blob Blame History Raw
# Created by pyp2rpm-3.3.6
%global pypi_name op1svg

%global forgeurl
%global commit 50a3b01ebb74fd07b33d91c08b1e59e11494801d

%global common_description %{expand:
op1svg normalizes SVG files so that the OP-1 understands them:
- Remove unsupported tags and attributes
- Remove comments
- Convert styles to attributes, and drop unsupported styles
- Fix decimals; a maximum of 4 decimals is supported by the OP-1
- Reformat the path data in paths}

Name:           python-%{pypi_name}
Version:        0.1.0
Release:        4%{?dist}
Summary:        Normalize SVG files so that the OP-1 understands them

License:        MIT
URL:            %{forgeurl}
Source0:        %{forgesource}
Source1:        op1svg.1
BuildArch:      noarch

BuildRequires:  sed
BuildRequires:  python3-devel
BuildRequires:  python3dist(setuptools)


%package -n     %{pypi_name}
Summary:        %{summary}

%description -n %{pypi_name}

# Remove bundled egg-info
rm -rf %{pypi_name}.egg-info
# Remove unneeded shebang
sed -e "\|#!/usr/bin/env python3|d" -i %{pypi_name}/*.py


mkdir -p %{buildroot}%{_mandir}/man1
cp -P %{SOURCE1} %{buildroot}%{_mandir}/man1

%files -n %{pypi_name}
%license LICENSE
%doc template

* Fri Jul 23 2021 Fedora Release Engineering <> - 0.1.0-4
- Rebuilt for

* Fri Jun 04 2021 Python Maint <> - 0.1.0-3
- Rebuilt for Python 3.10

* Fri Apr 30 2021 Davide Cavalca <> - 0.1.0-2.20210419git50a3b01
- Add man page contributed by Ben Beasley

* Sat Apr 24 2021 Davide Cavalca <> - 0.1.0-1.20210419git50a3b01
- Initial package.