File ark.spec of Package ark
#
# spec file for package ark
#
# Copyright (c) 2012 SUSE LINUX Products 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: 4.8.1
Release: 0
Summary: KDE Archiver Tool
License: GPL-2.0+
Group: Productivity/Other
Url: http://www.kde.org
Source0: ark-%{version}.tar.bz2
Patch0: 4_7_BRANCH.diff
BuildRequires: kdebase4-workspace-devel
BuildRequires: libarchive-devel
BuildRequires: libkonq-devel
BuildRequires: libqjson-devel
BuildRequires: libzip-devel
BuildRequires: oxygen-icon-theme-large
BuildRequires: xz-devel
Provides: kde4-ark = 4.3.0
Obsoletes: kde4-ark < 4.3.0
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 -n ark-%{version}
%patch0
%build
%cmake_kde4 -d build
%make_jobs
%install
cd build
%make_install
for i in {16,22,32,48,64,128}; do
mkdir -p %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps
cp /usr/share/icons/oxygen/"$i"x"$i"/apps/utilities-file-archiver.png %{buildroot}%{_datadir}/icons/hicolor/"$i"x"$i"/apps/
done
%suse_update_desktop_file ark System Archiving
%kde_post_install
%post -n libkerfuffle4 -p /sbin/ldconfig
%postun -n libkerfuffle4 -p /sbin/ldconfig
%files
%defattr(-,root,root)
%doc COPYING
%_kde4_iconsdir/hicolor/*/apps/utilities-file-archiver.*
%_kde4_bindir/ark
%_kde4_modulesdir/*.so
%_kde4_appsdir/ark/
%_kde4_applicationsdir/ark.desktop
%_kde4_htmldir/en/ark/
%_kde4_servicesdir/*.desktop
%_kde4_servicetypesdir/*.desktop
%{_mandir}/man1/ark.1.gz
%_kde4_configkcfgdir/*.kcfg
%_kde4_servicesdir/ServiceMenus/*.desktop
%files -n libkerfuffle4
%defattr(-,root,root)
%doc COPYING
%_kde4_libdir/libkerfuffle.so.*
%files devel
%defattr(-,root,root)
%doc README.coding
%_kde4_libdir/libkerfuffle.so
%changelog