Merged update from upstream sources
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/py3c.git#e71800a2ee839f662d137d35555363887e113d1a
This commit is contained in:
parent
0badc39ba2
commit
082b7c203a
16
py3c.spec
16
py3c.spec
@ -3,7 +3,7 @@
|
||||
|
||||
Name: py3c
|
||||
Version: 1.3
|
||||
Release: 1%{?dist}
|
||||
Release: 2%{?dist}
|
||||
Summary: Guide and compatibility macros for porting extensions to Python 3
|
||||
|
||||
# Licences differ for subpackages
|
||||
@ -17,7 +17,7 @@ BuildRequires: gcc
|
||||
BuildRequires: python3-devel
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: python3-sphinx
|
||||
BuildRequires: python3-sphinx_rtd_theme
|
||||
BuildRequires: python3-sphinx_rtd_theme >= 0.4.3
|
||||
|
||||
%description
|
||||
py3c helps you port C extensions to Python 3.
|
||||
@ -44,8 +44,6 @@ 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.
|
||||
@ -58,13 +56,6 @@ 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
|
||||
@ -89,6 +80,9 @@ sed --in-place -e's!%{buildroot}!!' %{buildroot}%{_datadir}/pkgconfig/py3c.pc
|
||||
%doc %{_pkgdocdir}/
|
||||
|
||||
%changelog
|
||||
* Thu Jan 07 2021 Petr Viktorin <pviktori@redhat.com> - 1.3-2
|
||||
- No longer unbundle fonts
|
||||
|
||||
* Sun Nov 29 2020 Petr Viktorin <pviktori@redhat.com> - 1.3-1
|
||||
- Update to 1.3
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user