Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:develop7:branches:devel:tools:scm
tortoisehg
tortoisehg.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File tortoisehg.spec of Package tortoisehg
# # spec file for package tortoisehg # # 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/ # %define _major 6 %define _minor 6 %define _patch 3 %define _nextminor 8 # only bother with testing on Tumbleweed %if 0%{?suse_version} >= 1550 %bcond_without test %else %bcond_with test %endif Name: tortoisehg Version: %{_major}.%{_minor}%{?_patch:.%{_patch}} Release: 0 Summary: Mercurial GUI command line tool License: GPL-2.0-only Group: Development/Tools/Version Control URL: https://tortoisehg.bitbucket.io Source0: https://www.mercurial-scm.org/release/%{name}/targz/%{name}-%{version}.tar.gz Source1: https://foss.heptapod.net/mercurial/%{name}/thg/-/archive/%{version}/thg-%{version}.tar.gz?path=tests#/thg-%{version}-tests.tar.gz Source99: rpmlintrc BuildRequires: fdupes BuildRequires: gettext BuildRequires: mercurial < %{_major}.%{_nextminor} BuildRequires: mercurial >= %{_major}.%{_minor} BuildRequires: python-rpm-macros BuildRequires: python3-Sphinx BuildRequires: python3-setuptools BuildRequires: update-desktop-files Requires: mercurial < %{_major}.%{_nextminor} Requires: mercurial >= %{_major}.%{_minor} Requires: python3-iniparse >= 0.3.1 Recommends: python3-Pygments BuildArch: noarch BuildRequires: python3-qt5-devel Requires: python3-qscintilla-qt5 Requires: python3-qt5 # python3-qt5-sip is a dependency of python3-qt5 in Leap 15.4 and Tumbleweed, but not in Leap 15.3 or earlier, and required to run tortoisehg. %if 0%{?sle_version} < 150400 Requires: python3-qt5-sip %endif %if %{with test} BuildRequires: python3-Pygments BuildRequires: python3-iniparse >= 0.3.1 BuildRequires: python3-pytest BuildRequires: python3-pytest-qt BuildRequires: python3-pytest-xvfb BuildRequires: python3-qscintilla-qt5 %endif %description This package contains the thg command line tool, which provides a graphical user interface to the Mercurial distributed revision control system. %package nautilus Summary: Mercurial GUI plugin to Nautilus file manager Group: Development/Tools/Version Control Requires: %{name} = %{version} Requires: python3-nautilus %description nautilus This package contains the TortoiseHg Gnome/Nautilus extension, which makes the Mercurial distributed revision control system available in the file manager with a graphical interface. Note that the nautilus extension has been deprecated upstream. %prep %setup -q -a1 %build %python3_build (cd doc && make html) rm doc/build/html/.buildinfo %install %python3_install %find_lang %{name} %suse_update_desktop_file -i thg Development RevisionControl cp %{buildroot}%{_datadir}/pixmaps/%{name}/scalable/apps/thg.svg %{buildroot}/%{_datadir}/pixmaps/thg_logo.svg rm %{buildroot}%{_datadir}/doc/%{name}/COPYING.txt %fdupes %{buildroot}%{_datadir} %fdupes doc/build/html %fdupes %{buildroot}%{python3_sitelib} %check %if %{with test} cd thg-%{version}-tests # needs a custom pytest plugin loader in run-tests.py export PYTHONPATH="%{buildroot}%{python3_sitelib}" python3 tests/run-tests.py -v -m 'not largefiles' tests python3 tests/run-tests.py -v -m largefiles tests %endif %files -f %{name}.lang %license COPYING.txt %doc doc/build/html/ %{_bindir}/thg %{_datadir}/applications/thg.desktop %{_datadir}/pixmaps/%{name} %{_datadir}/pixmaps/thg_logo.svg %{python3_sitelib}/%{name} %{python3_sitelib}/hgext3rd/ %{python3_sitelib}/%{name}-%{version}*-info %files nautilus %license COPYING.txt %dir %{_datadir}/nautilus-python %dir %{_datadir}/nautilus-python/extensions %{_datadir}/nautilus-python/extensions/nautilus-thg.py %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor