Accepting request 489391 from devel:languages:python

1

OBS-URL: https://build.opensuse.org/request/show/489391
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-jdcal?expand=0&rev=3
This commit is contained in:
2017-05-08 17:02:23 +00:00
committed by Git OBS Bridge
4 changed files with 36 additions and 21 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:5ebedb58b95ebabd30f56abef65139c6f69ec1687cf1d2f3a7c503f9a2cdfa4d
size 7059

3
jdcal-1.3.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b760160f8dc8cc51d17875c6b663fafe64be699e10ce34b6a95184b5aa0fdc9e
size 7433

View File

@@ -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 Thu Dec 10 16:24:48 UTC 2015 - bruno@ioda-net.ch

View File

@@ -1,7 +1,7 @@
# #
# spec file for package python-jdcal # 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 # All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed # remain the property of their copyright owners, unless otherwise agreed
@@ -16,24 +16,27 @@
# #
# %bcond_without tests
%define _pyname jdcal
Name: python-%{_pyname} %{?!python_module:%define python_module() python-%{**} python3-%{**}}
Version: 1.2 Name: python-jdcal
Version: 1.3
Release: 0 Release: 0
Summary: Julian dates from proleptic Gregorian and Julian calendars Summary: Julian dates from proleptic Gregorian and Julian calendars
License: BSD-2-Clause License: BSD-2-Clause
Group: Development/Languages/Python Group: Development/Languages/Python
Url: http://github.com/phn/%{_pyname} Url: http://github.com/phn/jdcal
Source: https://pypi.python.org/packages/source/j/%{_pyname}/%{_pyname}-%{version}.tar.gz Source: https://files.pythonhosted.org/packages/source/j/jdcal/jdcal-%{version}.tar.gz
BuildRequires: python-devel BuildRequires: fdupes
BuildRoot: %{_tmppath}/%{name}-%{version}-build BuildRequires: python-rpm-macros
%if 0%{?suse_version} && 0%{?suse_version} <= 1110 BuildRequires: %{python_module devel}
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} BuildRequires: %{python_module setuptools}
%else %if %{with tests}
BuildArch: noarch BuildRequires: %{python_module pytest}
%endif %endif
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description %description
This module contains functions for converting between Julian dates and 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. defined.
%prep %prep
%setup -q -n %{_pyname}-%{version} %setup -q -n jdcal-%{version}
%build %build
python setup.py build %python_build
%install %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,-) %defattr(-,root,root,-)
%doc README.rst %doc LICENSE.txt README.rst
%{python_sitelib}/* %{python_sitelib}/*
%changelog %changelog