- Convert to singlespec build
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tzlocal?expand=0&rev=7
This commit is contained in:
parent
edee7db3a6
commit
c500b0a224
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Jul 11 16:22:34 UTC 2017 - rjschwei@suse.com
|
||||||
|
|
||||||
|
- Convert to singlespec build
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Sep 14 14:42:20 UTC 2015 - ms@suse.com
|
Mon Sep 14 14:42:20 UTC 2015 - ms@suse.com
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package python-tzlocal
|
# spec file for package python-tzlocal
|
||||||
#
|
#
|
||||||
# Copyright (c) 2015 SUSE LINUX GmbH, Nuernberg, Germany.
|
# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany.
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@ -16,6 +16,7 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
|
||||||
%define modname tzlocal
|
%define modname tzlocal
|
||||||
Name: python-%{modname}
|
Name: python-%{modname}
|
||||||
Version: 1.1.3
|
Version: 1.1.3
|
||||||
@ -25,14 +26,16 @@ License: CC0-1.0
|
|||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Url: https://github.com/regebro/%{modname}
|
Url: https://github.com/regebro/%{modname}
|
||||||
Source: http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
|
Source: http://pypi.python.org/packages/source/t/%{modname}/%{modname}-%{version}.tar.gz
|
||||||
|
BuildRequires: %{python_module devel}
|
||||||
|
BuildRequires: %{python_module pytz}
|
||||||
|
BuildRequires: %{python_module setuptools}
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
BuildRequires: python-pytz
|
BuildRequires: python-rpm-macros
|
||||||
BuildRequires: python-setuptools
|
|
||||||
Requires: python-pytz
|
Requires: python-pytz
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%if 0%{?suse_version} && 0%{?suse_version} > 1110
|
|
||||||
BuildArch: noarch
|
BuildArch: noarch
|
||||||
%endif
|
|
||||||
|
%python_subpackages
|
||||||
|
|
||||||
%description
|
%description
|
||||||
This Python module returns a tzinfo object with the local timezone information
|
This Python module returns a tzinfo object with the local timezone information
|
||||||
@ -54,16 +57,16 @@ file. However, if the timezone name is readily available it will be used.
|
|||||||
%setup -q -n %{modname}-%{version}
|
%setup -q -n %{modname}-%{version}
|
||||||
|
|
||||||
%build
|
%build
|
||||||
python setup.py build
|
%python_build
|
||||||
|
|
||||||
%install
|
%install
|
||||||
python setup.py install --prefix=%{_prefix} --root=%{buildroot}
|
%python_install
|
||||||
%fdupes -s %{buildroot}
|
%fdupes -s %{buildroot}
|
||||||
|
|
||||||
%check
|
%check
|
||||||
python setup.py test
|
python setup.py test
|
||||||
|
|
||||||
%files
|
%files %{python_files}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc README.rst MANIFEST.in LICENSE.txt CHANGES.txt PKG-INFO
|
%doc README.rst MANIFEST.in LICENSE.txt CHANGES.txt PKG-INFO
|
||||||
%{python_sitelib}/%{modname}
|
%{python_sitelib}/%{modname}
|
||||||
|
Loading…
Reference in New Issue
Block a user