File Guitar.spec of Package Guitar
#
# spec file for package Guitar
#
# Copyright (c) 2021 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: Guitar
Version: 1.2.0
Release: 0
Summary: Git GUI Client
License: GPL-2.0-only
URL: https://soramimi.github.io/Guitar
Source0: https://github.com/soramimi/Guitar/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: cmake
# https://github.com/soramimi/Guitar/issues/75
BuildRequires: gcc-c++
BuildRequires: hicolor-icon-theme
###BuildRequires: openssl-devel
BuildRequires: update-desktop-files
BuildRequires: cmake(Qt5Core)
BuildRequires: cmake(Qt5LinguistTools)
BuildRequires: cmake(Qt5Network)
BuildRequires: cmake(Qt5Svg)
BuildRequires: cmake(Qt5Widgets)
BuildRequires: pkgconfig(openssl)
BuildRequires: pkgconfig(zlib)
###Requires: git
%description
Git GUI Client written in C++ and Qt5.
%prep
%autosetup
%build
%cmake \
-DBUILD_SHARED_LIBS:BOOL=OFF \
-DBUILD_STATIC_LIBS:BOOL=ON
%cmake_build
%install
install -Dm0755 build/Guitar %{buildroot}%{_bindir}/guitar
install -Dm0644 LinuxDesktop/guitar.desktop %{buildroot}%{_datadir}/applications/guitar.desktop
install -Dm0644 LinuxDesktop/Guitar.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/guitar.svg
install -Dm0644 LinuxDesktop/guitar.appdata.xml %{buildroot}%{_datadir}/metainfo/guitar.appdata.xml
%suse_update_desktop_file guitar RevisionControl
%files
%license LICENSE.txt
%doc README.md
%{_bindir}/guitar
%{_datadir}/applications/guitar.desktop
%{_datadir}/icons/hicolor/scalable/apps/guitar.svg
%if 0%{?sle_version} == 120500
%dir %{_datadir}/metainfo
%endif
%{_datadir}/metainfo/guitar.appdata.xml
%changelog