2015-06-14 18:51:59 +00:00
|
|
|
#
|
|
|
|
|
# spec file for package python-parsedatetime
|
|
|
|
|
#
|
|
|
|
|
# Copyright (c) 2015 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/
|
|
|
|
|
#
|
|
|
|
|
|
2015-07-31 12:29:56 +00:00
|
|
|
|
2015-06-14 18:51:59 +00:00
|
|
|
%define modname parsedatetime
|
|
|
|
|
Name: python-%{modname}
|
2015-10-16 09:50:22 +00:00
|
|
|
Version: 1.5
|
2015-06-14 18:51:59 +00:00
|
|
|
Release: 0
|
|
|
|
|
Summary: Parse human-readable date/time text
|
2015-07-31 12:29:56 +00:00
|
|
|
License: Apache-2.0
|
2015-06-14 18:51:59 +00:00
|
|
|
Group: Development/Libraries/Python
|
2015-07-31 12:29:56 +00:00
|
|
|
Url: https://github.com/regebro/%{modname}
|
2015-07-31 12:33:17 +00:00
|
|
|
Source: %{modname}-%{version}.tar.gz
|
2015-06-14 18:51:59 +00:00
|
|
|
|
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
2015-07-14 07:45:12 +00:00
|
|
|
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
2015-06-14 18:51:59 +00:00
|
|
|
BuildArch: noarch
|
2015-07-14 07:45:12 +00:00
|
|
|
%endif
|
2015-06-14 18:51:59 +00:00
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
Parse human-readable date/time strings.
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{modname}-%{version}
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
python setup.py build
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
|
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
2015-10-16 09:50:22 +00:00
|
|
|
chmod 775 %{buildroot}%{python_sitelib}/%{modname}/__init__.py
|
2015-06-14 18:51:59 +00:00
|
|
|
|
|
|
|
|
%files
|
|
|
|
|
%defattr(-,root,root)
|
|
|
|
|
%doc LICENSE.txt CHANGES.txt PKG-INFO
|
|
|
|
|
%{python_sitelib}/%{modname}
|
|
|
|
|
%{python_sitelib}/%{modname}-%{version}-py%{py_ver}.egg-info
|
|
|
|
|
|
|
|
|
|
%changelog
|