|
|
|
@ -2,8 +2,8 @@
|
|
|
|
|
%global debug_package %{nil}
|
|
|
|
|
|
|
|
|
|
Name: py3c
|
|
|
|
|
Version: 1.3
|
|
|
|
|
Release: 5%{?dist}
|
|
|
|
|
Version: 1.2
|
|
|
|
|
Release: 4%{?dist}
|
|
|
|
|
Summary: Guide and compatibility macros for porting extensions to Python 3
|
|
|
|
|
|
|
|
|
|
# Licences differ for subpackages
|
|
|
|
@ -13,12 +13,11 @@ URL: http://py3c.readthedocs.io/
|
|
|
|
|
|
|
|
|
|
Source0: https://github.com/encukou/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
|
|
|
|
|
|
|
BuildRequires: make
|
|
|
|
|
BuildRequires: gcc
|
|
|
|
|
BuildRequires: python3-devel
|
|
|
|
|
BuildRequires: python3-setuptools
|
|
|
|
|
BuildRequires: python3-sphinx
|
|
|
|
|
BuildRequires: python3-sphinx_rtd_theme >= 0.4.3
|
|
|
|
|
BuildRequires: python3-sphinx_rtd_theme
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
py3c helps you port C extensions to Python 3.
|
|
|
|
@ -45,6 +44,8 @@ BuildArch: noarch
|
|
|
|
|
License: CC-BY-SA
|
|
|
|
|
Summary: Guide for porting C extensions to Python 3
|
|
|
|
|
|
|
|
|
|
Requires: python3-sphinx_rtd_theme
|
|
|
|
|
|
|
|
|
|
%description doc
|
|
|
|
|
Guide for porting CPython extensions from Python 2 to Python 3, using the
|
|
|
|
|
py3c macros.
|
|
|
|
@ -57,6 +58,13 @@ make %{?_smp_mflags} py3c.pc includedir=%{_includedir}
|
|
|
|
|
|
|
|
|
|
make %{?_smp_mflags} doc SPHINXBUILD=sphinx-build-3
|
|
|
|
|
|
|
|
|
|
# unbundle fonts provided by the theme package
|
|
|
|
|
bundledfonts=doc/build/html/_static/fonts
|
|
|
|
|
themefonts=%{python3_sitelib}/sphinx_rtd_theme/static/fonts
|
|
|
|
|
diff -r $bundledfonts $themefonts
|
|
|
|
|
rm -rv $bundledfonts
|
|
|
|
|
ln -s $themefonts $bundledfonts
|
|
|
|
|
|
|
|
|
|
%check
|
|
|
|
|
export CFLAGS="%{optflags}"
|
|
|
|
|
make %{?_smp_mflags} test-python3
|
|
|
|
@ -81,21 +89,13 @@ sed --in-place -e's!%{buildroot}!!' %{buildroot}%{_datadir}/pkgconfig/py3c.pc
|
|
|
|
|
%doc %{_pkgdocdir}/
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Tue Aug 10 2021 Mohan Boddu <mboddu@redhat.com> - 1.3-5
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 1.3-4
|
|
|
|
|
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
|
|
|
|
|
|
|
|
|
|
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Thu Jan 07 2021 Petr Viktorin <pviktori@redhat.com> - 1.3-2
|
|
|
|
|
- No longer unbundle fonts
|
|
|
|
|
* Fri Oct 30 2020 Tomas Orsava <torsava@redhat.com> - 1.2-4
|
|
|
|
|
- Rebuild with gating
|
|
|
|
|
- Resolves: rhbz#1841060
|
|
|
|
|
|
|
|
|
|
* Sun Nov 29 2020 Petr Viktorin <pviktori@redhat.com> - 1.3-1
|
|
|
|
|
- Update to 1.3
|
|
|
|
|
* Mon Sep 07 2020 Tomas Orsava <torsava@redhat.com> - 1.2-3
|
|
|
|
|
- Including in RHEL8
|
|
|
|
|
- Resolves: rhbz#1841060
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|