forked from pool/python-pytimeparse2
Accepting request 1136199 from home:SchoolGuy:branches:devel:languages:python
This new package is required for the update of mysql-to-sqlite3 to version 2.1.6. The old package python-pytimeparse is still available on PyPi and pytimeparse2 is not compatible anymore in newer versions like this. OBS-URL: https://build.opensuse.org/request/show/1136199 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pytimeparse2?expand=0&rev=1
This commit is contained in:
59
python-pytimeparse2.spec
Normal file
59
python-pytimeparse2.spec
Normal file
@@ -0,0 +1,59 @@
|
||||
#
|
||||
# spec file for package python-pytimeparse2
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
%define short_name pytimeparse2
|
||||
Name: python-%{short_name}
|
||||
Version: 1.7.1
|
||||
Release: 0
|
||||
Summary: A small Python module to parse various kinds of time expressions
|
||||
License: MIT
|
||||
URL: https://github.com/onegreyonewhite/pytimeparse2
|
||||
Source: %{short_name}-%{version}.tar.gz
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module python-dateutil}
|
||||
Requires: python3-base
|
||||
Recommends: python3-python-dateutil
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
A small Python module to parse various kinds of time expressions. Developed separately from the original.
|
||||
|
||||
%prep
|
||||
%autosetup -n %{short_name}-%{version}
|
||||
|
||||
%build
|
||||
%python_build
|
||||
|
||||
%install
|
||||
%python_install
|
||||
%python_expand sed -i '1d' %{buildroot}/%{$python_sitelib}/%{short_name}.py
|
||||
|
||||
%check
|
||||
%pyunittest -v
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE.rst
|
||||
%doc README.rst
|
||||
%{python_sitelib}/%{short_name}.py
|
||||
%{python_sitelib}/%{short_name}-%{version}*-info
|
||||
%pycache_only %{python_sitelib}/__pycache__
|
||||
|
||||
%changelog
|
||||
|
Reference in New Issue
Block a user