File berry.spec of Package berry
#
# spec file for package berry
#
# 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/
#
Name: berry
Version: 1.0.0
Release: 0
Summary: Modern and light image viewer
License: GPL-3.0-or-later
Group: Productivity/Graphics/Viewers
Url: http://aseman.co/en/
Source0: %{name}-%{version}-src.tar.gz
# PATCH-FIX-OPENSUSE install.patch avvissu@yandex.ru -- Changed the paths install files
Patch0: berry-1.0.0_install.patch
# PATCH-FIX-UPSTREAM qt5-5.5.patch avvissu@yandex.ru -- Fix build with Qt5 >= 5.5
Patch1: berry-1.0.0_qt5-5.5.patch
BuildRequires: gcc-c++ >= 4.7
BuildRequires: hicolor-icon-theme
BuildRequires: update-desktop-files
BuildRequires: pkgconfig(Qt5Core) >= 5.2.0
BuildRequires: pkgconfig(Qt5Gui)
BuildRequires: pkgconfig(Qt5Multimedia)
BuildRequires: pkgconfig(Qt5Network)
BuildRequires: pkgconfig(Qt5Qml)
BuildRequires: pkgconfig(Qt5Script)
BuildRequires: pkgconfig(exiv2)
Requires: libQt5Multimedia5 >= 5.2.0
Requires: libQt5Positioning5
Requires: libQt5Sensors5
Requires: libQt5Sql5-sqlite
Requires: libqt5-qtgraphicaleffects
Requires: libqt5-qtquickcontrols
%description
Berry is a modern and new image viewer which is focusing on User interface.
Berry is trying to provide an easy to use and touch screen compatible user
interface.
%prep
%setup -q -n %{name}
%patch0 -p1
%patch1 -p1
%build
mkdir build
pushd build
%qmake5 ../Berry.pro
%make_jobs PREFIX=%{_prefix}
popd
%install
pushd build
%qmake5_install
popd
# Mime handlers are created by the shared-mime-info posttrans hook
rm %{buildroot}%{_datadir}/mime/application/%{name}-lock.xml
%files
%license LICENSE
%{_bindir}/%{name}
%{_datadir}/applications/Berry.desktop
%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
%dir %{_datadir}/%{name}
%dir %{_datadir}/%{name}/files
%dir %{_datadir}/%{name}/files/translations
%{_datadir}/%{name}/files/translations/*.qm
%changelog