forked from pool/python-pdd
Accepting request 697443 from home:pgajdos
- version update to 1.4 - Command piggybacking with countdown timer - Show current time for timers - Disable showing epoch time on `pdd` - run the test suite OBS-URL: https://build.opensuse.org/request/show/697443 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pdd?expand=0&rev=3
This commit is contained in:
committed by
Git OBS Bridge
parent
0060c8bfe3
commit
03a74e87cb
@@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pdd
|
||||
#
|
||||
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||
# Copyright (c) 2019 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
|
||||
@@ -12,29 +12,32 @@
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
# pdd is not available for Python 2
|
||||
%define skip_python2 1
|
||||
|
||||
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||
Name: python-pdd
|
||||
Version: 1.3.1
|
||||
Version: 1.4
|
||||
Release: 0
|
||||
License: GPL-3.0
|
||||
Summary: Tiny date, time diff calculator with timers
|
||||
Url: https://github.com/jarun/pdd
|
||||
License: GPL-3.0-only
|
||||
Group: Development/Languages/Python
|
||||
Url: https://github.com/jarun/pdd
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pdd/pdd-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: python-rpm-macros
|
||||
# SECTION test requirements
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
# /SECTION
|
||||
BuildRequires: fdupes
|
||||
Requires: python-python-dateutil
|
||||
Requires: python-setuptools
|
||||
BuildArch: noarch
|
||||
|
||||
%python_subpackages
|
||||
@@ -46,12 +49,19 @@ pdd (Python3 Date Diff) is a small cmdline utility to calculate date and time di
|
||||
%setup -q -n pdd-%{version}
|
||||
|
||||
%build
|
||||
# this seems to be fixed in github (there is pdd instead of pdd.py,
|
||||
# what setup.py expects, if I have not missed anything)
|
||||
mv pdd.py pdd
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
chmod 755 pdd
|
||||
%pytest test.py
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.md CHANGELOG
|
||||
%license LICENSE
|
||||
|
||||
Reference in New Issue
Block a user