From 307ecd30c54e78fbe3678a77602c7491dbdeb1014401ef38a7f427f84a5ca4c6 Mon Sep 17 00:00:00 2001 From: Bruno Friedmann Date: Wed, 19 Apr 2017 16:48:15 +0000 Subject: [PATCH] Accepting request 489345 from home:TheBlackCat:branches:devel:languages:python - Update to version 1.3 - Implement single-spec version. OBS-URL: https://build.opensuse.org/request/show/489345 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-jdcal?expand=0&rev=5 --- jdcal-1.2.tar.gz | 3 --- jdcal-1.3.tar.gz | 3 +++ python-jdcal.changes | 6 ++++++ python-jdcal.spec | 45 ++++++++++++++++++++++++++------------------ 4 files changed, 36 insertions(+), 21 deletions(-) delete mode 100644 jdcal-1.2.tar.gz create mode 100644 jdcal-1.3.tar.gz diff --git a/jdcal-1.2.tar.gz b/jdcal-1.2.tar.gz deleted file mode 100644 index 06ebe98..0000000 --- a/jdcal-1.2.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:5ebedb58b95ebabd30f56abef65139c6f69ec1687cf1d2f3a7c503f9a2cdfa4d -size 7059 diff --git a/jdcal-1.3.tar.gz b/jdcal-1.3.tar.gz new file mode 100644 index 0000000..bb99ed8 --- /dev/null +++ b/jdcal-1.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:b760160f8dc8cc51d17875c6b663fafe64be699e10ce34b6a95184b5aa0fdc9e +size 7433 diff --git a/python-jdcal.changes b/python-jdcal.changes index 71b41d4..66f291b 100644 --- a/python-jdcal.changes +++ b/python-jdcal.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Wed Apr 19 15:30:41 UTC 2017 - toddrme2178@gmail.com + +- Update to version 1.3 +- Implement single-spec version. + ------------------------------------------------------------------- Thu Dec 10 16:24:48 UTC 2015 - bruno@ioda-net.ch diff --git a/python-jdcal.spec b/python-jdcal.spec index 88f6780..5f79122 100644 --- a/python-jdcal.spec +++ b/python-jdcal.spec @@ -1,7 +1,7 @@ # # spec file for package python-jdcal # -# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -16,24 +16,27 @@ # -# -%define _pyname jdcal +%bcond_without tests -Name: python-%{_pyname} -Version: 1.2 +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +Name: python-jdcal +Version: 1.3 Release: 0 Summary: Julian dates from proleptic Gregorian and Julian calendars License: BSD-2-Clause Group: Development/Languages/Python -Url: http://github.com/phn/%{_pyname} -Source: https://pypi.python.org/packages/source/j/%{_pyname}/%{_pyname}-%{version}.tar.gz -BuildRequires: python-devel -BuildRoot: %{_tmppath}/%{name}-%{version}-build -%if 0%{?suse_version} && 0%{?suse_version} <= 1110 -%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} -%else -BuildArch: noarch +Url: http://github.com/phn/jdcal +Source: https://files.pythonhosted.org/packages/source/j/jdcal/jdcal-%{version}.tar.gz +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildRequires: %{python_module devel} +BuildRequires: %{python_module setuptools} +%if %{with tests} +BuildRequires: %{python_module pytest} %endif +BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildArch: noarch +%python_subpackages %description This module contains functions for converting between Julian dates and @@ -45,17 +48,23 @@ are defined. Two functions for the reverse calculations are also defined. %prep -%setup -q -n %{_pyname}-%{version} +%setup -q -n jdcal-%{version} %build -python setup.py build +%python_build %install -python setup.py install --prefix=%{_prefix} --root=%{buildroot} +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} -%files +%if %{with tests} +%check +%python_exec test_jdcal.py +%endif + +%files %{python_files} %defattr(-,root,root,-) -%doc README.rst +%doc LICENSE.txt README.rst %{python_sitelib}/* %changelog