|
|
1eb5a76 |
# Created by pyp2rpm-3.3.2
|
|
|
1eb5a76 |
%global pypi_name timeunit
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%global desc \
|
|
|
1eb5a76 |
Based on java.util.concurrent.TimeUnit and timeunit in npm \
|
|
|
1eb5a76 |
TimeUnit is a port of the public domain TimeUnit Java class by Doug Lea \
|
|
|
1eb5a76 |
This class is the basis for java.util.concurrent.TimeUnit from JavaSE. \
|
|
|
1eb5a76 |
\
|
|
|
1eb5a76 |
A timeunit represents time durations at a given unit of granularity and \
|
|
|
1eb5a76 |
provides utility methods to convert across units, and to perform delay \
|
|
|
1eb5a76 |
operations in these units. A timeunit does not maintain time information, \
|
|
|
1eb5a76 |
but only helps organize and use time representations that may be maintained \
|
|
|
1eb5a76 |
separately across various contexts. \
|
|
|
1eb5a76 |
\
|
|
|
1eb5a76 |
A timeunit is mainly used to inform time-based methods how a given timing \
|
|
|
1eb5a76 |
parameter should be interpreted.
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
Name: python-%{pypi_name}
|
|
|
1eb5a76 |
Version: 1.1.0
|
|
|
4547ed7 |
Release: 3%{?dist}
|
|
|
1eb5a76 |
Summary: Python module providing utility methods to convert across time units
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
License: MIT
|
|
|
1eb5a76 |
URL: https://github.com/Ralph-Wang/timeunit-python
|
|
|
1eb5a76 |
Source0: https://files.pythonhosted.org/packages/source/t/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
|
|
|
1eb5a76 |
BuildArch: noarch
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
BuildRequires: python3-devel
|
|
|
1eb5a76 |
BuildRequires: python3dist(setuptools)
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%description
|
|
|
1eb5a76 |
%{desc}
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%package -n python3-%{pypi_name}
|
|
|
1eb5a76 |
Summary: %{summary}
|
|
|
1eb5a76 |
%{?python_provide:%python_provide python3-%{pypi_name}}
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%description -n python3-%{pypi_name}
|
|
|
1eb5a76 |
%{desc}
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%prep
|
|
|
1eb5a76 |
%autosetup -n %{pypi_name}-%{version}
|
|
|
1eb5a76 |
# Remove bundled egg-info
|
|
|
1eb5a76 |
rm -rf %{pypi_name}.egg-info
|
|
|
1eb5a76 |
#README.md contains the LICENSE text upstream, split this up
|
|
|
1eb5a76 |
awk '/^## License/ {++count; file="LICENSE.md"; print file} file {print line > file} {line=$0}' README.md
|
|
|
1eb5a76 |
sed -i '/## License[^.]*$/,+30 g' README.md
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%build
|
|
|
1eb5a76 |
%py3_build
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%install
|
|
|
1eb5a76 |
%py3_install
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%files -n python3-%{pypi_name}
|
|
|
1eb5a76 |
%doc README.md
|
|
|
1eb5a76 |
%license LICENSE.md
|
|
|
1eb5a76 |
%{python3_sitelib}/timeunit*
|
|
|
1eb5a76 |
|
|
|
1eb5a76 |
%changelog
|
|
|
4547ed7 |
* Tue May 26 2020 Miro HronĨok <mhroncok@redhat.com> - 1.1.0-3
|
|
|
4547ed7 |
- Rebuilt for Python 3.9
|
|
|
4547ed7 |
|
|
|
0dc8553 |
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.0-2
|
|
|
0dc8553 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
0dc8553 |
|
|
|
1eb5a76 |
* Mon Oct 28 2019 David McCheyne <davidmccheyne@gmail.com> - 1.1.0-1
|
|
|
1eb5a76 |
- Initial package.
|