File ark.spec of Package ark4
#
# 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: 15.04.3
Release: 0
Summary: KDE Archiver Tool
License: GPL-2.0+
Group: Productivity/Other
Url: http://www.kde.org
Source0: ark-%{version}.tar.xz
# PATCH-FIX-UPSTREAM
Patch0: Pass-the-ARCHIVE_EXTRACT_SECURE_SYMLINKS-flag-to-libarchive.patch
# PATCH-FIX-OPENSUSE
Patch1: Enable-Open-With-action-for-read-only-archives-as-well.patch
BuildRequires: fdupes
BuildRequires: libarchive-devel
BuildRequires: libkde4-devel
BuildRequires: libkonq-devel
BuildRequires: libqjson-devel
BuildRequires: libzip-devel
BuildRequires: xz
BuildRequires: xz-devel
BuildRequires: zlib-devel
BuildRequires: pkgconfig(bzip2)
# Recommend the most used compression programs (bnc#872010)
Recommends: xz
Recommends: p7zip
Recommends: unrar
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%{kde4_runtime_requires}
%description
This is a KDE application to work with compressed archives.
%package -n libkerfuffle4
Summary: KDE Archiver Tool
Group: System/Libraries
%description -n libkerfuffle4
This is a KDE application to work with compressed archives.
%package devel
Summary: KDE Archiver Tool
Group: Development/Libraries/C and C++
Requires: libkerfuffle4
%description devel
This is a KDE application to work with compressed archives.
%prep
%setup -q
%autopatch -p1
%build
%cmake_kde4 -d build
%{make_jobs}
%install
%{kde4_makeinstall} -C build
%suse_update_desktop_file ark System Archiving
%fdupes -s %{buildroot}%{_kde4_datadir}/
%{kde_post_install}
%post -n libkerfuffle4 -p /sbin/ldconfig
%postun -n libkerfuffle4 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%dir %{_kde4_datadir}/appdata
%{_kde4_applicationsdir}/ark.desktop
%{_kde4_appsdir}/ark/
%{_kde4_bindir}/ark
%{_kde4_configkcfgdir}/*.kcfg
%{_kde4_datadir}/appdata/ark.appdata.xml
%{_kde4_htmldir}/en/ark/
%{_kde4_iconsdir}/hicolor/*/apps/*
%{_kde4_mandir}/man1/ark.1.gz
%{_kde4_modulesdir}/*.so
%{_kde4_servicesdir}/*.desktop
%{_kde4_servicesdir}/ServiceMenus/*.desktop
%{_kde4_servicetypesdir}/*.desktop
%files -n libkerfuffle4
%defattr(-,root,root)
%doc COPYING
%{_kde4_libdir}/libkerfuffle.so.*
%files devel
%defattr(-,root,root)
%{_kde4_libdir}/libkerfuffle.so
%changelog