15
0

Accepting request 619366 from devel:languages:python:singlespec-staging

Upgrade to 0.4, where the change is that it supports python3 now.

Also, clean SPEC file to the singlespec standard (no tests though)

OBS-URL: https://build.opensuse.org/request/show/619366
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-GooCalendar?expand=0&rev=5
This commit is contained in:
2018-06-27 10:11:05 +00:00
committed by Git OBS Bridge
parent 4ce1e220c9
commit d9edabf3d8
4 changed files with 40 additions and 23 deletions

View File

@@ -1,7 +1,7 @@
#
# spec file for package python-GooCalendar
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
# Copyright (c) 2016 Dr. Axel Braun
#
# All modifications and additions to the file contributed by third parties
@@ -17,41 +17,42 @@
#
#
%define mod_name GooCalendar
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-GooCalendar
BuildRequires: python-devel
BuildRequires: python-genshi
BuildRequires: python-lxml
BuildRequires: python-setuptools
Version: 0.3
Version: 0.4
Release: 0
Source: https://files.pythonhosted.org/packages/source/G/%{mod_name}/%{mod_name}-%{version}.tar.gz
Url: https://pypi.io/project/GooCalendar/
Summary: A calendar widget for GTK using PyGoocanvas
License: GPL-2.0
License: GPL-2.0-only
Group: Development/Languages/Python
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%if 0%{?suse_version} && 0%{?suse_version} > 1110
URL: https://goocalendar.tryton.org/
Source: https://files.pythonhosted.org/packages/source/G/%{mod_name}/%{mod_name}-%{version}.tar.gz
BuildRequires: %{python_module Genshi}
BuildRequires: %{python_module lxml}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildArch: noarch
%endif
Requires: goocanvas >= 2.0
Requires: python-goocanvas
%python_subpackages
%description
A calendar widget for GTK using PyGoocanvas
A calendar widget for GTK using PyGoocanvas (Gnome widget linrary).
%prep
%setup -q -n %{mod_name}-%{version}
%build
python setup.py build
%python_build
%install
python setup.py install --prefix=%_prefix --root=%buildroot
%python_install
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%files
%defattr(-,root,root)
%doc README COPYRIGHT LICENSE
%files %{python_files}
%license LICENSE
%doc README COPYRIGHT
%{python_sitelib}/*
%changelog