File ark.spec of Package ark

#
# spec file for package ark
#
# Copyright (c) 2015 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:           ark
Version:        16.08.2
Release:        0
Summary:        KDE Archiver Tool
License:        GPL-2.0+
Group:          Productivity/Other
Url:            http://www.kde.org
Source0:        ark-%{version}.tar.xz

BuildRequires:  extra-cmake-modules >= 1.7.0
BuildRequires:  karchive-devel >= 5.2.0
BuildRequires:  kconfig-devel >= 5.2.0
BuildRequires:  kdelibs4support-devel >= 5.2.0
BuildRequires:  kf5-filesystem
BuildRequires:  kpty-devel >= 5.2.0
BuildRequires:  libarchive-devel >= 3.0.0
BuildRequires:  libzip-devel
BuildRequires:  update-desktop-files
BuildRequires:  xz
BuildRequires:  xz-devel
BuildRequires:  zlib-devel
BuildRequires:  pkgconfig(Qt5Core) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Test) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Widgets) >= 5.2.0
BuildRequires:  pkgconfig(Qt5Concurrent) >= 5.2.0
BuildRequires:  pkgconfig(bzip2)
# Recommend the most used compression programs (bnc#872010)
Recommends:     xz
Recommends:     p7zip
Recommends:     unrar
Obsoletes:      ark-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a KDE application to work with compressed archives.

%package -n libkerfuffle16
Summary:        KDE Archiver Tool
Group:          System/Libraries

%description -n libkerfuffle16
This is a KDE application to work with compressed archives.

%prep
%setup -q

%build
  %cmake_kf5 -d build
  %{make_jobs}

%install
  %{kf5_makeinstall} -C build
  %suse_update_desktop_file org.kde.ark System Archiving

%post -n libkerfuffle16 -p /sbin/ldconfig

%postun -n libkerfuffle16 -p /sbin/ldconfig

%files
%defattr(-,root,root)
%doc COPYING
%{_kf5_configdir}/ark.categories
%{_kf5_applicationsdir}/org.kde.ark.desktop
%{_kf5_sharedir}/kxmlgui5/
%{_kf5_bindir}/ark
%{_kf5_configkcfgdir}/
%{_kf5_appstreamdir}/
%{_kf5_iconsdir}/hicolor/*/apps/*
%{_kf5_plugindir}/
%{_kf5_servicesdir}/
%{_kf5_servicetypesdir}/
%dir %{_kf5_htmldir}/en
%dir %{_kf5_htmldir}
%doc %{_kf5_htmldir}/en/ark/
%doc %{_kf5_mandir}/man1/ark.*
%dir %_datadir/mime
%_datadir/mime/packages/

%files -n libkerfuffle16
%defattr(-,root,root)
%doc COPYING
%{_kf5_libdir}/libkerfuffle.so.*

%changelog
openSUSE Build Service is sponsored by