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:
commit
cb17fb66f4
@ -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
3
jdcal-1.3.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:b760160f8dc8cc51d17875c6b663fafe64be699e10ce34b6a95184b5aa0fdc9e
|
||||
size 7433
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user