Blame python-pydyf.spec

55a0212
55a0212
%global pypi_name pydyf
55a0212
55a0212
Name:           python-pydyf
3a77734
Version:        0.2.0
c30df5c
Release:        2%{?dist}
55a0212
Summary:        Low-level PDF creator 
55a0212
# The test suite is released under the AGPL but we are not shipping any test
55a0212
# code in the "binary" (noarch) RPM so we can just use the 3-clause BSD.
55a0212
License:        BSD
55a0212
URL:            https://www.courtbouillon.org/pydyf
55a0212
Source0:        %{pypi_source}
55a0212
# remove some dependency/pytest options which are mostly useful for developers
55a0212
# (e.g. style checks) but may cause unnecessary issues for distro-level testing
55a0212
Patch0:         %{name}-no-developer-testing-options.patch
55a0212
55a0212
BuildArch:      noarch
55a0212
55a0212
BuildRequires:  python3-devel
55a0212
BuildRequires:  pyproject-rpm-macros
55a0212
# used as "build-backend" in pyproject.toml but not detected by Fedora's
55a0212
# macros to generate build requirements
55a0212
BuildRequires:  python3-flit
55a0212
# test suite calls the "gs" binary to verify outputs, not detectable by
55a0212
# Fedora's macros
55a0212
BuildRequires:  ghostscript
55a0212
55a0212
55a0212
%description
55a0212
pydyf is a low-level PDF generator written in Python and based on PDF
55a0212
specification 1.7.
55a0212
55a0212
55a0212
%package -n python3-%{pypi_name}
55a0212
Summary:        %{summary}
55a0212
55a0212
%description -n python3-%{pypi_name}
55a0212
pydyf is a low-level PDF generator written in Python and based on PDF
55a0212
specification 1.7.
55a0212
55a0212
55a0212
%prep
55a0212
%autosetup -p1 -n %{pypi_name}-%{version}
55a0212
55a0212
%generate_buildrequires
55a0212
%pyproject_buildrequires -r -x test
55a0212
55a0212
55a0212
%build
55a0212
%pyproject_wheel
55a0212
55a0212
55a0212
%install
55a0212
%pyproject_install
55a0212
55a0212
55a0212
%check
55a0212
%pytest
55a0212
55a0212
%files -n  python3-%{pypi_name}
55a0212
%license LICENSE
55a0212
%doc README.rst
55a0212
%{python3_sitelib}/%{pypi_name}/
55a0212
%{python3_sitelib}/%{pypi_name}-%{version}.dist-info/
55a0212
55a0212
55a0212
%changelog
c30df5c
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.0-2
c30df5c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
c30df5c
3a77734
* Thu Jul 07 2022 Felix Schwarz <fschwarz@fedoraproject.org> - 0.2.0-1
3a77734
- update to 0.2.0
3a77734
8244195
* Mon Jun 13 2022 Python Maint <python-maint@redhat.com> - 0.0.3-3
8244195
- Rebuilt for Python 3.11
8244195
7755bfd
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.3-2
7755bfd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
7755bfd
bdb4f44
* Sun Aug 01 2021 Felix Schwarz <fschwarz@fedoraproject.org> - 0.0.3-1
bdb4f44
- update to 0.0.3
bdb4f44
a1f334f
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.0.2-4
a1f334f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
a1f334f
ba3a741
* Fri Jun 04 2021 Python Maint <python-maint@redhat.com> - 0.0.2-3
ba3a741
- Rebuilt for Python 3.10
ba3a741
55a0212
* Sun Apr 18 2021 Felix Schwarz <fschwarz@fedoraproject.org> 0.0.2-2
55a0212
- updated according to review comments
55a0212
55a0212
* Sun Apr 18 2021 Felix Schwarz <fschwarz@fedoraproject.org> 0.0.2-1
55a0212
- initial package
55a0212