File maui-pix.spec of Package maui-pix

# spec file for maui-pix

%define exiv2_version 0.27.6

Name:           maui-pix
Version:        4.0.2
Release:        0
License:        BSD-3-Clause AND GPL-3.0-or-later AND LGPL-2.0-or-later
Summary:        Image gallery and viewer with basic editing features
URL:            https://mauikit.org
Source:         https://invent.kde.org/maui/maui-pix/-/archive/v%{version}/maui-pix-v%{version}.tar.gz
Group:          Productivity/Graphics/Viewers

%if 0%{?sle_version} == 150400 && 0%{?is_opensuse} 
ExcludeArch: x86_64
%endif

%if 0%{?sle_version} == 150500 && 0%{?is_opensuse} 
ExcludeArch: x86_64
%endif

BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  fdupes
BuildRequires:  AppStream

BuildRequires:  cmake(Qt6Core)
BuildRequires:  cmake(Qt6Qml)
BuildRequires:  cmake(Qt6Quick)
BuildRequires:  cmake(Qt6Positioning)
BuildRequires:  cmake(Qt6Widgets)
BuildRequires:  cmake(Qt6Concurrent)

BuildRequires:  cmake(KF6I18n)
BuildRequires:  cmake(KF6CoreAddons)
BuildRequires:  cmake(KF6KIO)

BuildRequires:  pkgconfig(exiv2)

BuildRequires:  cmake(MauiKit) = %{version}
BuildRequires:  cmake(MauiKitFileBrowsing) = %{version}
BuildRequires:  cmake(MauiKitImageTools) = %{version}

Requires:       maui-pix-lang = %{version}

Requires:       mauikit = %{version}
Requires:       mauikit-filebrowsing = %{version}
Requires:       mauikit-imagetools = %{version}

Requires:       qt6qmlimport(QtLocation.6)

%if 0%{?sle_version} == 150400 && 0%{?is_opensuse} 
ExcludeArch: x86_64
%endif

%description
The Pix image gallery is ideal for browsing and displaying a collection of images. Pix integrates with the look and feel of Plasma and supports many image formats for viewing single images or images in a folder. It also displays the metadata of the image files.

Pix also has basic editing capabilities and supports organizing images by “tags.”

%lang_package

%prep
%autosetup -p1 -n maui-pix-v%{version}

%build
%cmake_kf6
%kf6_build

%install
%kf6_install
%find_lang %{name} --with-man --all-name

%files
%license LICENSES/*
%doc README.md
%{_bindir}/*
%{_datadir}/applications/*
%{_datadir}/icons/*
%{_datadir}/metainfo/*

%files lang -f %{name}.lang
%{_datadir}/locale/*

%changelog
openSUSE Build Service is sponsored by