diff --git a/.gitignore b/.gitignore index e69de29..367e24f 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/pyRFC3339-1.0.tar.gz diff --git a/python-pyrfc3339.spec b/python-pyrfc3339.spec new file mode 100644 index 0000000..bed6b29 --- /dev/null +++ b/python-pyrfc3339.spec @@ -0,0 +1,109 @@ +%global srcname pyRFC3339 + + +Name: python-pyrfc3339 +Version: 1.0 +Release: 16%{?dist} +Summary: Generate and parse RFC 3339 timestamps + +License: MIT +URL: https://pypi.python.org/pypi/pyRFC3339 +Source0: https://pypi.python.org/packages/source/p/pyRFC3339/pyRFC3339-%{version}.tar.gz + +BuildArch: noarch + +BuildRequires: python3-devel +# --- unit tests --- +BuildRequires: python3-nose +BuildRequires: python3-pytz + +%description +This package contains a python library to parse and generate +RFC 3339-compliant timestamps using Python datetime.datetime objects. + +%package -n python3-pyrfc3339 +Summary: Generate and parse RFC 3339 timestamps +%{?python_provide:%python_provide python3-pyrfc3339} + +%description -n python3-pyrfc3339 +This package contains a Python 3 library to parse and generate +RFC 3339-compliant timestamps using Python datetime.datetime objects. + + + +%prep +%autosetup -n %{srcname}-%{version} + +%build +%py3_build + +%install +%py3_install + +%check +%{__python3} setup.py test + + +%files -n python3-pyrfc3339 +%doc README.rst +%license LICENSE.txt +%{python3_sitelib}/pyrfc3339 +%{python3_sitelib}/%{srcname}-%{version}-*.egg-info + + +%changelog +* Thu Oct 03 2019 Miro Hrončok - 1.0-16 +- Rebuilt for Python 3.8.0rc1 (#1748018) + +* Mon Aug 19 2019 Miro Hrončok - 1.0-15 +- Rebuilt for Python 3.8 + +* Fri Jul 26 2019 Fedora Release Engineering - 1.0-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sat Feb 02 2019 Fedora Release Engineering - 1.0-13 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Wed Jan 09 2019 Miro Hrončok - 1.0-12 +- Subpackage python2-pyrfc3339 has been removed + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 19 2018 Miro Hrončok - 1.0-10 +- Rebuilt for Python 3.7 + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Jan 27 2018 Iryna Shcherbina - 1.0-8 +- Update Python 2 dependency declarations to new packaging standards + (See https://fedoraproject.org/wiki/FinalizingFedoraSwitchtoPython3) + +* Thu Jul 27 2017 Fedora Release Engineering - 1.0-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Sat Feb 11 2017 Fedora Release Engineering - 1.0-6 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Mon Dec 19 2016 Miro Hrončok - 1.0-5 +- Rebuild for Python 3.6 + +* Tue Jul 19 2016 Fedora Release Engineering - 1.0-4 +- https://fedoraproject.org/wiki/Changes/Automatic_Provides_for_Python_RPM_Packages + +* Thu Feb 04 2016 Fedora Release Engineering - 1.0-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Thu Dec 03 2015 Robert Buchholz - 1.0-2 +- epel7: Only build python2 package + +* Tue Nov 10 2015 James Hogarth - 1.0-1 +- Add installed tests back as per review +- Update to new 1.0 PyPi release +- Add external license file +* Sun Nov 08 2015 James Hogarth - 0.2-2 +- Update to follow the python guidelines +* Wed Oct 28 2015 Felix Schwarz - 0.2-1 +- initial packaging diff --git a/sources b/sources index e69de29..d5a585d 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +0f7edd7ffd756a582eeef9282fecb60d pyRFC3339-1.0.tar.gz