File ImageMosaicWall.spec of Package ImageMosaicWall

#
# spec file for package ImageMosaicWall
#
# 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:           ImageMosaicWall
Version:        0.3+git.a03eed0
Release:        1
Summary:        Photo mosaic generator
License:        GPL-3.0-or-later
Group:          Productivity/Graphics/Other
URL:            https://github.com/scheckmedia/ImageMosaicWall
Source0:        %{name}-%{version}.tar.xz
Patch0:         cmake_module_path_exiv2_fix.patch
BuildRequires:  fdupes
BuildRequires:  cmake
BuildRequires:  extra-cmake-modules
BuildRequires:  pkgconfig
BuildRequires:  gcc-c++
BuildRequires:  libstdc++-devel
BuildRequires:  hicolor-icon-theme
BuildRequires:  libQt5Gui-private-headers-devel
BuildRequires:  libqt5-qttools-devel
BuildRequires:  pkgconfig(Qt5Concurrent)
BuildRequires:  pkgconfig(Qt5Core)
BuildRequires:  pkgconfig(Qt5Gui)
BuildRequires:  pkgconfig(Qt5Widgets)
BuildRequires:  pkgconfig(exiv2)
Recommends:     %{name}-digikam-plugin = %{version}-%{release}
BuildRoot:      %{_tmppath}/%{name}-%{version}-build


%description
 This application allows you to create an image based on a bunch of other images.
 It looks like a mosaic effect.

 Additionally it provides a separate Digikam plugin package also.


%package digikam-plugin
Summary:        Photo mosaic generator plugin for Digikam
Group:          Productivity/Graphics/Other

BuildRequires:  digikam-devel >= 7.0
Requires:       digikam >= 7.0
Requires:       %{name} = %{version}-%{release}


%description digikam-plugin
 This application allows you to create an image based on a bunch of other images.
 It looks like a mosaic effect.

 This is the separate Digikam plugin package.


%prep
%setup -q
%patch0 -p1

%build
%cmake -DENABLE_DPLUGIN=YES -DBUILD_WITH_QT6=NO
%cmake_build


%install
%cmake_install

mkdir -p %{buildroot}%{_datadir}/icons/hicolor/256x256/apps %{buildroot}%{_datadir}/applications
cp assets/imw-logo.png %{buildroot}%{_datadir}/icons/hicolor/256x256/apps/%{name}.png
cp assets/%{name}.desktop %{buildroot}%{_datadir}/applications/

%fdupes %{buildroot}%{_datadir}/


%files
%defattr(-,root,root,-)
%license LICENSE.md
%doc README.md
%{_bindir}/%{name}
%dir %{_datadir}/applications
%{_datadir}/applications/%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.png


%files digikam-plugin
%defattr(-,root,root,-)
%dir %{_libdir}/qt5/plugins/digikam
%dir %{_libdir}/qt5/plugins/digikam/generic
%{_libdir}/qt5/plugins/digikam/generic/*.so


%changelog
* Sat Nov 11 2023 PhobosK <phobosk@fastmail.fm>
- Packaging of git version 0.3 for QT6 support

* Wed Jul 05 2023 PhobosK <phobosk@fastmail.fm>
- Packaging of git version 0.3 for Exiv2 0.28 API support

* Sat Feb 12 2022 PhobosK <phobosk@fastmail.fm>
- Initial packaging of version 0.3
openSUSE Build Service is sponsored by