diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..6aa6c769dc60aaf281a5f781048c1a8869879838 --- /dev/null +++ b/LICENSE @@ -0,0 +1,29 @@ +BSD 3-Clause License + +Copyright (c) 2021, hy +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +* Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +* Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +* Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/jdcal-1.4.tar.gz b/jdcal-1.4.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..d824d551f1bccf13860689dbaf923cee84efd42b Binary files /dev/null and b/jdcal-1.4.tar.gz differ diff --git a/python-jdcal.spec b/python-jdcal.spec new file mode 100644 index 0000000000000000000000000000000000000000..ac83190485236c28c59005d1b268926607047dc4 --- /dev/null +++ b/python-jdcal.spec @@ -0,0 +1,189 @@ +%global modname jdcal + + +Name: python-%{modname} +Version: 1.4 +Release: 0 +Summary: Julian dates from proleptic Gregorian and Julian calendars +License: BSD +URL: https://github.com/phn/jdcal +Source0: %{url}/archive/v%{version}/%{modname}-%{version}.tar.gz +Source1: https://gitee.com/ymz316/python-%{modname}/blob/master/%{modname}-%{version}.tar.gz + +BuildArch: noarch + + +%description + +This module contains functions for converting between Julian dates and calendar +dates. +A function for converting Gregorian calendar dates to Julian dates, and another +function for converting Julian calendar dates to Julian dates are defined. +Two functions for the reverse calculations are also defined. + + +%package -n python3-%{modname} + +Summary: %{summary} +%{?python_provide:%python_provide python3-%{modname}} +BuildRequires: python3-devel +BuildRequires: python3-setuptools + +%description -n python3-%{modname} +This module contains functions for converting between Julian dates and calendar +dates. +A function for converting Gregorian calendar dates to Julian dates, and another +function for converting Julian calendar dates to Julian dates are defined. +Two functions for the reverse calculations are also defined. + +Python 3 version. + + + +%prep +%autosetup -n %{modname}-%{version} + + + +%build +%py3_build + + +%install +%py3_install + + +%files -n python3-%{modname} +%doc README.rst +%{python3_sitelib}/%{modname}* +%{python3_sitelib}/__pycache__/%{modname}* + + + +%changelog + +* Fri Jun 04 2021 Python Maint - 1.4-11 + +- Rebuilt for Python 3.10 + + + +* Wed Jan 27 2021 Fedora Release Engineering - 1.4-10 + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild + + + +* Wed Jul 29 2020 Fedora Release Engineering - 1.4-9 + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + + + +* Tue May 26 2020 Miro Hrončok - 1.4-8 + +- Rebuilt for Python 3.9 + + + +* Thu Jan 30 2020 Fedora Release Engineering - 1.4-7 + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + + + +* Thu Oct 03 2019 Miro Hrončok - 1.4-6 + +- Rebuilt for Python 3.8.0rc1 (#1748018) + + + +* Mon Aug 19 2019 Miro Hrončok - 1.4-5 + +- Rebuilt for Python 3.8 + + + +* Fri Jul 26 2019 Fedora Release Engineering - 1.4-4 + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + + + +* Mon Feb 11 2019 Miro Hrončok - 1.4-3 + +- Subpackage python2-jdcal has been removed + + See https://fedoraproject.org/wiki/Changes/Mass_Python_2_Package_Removal + + + +* Sat Feb 02 2019 Fedora Release Engineering - 1.4-2 + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + + + +* Fri Aug 10 2018 Igor Gnatenko - 1.4-1 + +- Update to 1.4 + + + +* Sat Jul 14 2018 Fedora Release Engineering - 1.0-10 + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + + + +* Tue Jun 19 2018 Miro Hrončok - 1.0-9 + +- Rebuilt for Python 3.7 + + + +* Fri Feb 09 2018 Fedora Release Engineering - 1.0-8 + +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + + + +* 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 Nov 12 2015 Kalev Lember - 1.0-2 + +- Rebuilt for https://fedoraproject.org/wiki/Changes/python3.5 + + + +* Sun Nov 08 2015 Igor Gnatenko - 1.0-1 + +- Initial package