14
0
forked from pool/python-pdd
Files
python-pdd/python-pdd.spec

62 lines
1.9 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-pdd
#
# Copyright (c) 2018 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# 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/
# 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
Release: 0
License: GPL-3.0
Summary: Tiny date, time diff calculator with timers
Url: https://github.com/jarun/pdd
Group: Development/Languages/Python
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}
# SECTION test requirements
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module pytest}
# /SECTION
BuildRequires: fdupes
Requires: python-python-dateutil
BuildArch: noarch
%python_subpackages
%description
pdd (Python3 Date Diff) is a small cmdline utility to calculate date and time difference. It can also be used as a timer
%prep
%setup -q -n pdd-%{version}
%build
%python_build
%install
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files %{python_files}
%doc README.md CHANGELOG
%license LICENSE
%python3_only %{_bindir}/pdd
%{python_sitelib}/*
%changelog