File gittyup.spec of Package gittyup
#
# spec file for package gittyup
#
# Copyright (c) 2022 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/
#
Name: gittyup
Version: 1.4.0+git.20250910.636e6c7
Release: 0
Summary: Understand your Git history
License: MIT
URL: https://github.com/Murmele/Gittyup
Source: %{name}-%{version}.tar.xz
Patch0: exclude-libgit2-from-all.patch
Patch1: disable-extra-installs.patch
BuildRequires: cmake
BuildRequires: ninja
BuildRequires: ccache
BuildRequires: fdupes
BuildRequires: git
BuildRequires: gcc-c++
BuildRequires: kf6-filesystem
# BuildRequires: update-desktop-files
BuildRequires: qt6-translations
BuildRequires: pkgconfig(hunspell)
BuildRequires: pkgconfig(libcmark)
# BuildRequires: pkgconfig(libgit2)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(libssh2)
BuildRequires: pkgconfig(lua)
BuildRequires: pkgconfig(libsecret-1)
BuildRequires: pkgconfig(gnome-keyring-1)
BuildRequires: cmake(Qt6DBus)
BuildRequires: cmake(Qt6Gui)
BuildRequires: cmake(Qt6Core)
BuildRequires: cmake(Qt6Test)
BuildRequires: cmake(Qt6Network)
BuildRequires: cmake(Qt6Concurrent)
BuildRequires: cmake(Qt6PrintSupport)
BuildRequires: cmake(Qt6LinguistTools)
%description
%prep
%autosetup -p1
%build
# export CFLAGS="-Wno-error"
# export CXXFLAGS="-Wno-error"
%cmake -DUSE_SYSTEM_LIBSSH2=ON \
-DUSE_SYSTEM_GIT=ON \
-DUSE_SYSTEM_QT=ON \
-DUSE_SYSTEM_LUA=ON \
-DUSE_SYSTEM_OPENSSL=ON \
-DUSE_SYSTEM_CMARK=ON \
-DUSE_SYSTEM_HUNSPELL=ON \
-DUSE_SYSTEM_LIBGIT2=OFF \
-DENABLE_UPDATE_OVER_GUI=OFF \
-DENABLE_TESTS=OFF
%cmake_build
%install
%cmake_install
%fdupes %{buildroot}%{appdir}
%files
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}
%{_bindir}/indexer
%{_bindir}/relauncher
%{_datadir}/Gittyup/
%{_datadir}/icons/hicolor/128x128/apps/%{name}.png
%{_datadir}/icons/hicolor/16x16/apps/%{name}.png
%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/icons/hicolor/512x512/apps/%{name}.png
%{_datadir}/icons/hicolor/64x64/apps/%{name}.png
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%{_datadir}/applications/%{name}.desktop
%{_datadir}/locale/Gittyup/
%changelog