File gquilt.spec of Package gquilt
#
# spec file for package gquilt
#
# Copyright (c) 2020 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/
#
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python2 1
Name: gquilt
Version: 0.25
Release: 0
Summary: GUI Wrapper for quilt
License: GPL-2.0-only
Group: Development/Tools/Version Control
URL: http://gquilt.sourceforge.net/
Source0: http://download.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
# PATCH-FIX-OPENSUSE gquilt-0.25-pixmaps.patch lazy.kent@opensuse.org -- install icons into program dir, not into system one
Patch0: gquilt-0.25-pixmaps.patch
BuildRequires: fdupes
BuildRequires: python-rpm-macros
BuildRequires: update-desktop-files
Requires: mercurial
Requires: python-gtk
Requires: quilt
BuildArch: noarch
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module devel}
%python_subpackages
%description
gquilt is a Python script that provides a GUI for quilt and Mercurial
using the PyGTK package.
%prep
%setup -q
%patch -P 0
%build
%python_build
%install
%python_install
%fdupes -s %{buildroot}%{_datadir}
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%suse_update_desktop_file -i -r %{name} Development RevisionControl
%files %{python_files}
%license COPYING
%doc copyright
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/pixmaps/%{name}.png
%{_datadir}/applications/%{name}.desktop
%{_sysconfdir}/%{name}.d
%{python_sitelib}/%{name}_pkg
%{python_sitelib}/%{name}-%{version}-*.egg-info
%changelog