commit c57dfe75b30835ec7cbd376deb92858194866098 Author: Jakub Bogusz <qbo...@pld-linux.org> Date: Tue Jan 24 21:33:58 2023 +0100
- cleanup, pl python-pyrfc3339.spec | 33 ++++++++++++++++++++++++--------- 1 file changed, 24 insertions(+), 9 deletions(-) --- diff --git a/python-pyrfc3339.spec b/python-pyrfc3339.spec index 37f8c15..93cf000 100644 --- a/python-pyrfc3339.spec +++ b/python-pyrfc3339.spec @@ -1,23 +1,24 @@ # # Conditional build: -%bcond_without doc # don't build doc -%bcond_without tests # do not perform "make test" +%bcond_with tests # unit tests (not included in sdist) %bcond_without python2 # CPython 2.x module %bcond_without python3 # CPython 3.x module -%define module pyRFC3339 Summary: Generate and parse RFC 3339 timestamps +Summary(pl.UTF-8): Generowanie i analiza znaczników czasu RFC 3339 Name: python-pyrfc3339 Version: 1.1 Release: 5 License: MIT -Source0: https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-%{version}.tar.gz +#Source0Download: https://pypi.org/simple/pyRFC3339/ +Source0: https://files.pythonhosted.org/packages/source/p/pyRFC3339/pyRFC3339-%{version}.tar.gz # Source0-md5: c829980738b8271b0179ffd0c41187b0 Group: Libraries/Python -URL: https://pypi.python.org/pypi/pyRFC3339 +URL: https://pypi.org/project/pyRFC3339/ BuildRequires: rpm-pythonprov -BuildRequires: rpmbuild(macros) >= 1.713 +BuildRequires: rpmbuild(macros) >= 1.714 %if %{with python2} +BuildRequires: python-modules >= 1:2.7 BuildRequires: python-setuptools %if %{with tests} BuildRequires: python-nose @@ -25,6 +26,7 @@ BuildRequires: python-pytz %endif %endif %if %{with python3} +BuildRequires: python3-modules >= 1:3.4 BuildRequires: python3-setuptools %if %{with tests} BuildRequires: python3-nose @@ -37,16 +39,27 @@ BuildArch: noarch This package contains a Python 2 library to parse and generate RFC 3339-compliant timestamps using Python datetime.datetime objects. +%description -l pl.UTF-8 +Ten pakiet zawiera bibliotekę Pythona 2 do analizy i generowania +znaczników czasu zgodnych z RFC 3339 przy użyciu obiektów Pythona +datetime.datetime. + %package -n python3-pyrfc3339 Summary: Generate and parse RFC 3339 timestamps +Summary(pl.UTF-8): Generowanie i analiza znaczników czasu RFC 3339 Group: Libraries/Python %description -n python3-pyrfc3339 This package contains a Python 3 library to parse and generate RFC 3339-compliant timestamps using Python datetime.datetime objects. +%description -n python3-pyrfc3339 -l pl.UTF-8 +Ten pakiet zawiera bibliotekę Pythona 2 do analizy i generowania +znaczników czasu zgodnych z RFC 3339 przy użyciu obiektów Pythona +datetime.datetime. + %prep -%setup -q -n %{module}-%{version} +%setup -q -n pyRFC3339-%{version} %build %if %{with python2} @@ -59,8 +72,10 @@ This package contains a Python 3 library to parse and generate RFC %install rm -rf $RPM_BUILD_ROOT + %if %{with python2} %py_install + %py_postclean %endif @@ -76,7 +91,7 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc README.rst LICENSE.txt %{py_sitescriptdir}/pyrfc3339 -%{py_sitescriptdir}/%{module}-%{version}-py*.egg-info +%{py_sitescriptdir}/pyRFC3339-%{version}-py*.egg-info %endif %if %{with python3} @@ -84,5 +99,5 @@ rm -rf $RPM_BUILD_ROOT %defattr(644,root,root,755) %doc README.rst LICENSE.txt %{py3_sitescriptdir}/pyrfc3339 -%{py3_sitescriptdir}/%{module}-%{version}-*.egg-info +%{py3_sitescriptdir}/pyRFC3339-%{version}-py*.egg-info %endif ================================================================ ---- gitweb: http://git.pld-linux.org/gitweb.cgi/packages/python-pyrfc3339.git/commitdiff/c57dfe75b30835ec7cbd376deb92858194866098 _______________________________________________ pld-cvs-commit mailing list pld-cvs-commit@lists.pld-linux.org http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit