File kiview.spec of Package kiview-viewer

#
# spec file for package my-first-obs-package
#
# Copyright (c) 2017 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.

# Please submit bugfixes or comments via http://bugs.opensuse.org/


Name:           kiview
Version:        1.1
Release:        1
License:        GPL-3.0
Summary:        Quick preview of files and folder in Dolphin
Url:            https://github.com/Nyre221/Kiview
Group:          Application,KDE,Qt,Utility
Source:         %{name}-master.zip
BuildRequires:  gcc
BuildRequires:  gcc-c++
BuildRequires:  cmake
BuildRequires: kf6-extra-cmake-modules
BuildRequires: qt6-webengine
BuildRequires: kf6-kirigami-devel
BuildRequires: qt6-declarative-devel
BuildRequires: kf6-ki18n-devel
BuildRequires: kf6-kcoreaddons-devel
BuildRequires: qqc2-desktop-style-devel
BuildRequires: qt6-quickcontrols2-devel
BuildRequires: qt6-core-devel
BuildRequires: qt6-webenginequick-devel
BuildRequires: unzip


Requires: glibc
Requires: qt6-webengine
Requires: kf6-kirigami
Requires: kf6-ki18n
Requires: kf6-kcoreaddons
Requires: qqc2-desktop-style
Requires: gstreamer-plugins-libav
Requires: gstreamer-plugin-openh264
Requires: wl-clipboard
Requires: xclip


BuildRoot: %{_tmppath}/%{name}-%{version}-build

%description
Kiview gives the user the ability to quickly preview different file types without the need to launch the default application.

Supported file types:
.txt,.sh,.pdf,.doc,.docx,.odt,.ods,.xlsx,.xls,.csv,.odp,.ppt,.pptx,.png,.jpg,.jpeg,.kra,.svgz,.svg,.mp4,.mp3,.webm,.zip,.gz,.xz,.rar

Known Issues:
Currently due to the way it integrates with dolphin, the last item copied to the clipboard is modified and then restored.
This isn't a problem if it's just text, but unfortunately it can't restore the contents if the last item copied was a folder or file.



%prep
%setup -q -n %{name}-master

%build
export CFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
export CXXFLAGS="$RPM_OPT_FLAGS -DNDEBUG"
cmake -DCMAKE_INSTALL_PREFIX=/usr .
make %{?jobs:-j%jobs}


%install
make install DESTDIR="$RPM_BUILD_ROOT"
%find_lang %{name}
%check


%files -f %{name}.lang
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_bindir}/*


/usr/share/applications/io.github.nyre221.kiview.desktop
/usr/share/icons/hicolor/128x128/apps/io.github.nyre221.kiview.svg
/usr/share/metainfo/io.github.nyre221.kiview.appdata.xml

%changelog

openSUSE Build Service is sponsored by