Name: ark Summary: Archive manager Version: 4.7.97 Release: 1%{?dist} License: GPLv2+ URL: http://utils.kde.org/projects/ark Source0: ftp://ftp.kde.org/pub/kde/unstable/%{version}/src/%{name}-%{version}.tar.bz2 ## upstreamable patches # libkerfuffle namelink_skip Patch50: ark-4.7.80-namelink_skip.patch BuildRequires: desktop-file-utils BuildRequires: kdelibs4-devel >= %{version} BuildRequires: kdebase4-devel >= %{version} BuildRequires: libzip-devel BuildRequires: pkgconfig(libarchive) BuildRequires: pkgconfig(liblzma) # need only for ark unit tests #BuildRequires: pkgconfig(QJson) # when split occured Conflicts: kdeutils-common < 6:4.7.80 Provides: ark-part = %{version}-%{release} Obsoletes: kdeutils-ark < 6:4.7.80 Provides: kdeutils-ark = 6:%{version}-%{release} Requires: %{name}-libs%{?_isa} = %{version}-%{release} Requires: kdebase-runtime%{?_kde4_version: >= %{_kde4_version}} Requires: p7zip-plugins %description Ark is a program for managing various archive formats. Archives can be viewed, extracted, created and modified from within Ark. The program can handle various formats such as tar, gzip, bzip2, zip, rar and lha (if appropriate command-line programs are installed). %package libs Summary: Runtime libraries for %{name} # libkerfuffle is BSD, plugins are mix of BSD and GPLv2+ License: BSD and GPLv2+ Requires: %{name} = %{version}-%{release} Obsoletes: kdeutils-ark-libs < 6:4.7.80 Provides: kdeutils-ark-libs = 6:%{version}-%{release} %description libs %{summary}. %prep %setup -q -n %{name}-%{version} %patch50 -p1 -b .namelink_skip %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake_kde4} .. popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} %find_lang ark --with-kde --without-mo %check desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/ark.desktop %posttrans update-desktop-database -q &> /dev/null ||: %postun if [ $1 -eq 0 ] ; then update-desktop-database -q &> /dev/null ||: fi %files -f ark.lang %doc COPYING %{_kde4_bindir}/ark %{_kde4_appsdir}/ark/ %{_kde4_datadir}/config.kcfg/ark.kcfg %{_kde4_datadir}/kde4/services/ark*.desktop %{_kde4_datadir}/kde4/services/ServiceMenus/ark*.desktop %{_kde4_datadir}/applications/kde4/ark.desktop %{_kde4_libdir}/kde4/arkpart.so %{_kde4_libdir}/kde4/libextracthere.so %{_mandir}/man1/ark.1* %post libs -p /sbin/ldconfig %postun libs -p /sbin/ldconfig %files libs %{_kde4_libdir}/libkerfuffle.so.4* %{_kde4_libdir}/kde4/kerfuffle_*.so %{_kde4_datadir}/kde4/services/kerfuffle*.desktop %{_kde4_datadir}/kde4/servicetypes/kerfufflePlugin.desktop %changelog * Wed Jan 04 2012 Rex Dieter - 4.7.97-1 - 4.7.97 * Thu Dec 22 2011 Radek Novacek - 4.7.95-1 - 4.7.95 * Thu Dec 15 2011 Rex Dieter 4.7.90-2 - %%doc COPYING * Thu Dec 08 2011 Rex Dieter 4.7.90-1 - 4.7.90 * Sat Nov 26 2011 Rex Dieter 4.7.80-1 - first try