File koko.spec of Package koko-22.02-3.1

# spec file for koko
#
# Copyright (c) 2021 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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.
%define _soname libkokocommon
%define _sover  0.0.1
%define __sover 0_0_1

Name:           koko 
Version:        22.02
Release:        3.1
License:        LGPL-2.1 OR LGPL-3.0
Summary:        Kirigami based gallery application
Url:            https://userbase.kde.org/Koko
Source0:        koko-%{version}.tar.xz
Source1:        cities1000.zip
Source2:        admin1CodesASCII.txt
Source3:        admin2Codes.txt
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires:  fdupes
BuildRequires:  AppStream
BuildRequires:  extra-cmake-modules
BuildRequires:  hicolor-icon-theme
BuildRequires:  update-desktop-files
BuildRequires:  cmake(Qt5Qml)
BuildRequires:  cmake(Qt5Quick) 
BuildRequires:  cmake(Qt5Widgets) 
BuildRequires:  cmake(Qt5Test) 
BuildRequires:  cmake(Qt5Sql) 
BuildRequires:  cmake(Qt5Positioning)
BuildRequires:  cmake(Qt5Svg)
BuildRequires:  cmake(KF5I18n) 
BuildRequires:  cmake(KF5Declarative) 
BuildRequires:  cmake(KF5Config) 
BuildRequires:  cmake(KF5KIO) 
BuildRequires:  cmake(KF5GuiAddons) 
BuildRequires:  cmake(KF5CoreAddons) 
BuildRequires:  cmake(KF5Notifications)
BuildRequires:  cmake(KQuickImageEditor)
BuildRequires:  cmake(KF5FileMetaData)
BuildRequires:  cmake(KF5DBusAddons)
BuildRequires:  cmake(exiv2)
Requires:       kirigami2
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Koko is a simple image gallery application that
is designed to view, edit and share the images. 

%package -n %{_soname}%{__sover}
Summary:        Kirigami based gallery application - shared objects
%description -n %{_soname}%{__sover}
Koko is a simple image gallery application that
is designed to view, edit and share the images. 

%package devel
Summary:        Kirigami based gallery application - development objects
%description devel
Koko is a simple image gallery application that
is designed to view, edit and share the images. 

%prep
%setup -q -n koko-%{version}
cp %{SOURCE1} %{SOURCE2} %{SOURCE3} src/

%build
%cmake_kf5 -d build
%cmake_build

%install
%kf5_makeinstall -C build
%kf5_post_install
%fdupes %{buildroot}%{_prefix}

%ldconfig_scriptlets -n %{_soname}%{__sover}

%files -n %{_soname}%{__sover}
%{_kf5_libdir}/%{_soname}.so.%{_sover}

%files devel
%{_kf5_libdir}/%{_soname}.so

%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSES/*
%{_kf5_bindir}/%{name}
%{_kf5_iconsdir}/hicolor/*/*/*.png
%{_kf5_applicationsdir}/*.desktop
%{_kf5_appstreamdir}/*.appdata.xml
%{_kf5_qmldir}/org/kde/koko/
%{_kf5_notifydir}/*.notifyrc
%{_kf5_sharedir}/koko/

%changelog
openSUSE Build Service is sponsored by