From 3e9898697c21a4e6ac016d535f1e7fd7326c0493 Mon Sep 17 00:00:00 2001 From: Jan Kaluza Date: Jun 01 2020 06:33:45 +0000 Subject: Merge branch 'master' into epel8 --- diff --git a/.gitignore b/.gitignore index e69de29..f9f3cb5 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1,2 @@ +/atpublic-0.5.tar.gz +/atpublic-1.0.tar.gz diff --git a/python-atpublic.spec b/python-atpublic.spec new file mode 100644 index 0000000..6cf2384 --- /dev/null +++ b/python-atpublic.spec @@ -0,0 +1,134 @@ +%global srcname atpublic +%global pkgname atpublic +%global summary Decorator for populating a Python module's __all__ +%global _description \ +This is a very simple decorator and function which populates a \ +module's __all__ and optionally the module globals. \ +This provides both a pure-Python implementation and a C implementation. \ +It is proposed that the C implementation be added to built-ins for \ +Python 3.6. + + +Name: python-%{pkgname} +Version: 1.0 +Release: 3%{?dist} +Summary: %{summary} + +License: ASL 2.0 +URL: http://public.readthedocs.io +Source0: https://files.pythonhosted.org/packages/source/a/%{srcname}/%{srcname}-%{version}.tar.gz + +BuildRequires: gcc +BuildRequires: python-srpm-macros +BuildRequires: python%{python3_pkgversion}-devel >= 3.4 +BuildRequires: python%{python3_pkgversion}-setuptools +BuildRequires: python%{python3_pkgversion}-nose2 +BuildRequires: python%{python3_pkgversion}-flufl-testing +%if 0%{?with_python3_other} +BuildRequires: python%{python3_other_pkgversion}-devel >= 3.4 +BuildRequires: python%{python3_other_pkgversion}-setuptools +BuildRequires: python%{python3_other_pkgversion}-nose2 +BuildRequires: python%{python3_other_pkgversion}-flufl-testing +%endif + +%description %{_description} + + +%package -n python%{python3_pkgversion}-%{pkgname} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_pkgversion}-%{pkgname}} +Requires: python%{python3_pkgversion}-setuptools + +%description -n python%{python3_pkgversion}-%{pkgname} %{_description} + + +%if 0%{?with_python3_other} +%package -n python%{python3_other_pkgversion}-%{pkgname} +Summary: %{summary} +%{?python_provide:%python_provide python%{python3_other_pkgversion}-%{pkgname}} +Requires: python%{python3_other_pkgversion}-setuptools + +%description -n python%{python3_other_pkgversion}-%{pkgname} %{_description} +%endif + + +%prep +%autosetup -n %{srcname}-%{version} + + +%build +export ATPUBLIC_BUILD_EXTENSION=1 +%py3_build +%if 0%{?with_python3_other} +%py3_other_build +%endif + + +%install +export ATPUBLIC_BUILD_EXTENSION=1 +%py3_install +%if 0%{?with_python3_other} +%py3_other_install +%endif + + +%check +%{__python3} -m nose2 -v +%if 0%{?with_python3_other} +%{__python3_other} -m nose2 -v +%endif + + +%files -n python%{python3_pkgversion}-%{pkgname} +%license LICENSE.txt +%doc README.rst NEWS.rst +%{python3_sitearch}/public/ +%{python3_sitearch}/%{srcname}-%{version}*-py%{python3_version}.egg-info/ +%{python3_sitearch}/_public.*.so + +%if 0%{?with_python3_other} +%files -n python%{python3_other_pkgversion}-%{pkgname} +%license LICENSE.txt +%doc README.rst NEWS.rst +%{python3_other_sitearch}/public/ +%{python3_other_sitearch}/%{srcname}-%{version}*-py%{python3_other_version}.egg-info/ +%{python3_other_sitearch}/_public.*.so +%endif + + +%changelog +* Tue May 26 2020 Miro Hrončok - 1.0-3 +- Rebuilt for Python 3.9 + +* Thu Jan 30 2020 Fedora Release Engineering - 1.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Mon Sep 30 2019 Aurelien Bompard - 1.0-1 +- Version 1.0 + +* Mon Aug 19 2019 Miro Hrončok - 0.5-9 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 0.5-8 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 0.5-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 0.5-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 0.5-5 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 0.5-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Thu Aug 03 2017 Fedora Release Engineering - 0.5-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild + +* Thu Jul 27 2017 Fedora Release Engineering - 0.5-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Mon Dec 05 2016 Aurelien Bompard - 0.4-1 +- Initial package. diff --git a/sources b/sources index e69de29..917230d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +SHA512 (atpublic-1.0.tar.gz) = f9e6f7bbbe12d86df5bc849c432e789fb55c6d19b9d6b3fb2462ea38aa8ad6602504a30a95ec14e001f62709ae5e11ae29258b9cb7a71eaa48879f9cb0cb19d8