blob: 1b9c6b67f7464739babf42d4fff6099007babc8c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
|
%global pkgname tempora
Name: python-%{pkgname}
Version: 1.14
Release: 1%{?dist}
Summary: Objects and routines pertaining to date and time
License: MIT
Source0: https://files.pythonhosted.org/packages/source/t/%{pkgname}/%{pkgname}-%{version}.tar.gz
BuildArch: noarch
BuildRequires: python3-devel
# Drop?
# BuildRequires: python3-backports-unittest_mock
BuildRequires: python3-freezegun
BuildRequires: python3-jaraco-functools >= 1.20
# Probably jaraco.packaging is not a hard requirement
# BuildRequires: python3dist(jaraco.packaging) >= 3.2
BuildRequires: python3-pytest >= 3.5
BuildRequires: python3-pytz
BuildRequires: python3-setuptools
BuildRequires: python3-setuptools_scm >= 1.15.0
BuildRequires: python3-six
# Is sphinx a hard requirement?
# BuildRequires: python3-sphinx
%global _description\
Objects and routines pertaining to date and time.
%description %_description
%package -n python3-%{pkgname}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pkgname}}
%description -n python3-%{pkgname} %_description
%prep
%autosetup -n %{pkgname}-%{version}
sed -i 's/ --flake8//' pytest.ini
%build
SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
%{py3_build}
%install
%{py3_install}
%check
py.test-%{python3_version} -v
%files -n python3-%{pkgname}
%license LICENSE
%doc README.rst
%{python3_sitelib}/*
%{_bindir}/calc-prorate
%changelog
* Mon Feb 25 2019 Ken Dreyer <kdreyer@redhat.com> - 1.14-1
- Initial package.
|