Files
git-cola/git-cola.spec
Dirk Mueller 58cf66fe2f - update to 4.8.0:
* The Rebase editor is now aware of the drop, break, label,
    merge and reset commands that were added in recent versions
    of Git.
  * Desktop notifications can now be enabled when pushing remotes
    by enabling the "Notify on Push" option in the preferences.
  * Faster and easier commit hash copying in DAG. Left-clicking
    on the Commit ID will now copy it directly into the clipboard
    without any further action.
  * "Grab File from Parent Commit" actions have been added to the
    DAG.
  * The Unstage Selected action was added to the context menu for
    unmerged files.
  * git cola rebase now provides  a --rebase-merges option and
    passes the same option to git rebase when Git v1.18.0 or
    newer is detected.
  * Pre-commits hooks were updated.
  * The Pull dialog now selects the remote branch automatically.

OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/git-cola?expand=0&rev=159
2024-06-29 20:29:08 +00:00

98 lines
3.0 KiB
RPMSpec

#
# spec file for package git-cola
#
# Copyright (c) 2024 SUSE LLC
# Copyright (c) 2024 Marcin Bajor
#
# 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/
#
Name: git-cola
Version: 4.8.0
Release: 0
Summary: A GUI for Git
License: GPL-2.0-or-later
Group: Development/Tools/Version Control
URL: https://git-cola.github.io/
Source: https://github.com/%{name}/%{name}/archive/v%{version}.tar.gz
BuildRequires: dos2unix
BuildRequires: git-core
BuildRequires: python-rpm-macros
BuildRequires: python3
BuildRequires: python3-Sphinx
BuildRequires: python3-build
BuildRequires: python3-jaraco.packaging
BuildRequires: python3-pip
BuildRequires: python3-qt6
BuildRequires: python3-rst.linker
BuildRequires: python3-setuptools_scm
BuildRequires: python3-wheel
BuildRequires: update-desktop-files
Requires: git-core
Requires: python3-QtPy
Requires: python3-qt6
Recommends: gitk
Recommends: python3-Send2Trash
Recommends: python3-pyinotify
BuildArch: noarch
%description
git-cola is a graphical user interface for Git that provides a way to
interact with Git repositories.
%prep
%setup -q
%build
python3 -m build --wheel --no-isolation
%make_build man prefix=%{_prefix} DESTDIR=%{buildroot} PYTHON=python3 PIP=pip
%install
pip install --no-deps --force-reinstall --root=%{buildroot} --prefix="%{_prefix}" dist/*.whl
make install-man prefix=%{_prefix} DESTDIR=%{buildroot} PYTHON=python3 PIP=pip
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/git-cola.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/git-dag.desktop
%suse_update_desktop_file %{buildroot}%{_datadir}/applications/git-cola-folder-handler.desktop
%files
%license COPYING COPYRIGHT
%{_bindir}/cola
%{_bindir}/git-cola
%{_bindir}/git-dag
%{_bindir}/git-cola-sequence-editor
%{_datadir}/applications/git-cola.desktop
%{_datadir}/applications/git-dag.desktop
%{_datadir}/applications/git-cola-folder-handler.desktop
%{_datadir}/metainfo/git-cola.appdata.xml
%{_datadir}/metainfo/git-dag.appdata.xml
%dir %{_datadir}/icons/hicolor
%dir %{_datadir}/icons/hicolor/scalable
%dir %{_datadir}/icons/hicolor/scalable/apps
%{_datadir}/icons/hicolor/scalable/apps/git-cola.svg
%dir %{_datadir}/doc/git-cola
%{_datadir}/doc/git-cola/*
%{_mandir}/man1/*.*
%if 0%{?sles_version} > 9
%{_datadir}/locale/zh_cn
%endif
%dir %{python3_sitelib}/cola
%{python3_sitelib}/cola/*
%{python3_sitelib}/git_cola*
%changelog