|
|
bbf52c |
# A header-only library has no debuginfo
|
|
|
bbf52c |
%global debug_package %{nil}
|
|
|
bbf52c |
|
|
|
bbf52c |
Name: py3c
|
|
|
bbf52c |
Version: 1.2
|
|
|
bbf52c |
Release: 4%{?dist}
|
|
|
bbf52c |
Summary: Guide and compatibility macros for porting extensions to Python 3
|
|
|
bbf52c |
|
|
|
bbf52c |
# Licences differ for subpackages
|
|
|
bbf52c |
License: MIT and CC-BY-SA
|
|
|
bbf52c |
|
|
|
bbf52c |
URL: http://py3c.readthedocs.io/
|
|
|
bbf52c |
|
|
|
bbf52c |
Source0: https://github.com/encukou/%{name}/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
|
|
|
bbf52c |
|
|
|
bbf52c |
BuildRequires: gcc
|
|
|
bbf52c |
BuildRequires: python3-devel
|
|
|
bbf52c |
BuildRequires: python3-setuptools
|
|
|
bbf52c |
BuildRequires: python3-sphinx
|
|
|
bbf52c |
BuildRequires: python3-sphinx_rtd_theme
|
|
|
bbf52c |
|
|
|
bbf52c |
%description
|
|
|
bbf52c |
py3c helps you port C extensions to Python 3.
|
|
|
bbf52c |
|
|
|
bbf52c |
It provides a detailed guide, and a set of macros to make porting easy
|
|
|
bbf52c |
and reduce boilerplate.
|
|
|
bbf52c |
|
|
|
bbf52c |
%package devel
|
|
|
bbf52c |
License: MIT
|
|
|
bbf52c |
Summary: Header files for py3c
|
|
|
bbf52c |
|
|
|
bbf52c |
Requires: python3-devel
|
|
|
bbf52c |
|
|
|
bbf52c |
# A header-only library counts as static
|
|
|
bbf52c |
Provides: %{name}-static = %{version}-%{release}
|
|
|
bbf52c |
%{?_isa:Provides: %{name}-static%{?_isa} = %{version}-%{release}}
|
|
|
bbf52c |
|
|
|
bbf52c |
%description devel
|
|
|
bbf52c |
%{name}-devel is only required for building software that uses py3c.
|
|
|
bbf52c |
Because py3c is a header-only library, there is no matching run-time package.
|
|
|
bbf52c |
|
|
|
bbf52c |
%package doc
|
|
|
bbf52c |
BuildArch: noarch
|
|
|
bbf52c |
License: CC-BY-SA
|
|
|
bbf52c |
Summary: Guide for porting C extensions to Python 3
|
|
|
bbf52c |
|
|
|
bbf52c |
Requires: python3-sphinx_rtd_theme
|
|
|
bbf52c |
|
|
|
bbf52c |
%description doc
|
|
|
bbf52c |
Guide for porting CPython extensions from Python 2 to Python 3, using the
|
|
|
bbf52c |
py3c macros.
|
|
|
bbf52c |
|
|
|
bbf52c |
%prep
|
|
|
bbf52c |
%setup -q
|
|
|
bbf52c |
|
|
|
bbf52c |
%build
|
|
|
bbf52c |
make %{?_smp_mflags} py3c.pc includedir=%{_includedir}
|
|
|
bbf52c |
|
|
|
bbf52c |
make %{?_smp_mflags} doc SPHINXBUILD=sphinx-build-3
|
|
|
bbf52c |
|
|
|
bbf52c |
# unbundle fonts provided by the theme package
|
|
|
bbf52c |
bundledfonts=doc/build/html/_static/fonts
|
|
|
bbf52c |
themefonts=%{python3_sitelib}/sphinx_rtd_theme/static/fonts
|
|
|
bbf52c |
diff -r $bundledfonts $themefonts
|
|
|
bbf52c |
rm -rv $bundledfonts
|
|
|
bbf52c |
ln -s $themefonts $bundledfonts
|
|
|
bbf52c |
|
|
|
bbf52c |
%check
|
|
|
bbf52c |
export CFLAGS="%{optflags}"
|
|
|
bbf52c |
make %{?_smp_mflags} test-python3
|
|
|
bbf52c |
|
|
|
bbf52c |
%install
|
|
|
bbf52c |
make install prefix=%{buildroot}%{_prefix} includedir=%{buildroot}%{_includedir}
|
|
|
bbf52c |
mkdir -p %{buildroot}%{_pkgdocdir}
|
|
|
bbf52c |
cp -rv doc/build/html/* %{buildroot}%{_pkgdocdir}
|
|
|
bbf52c |
|
|
|
bbf52c |
# Strip buildroot name from the pkgconfig file
|
|
|
bbf52c |
sed --in-place -e's!%{buildroot}!!' %{buildroot}%{_datadir}/pkgconfig/py3c.pc
|
|
|
bbf52c |
|
|
|
bbf52c |
%files devel
|
|
|
bbf52c |
%license LICENSE.MIT
|
|
|
bbf52c |
%doc README.rst
|
|
|
bbf52c |
%{_includedir}/py3c.h
|
|
|
bbf52c |
%{_includedir}/py3c/
|
|
|
bbf52c |
%{_datadir}/pkgconfig/py3c.pc
|
|
|
bbf52c |
|
|
|
bbf52c |
%files doc
|
|
|
bbf52c |
%license doc/LICENSE.CC-BY-SA-3.0
|
|
|
bbf52c |
%doc %{_pkgdocdir}/
|
|
|
bbf52c |
|
|
|
bbf52c |
%changelog
|
|
|
bbf52c |
* Fri Oct 30 2020 Tomas Orsava <torsava@redhat.com> - 1.2-4
|
|
|
bbf52c |
- Rebuild with gating
|
|
|
bbf52c |
- Resolves: rhbz#1841060
|
|
|
bbf52c |
|
|
|
bbf52c |
* Mon Sep 07 2020 Tomas Orsava <torsava@redhat.com> - 1.2-3
|
|
|
bbf52c |
- Including in RHEL8
|
|
|
bbf52c |
- Resolves: rhbz#1841060
|
|
|
bbf52c |
|
|
|
bbf52c |
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.2-2
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Thu Jan 30 2020 Petr Viktorin <pviktori@redhat.com> - 1.2-1
|
|
|
bbf52c |
- Update to 1.2 to fix tests under Python 3.9
|
|
|
bbf52c |
- BuildRequire python3-setuptools explicitly
|
|
|
bbf52c |
|
|
|
bbf52c |
* Thu Jan 30 2020 Petr Viktorin <pviktori@redhat.com> - 1.1-3
|
|
|
bbf52c |
- Drop tests and Suggests for Python 2; require python3-devel
|
|
|
bbf52c |
|
|
|
bbf52c |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1-2
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Fri Oct 04 2019 Petr Viktorin <pviktori@redhat.com> - 1.1-1
|
|
|
bbf52c |
- Update to 1.1 to fix Python 3.8 compatibility in tests
|
|
|
bbf52c |
https://bugzilla.redhat.com/show_bug.cgi?id=1758446
|
|
|
bbf52c |
|
|
|
bbf52c |
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-6
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-5
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0-4
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Tue Jun 19 2018 Miro HronĨok <mhroncok@redhat.com> - 1.0-3
|
|
|
bbf52c |
- Rebuilt for Python 3.7
|
|
|
bbf52c |
|
|
|
bbf52c |
* Mon Feb 19 2018 Petr Viktorin <pviktori@redhat.com> - 1.0-2
|
|
|
bbf52c |
- Add BuildRequires: gcc
|
|
|
bbf52c |
|
|
|
bbf52c |
* Sun Feb 11 2018 Petr Viktorin <pviktorin@redhat.com> - 1.0-1
|
|
|
bbf52c |
- Update to 1.0 (adds Py_UNREACHABLE, Py_RETURN_RICHCOMPARE, Py_UNUSED)
|
|
|
bbf52c |
- Strip buildroot name from the pkgconfig file
|
|
|
bbf52c |
|
|
|
bbf52c |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-5
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-4
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-3
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.8-2
|
|
|
bbf52c |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
bbf52c |
|
|
|
bbf52c |
|
|
|
bbf52c |
* Wed Feb 01 2017 Petr Viktorin <pviktorin@redhat.com> - 0.8-1
|
|
|
bbf52c |
- Update to 0.8:
|
|
|
bbf52c |
- Add backports for PyMem_Raw*
|
|
|
bbf52c |
|
|
|
bbf52c |
* Thu May 19 2016 Petr Viktorin <pviktorin@redhat.com> - 0.7-1
|
|
|
bbf52c |
- Update to 0.7:
|
|
|
bbf52c |
- Fix file shim tests on big endian architectures
|
|
|
bbf52c |
(bug in the test suite only, does not affect behavior)
|
|
|
bbf52c |
|
|
|
bbf52c |
* Thu May 19 2016 Petr Viktorin <pviktorin@redhat.com> - 0.6-2
|
|
|
bbf52c |
- Initial package
|