Blame SPECS/ark.spec

33c792
%if 0%{?fedora}
33c792
%global p7zip 1
33c792
%endif
33c792
33c792
Name:    ark
33c792
Summary: Archive manager
33c792
Version: 4.10.5
33c792
Release: 4%{?dist}
33c792
33c792
License: GPLv2+
33c792
URL:     http://utils.kde.org/projects/ark 
33c792
%global revision %(echo %{version} | cut -d. -f3)
33c792
%if %{revision} >= 50
33c792
%global stable unstable
33c792
%else
33c792
%global stable stable
33c792
%endif
33c792
Source0: http://download.kde.org/%{stable}/%{version}/src/%{name}-%{version}.tar.xz
33c792
33c792
## upstreamable patches
33c792
# libkerfuffle namelink_skip
33c792
Patch50: ark-4.7.80-namelink_skip.patch
33c792
33c792
# https://git.reviewboard.kde.org/r/107635/
33c792
Patch52: ark-4.9.97-r107635.patch
33c792
33c792
# https://git.reviewboard.kde.org/r/107634/
33c792
Patch53: ark-4.9.97-improve_subfolder_autodetection.patch
33c792
33c792
# drop lha/rar/7z, we don't have it in rhel
33c792
Patch54: ark-4.10.5-misc.patch
33c792
33c792
## upstream patches
33c792
33c792
BuildRequires: bzip2-devel
33c792
BuildRequires: desktop-file-utils
33c792
BuildRequires: kdelibs4-devel >= %{version}
33c792
BuildRequires: kde-baseapps-devel >= %{version}
33c792
BuildRequires: pkgconfig(libarchive)
33c792
BuildRequires: pkgconfig(liblzma) 
33c792
BuildRequires: zlib-devel
33c792
# need only for ark unit tests
33c792
#BuildRequires: pkgconfig(QJson) 
33c792
33c792
# when split occured
33c792
Conflicts: kdeutils-common < 6:4.7.80
33c792
33c792
Provides: ark-part = %{version}-%{release}
33c792
33c792
Obsoletes: kdeutils-ark < 6:4.7.80
33c792
Provides:  kdeutils-ark = 6:%{version}-%{release}
33c792
33c792
Requires: %{name}-libs%{?_isa} = %{version}-%{release}
33c792
Requires: kde-runtime%{?_kde4_version: >= %{_kde4_version}}
33c792
%if 0%{?p7zip}
33c792
Requires: p7zip-plugins
33c792
%endif
33c792
33c792
%description
33c792
Ark is a program for managing various archive formats.
33c792
33c792
Archives can be viewed, extracted, created and modified from within Ark.
33c792
The program can handle various formats such as tar, gzip, bzip2, zip,
33c792
rar and lha (if appropriate command-line programs are installed).
33c792
33c792
%package libs
33c792
Summary: Runtime libraries for %{name} 
33c792
# libkerfuffle is BSD, plugins are mix of BSD and GPLv2+
33c792
License: BSD and GPLv2+
33c792
Requires: %{name} = %{version}-%{release}
33c792
Obsoletes: kdeutils-ark-libs < 6:4.7.80
33c792
Provides:  kdeutils-ark-libs = 6:%{version}-%{release}
33c792
%description libs
33c792
%{summary}.
33c792
33c792
33c792
%prep
33c792
%setup -q -n %{name}-%{version}
33c792
33c792
%patch50 -p1 -b .namelink_skip
33c792
%patch52 -p1 -b .r107635
33c792
%patch53 -p1 -b .improve_subfolder_autodetection
33c792
%if 0%{?rhel}
33c792
%patch54 -p1 -b .misc
33c792
%endif
33c792
33c792
%build
33c792
mkdir -p %{_target_platform}
33c792
pushd %{_target_platform}
33c792
%{cmake_kde4} ..
33c792
popd
33c792
33c792
make %{?_smp_mflags} -C %{_target_platform}
33c792
33c792
33c792
%install
33c792
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
33c792
33c792
%find_lang ark --with-kde --without-mo
33c792
33c792
33c792
%check
33c792
desktop-file-validate %{buildroot}%{_kde4_datadir}/applications/kde4/ark.desktop
33c792
33c792
33c792
%post
33c792
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
33c792
33c792
%posttrans
33c792
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
33c792
update-desktop-database -q &> /dev/null ||:
33c792
33c792
%postun
33c792
if [ $1 -eq 0 ] ; then
33c792
touch --no-create %{_kde4_iconsdir}/hicolor &> /dev/null || :
33c792
gtk-update-icon-cache %{_kde4_iconsdir}/hicolor &> /dev/null || :
33c792
update-desktop-database -q &> /dev/null ||:
33c792
fi
33c792
33c792
%files -f ark.lang
33c792
%doc COPYING
33c792
%{_kde4_bindir}/ark
33c792
%{_kde4_appsdir}/ark/
33c792
%{_kde4_datadir}/config.kcfg/ark.kcfg
33c792
%{_kde4_datadir}/kde4/services/ark*.desktop
33c792
%{_kde4_datadir}/kde4/services/ServiceMenus/ark*.desktop
33c792
%{_kde4_datadir}/applications/kde4/ark.desktop
33c792
%{_kde4_iconsdir}/hicolor/*/apps/ark.*
33c792
%{_kde4_libdir}/kde4/arkpart.so
33c792
%{_kde4_libdir}/kde4/libextracthere.so
33c792
%{_mandir}/man1/ark.1*
33c792
33c792
%post libs -p /sbin/ldconfig
33c792
%postun libs -p /sbin/ldconfig
33c792
33c792
%files libs
33c792
%{_kde4_libdir}/libkerfuffle.so.4*
33c792
%{_kde4_libdir}/kde4/kerfuffle_*.so
33c792
%{_kde4_datadir}/kde4/services/kerfuffle*.desktop
33c792
%{_kde4_datadir}/kde4/servicetypes/kerfufflePlugin.desktop
33c792
33c792
33c792
%changelog
33c792
* Mon Feb 10 2014 Than Ngo <than@redhat.com> - 4.10.5-4
33c792
- don't include rar/7z/lha plugins in rhel
33c792
33c792
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 4.10.5-3
33c792
- Mass rebuild 2014-01-24
33c792
33c792
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 4.10.5-2
33c792
- Mass rebuild 2013-12-27
33c792
33c792
* Sun Jun 30 2013 Than Ngo <than@redhat.com> - 4.10.5-1
33c792
- 4.10.5
33c792
33c792
* Sat Jun 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.4-1
33c792
- 4.10.4
33c792
33c792
* Mon May 06 2013 Than Ngo <than@redhat.com> - 4.10.3-1
33c792
- 4.10.3
33c792
33c792
* Wed Apr 24 2013 Than Ngo <than@redhat.com> - 4.10.2-2
33c792
- requires p7zip only in fedora
33c792
33c792
* Sun Mar 31 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.2-1
33c792
- 4.10.2
33c792
33c792
* Sat Mar 02 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.1-1
33c792
- 4.10.1
33c792
33c792
* Fri Feb 01 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.10.0-1
33c792
- 4.10.0
33c792
33c792
* Tue Jan 22 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.98-1
33c792
- 4.9.98
33c792
- respin reviewboard#107634 patch
33c792
33c792
* Thu Jan 17 2013 Tomas Bzatek <tbzatek@redhat.com> - 4.9.97-3
33c792
- Rebuilt for new libarchive
33c792
33c792
* Sat Jan 05 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.97-2
33c792
- Ark needs to know about application/x-source-rpm (#885316)
33c792
- Improve subfolder autodetection (kde review 107634)
33c792
- Don't delete the KPart in the MainWindow destructor (kde review 107635)
33c792
33c792
* Fri Jan 04 2013 Rex Dieter <rdieter@fedoraproject.org> - 4.9.97-1
33c792
- 4.9.97
33c792
33c792
* Thu Dec 20 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.95-1
33c792
- 4.9.95
33c792
33c792
* Tue Dec 04 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.90-1
33c792
- 4.9.90
33c792
33c792
* Mon Dec 03 2012 Than Ngo <than@redhat.com> - 4.9.4-1
33c792
- 4.9.4
33c792
33c792
* Sat Nov 03 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.3-1
33c792
- 4.9.3
33c792
33c792
* Sat Sep 29 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.9.2-1
33c792
- 4.9.2
33c792
33c792
* Mon Sep 03 2012 Than Ngo <than@redhat.com> - 4.9.1-1
33c792
- 4.9.1
33c792
33c792
* Thu Jul 26 2012 Lukas Tinkl <ltinkl@redhat.com> - 4.9.0-1
33c792
- 4.9.0
33c792
33c792
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.8.97-2
33c792
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
33c792
33c792
* Wed Jul 11 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.97-1
33c792
- 4.8.97
33c792
33c792
* Tue Jul 10 2012 Rex Dieter <rdieter@fedoraproject.org> 4.8.95-2
33c792
- update builddeps
33c792
33c792
* Thu Jun 28 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.95-1
33c792
- 4.8.95
33c792
33c792
* Sat Jun 09 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.90-1
33c792
- 4.8.90
33c792
33c792
* Fri Jun 01 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.80-1
33c792
- 4.8.80
33c792
33c792
* Mon Apr 30 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.3-1
33c792
- 4.8.3
33c792
33c792
* Fri Mar 30 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.2-1
33c792
- 4.8.2
33c792
33c792
* Mon Mar 05 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.1-1
33c792
- 4.8.1
33c792
33c792
* Thu Jan 26 2012 Tomas Bzatek <tbzatek@redhat.com> - 4.8.0-3
33c792
- Rebuilt for new libarchive
33c792
33c792
* Tue Jan 24 2012 Jaroslav Reznik <jreznik@redhat.com> - 4.8.0-2
33c792
- respin
33c792
33c792
* Sun Jan 22 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.8.0-1
33c792
- 4.8.0
33c792
33c792
* Wed Jan 04 2012 Rex Dieter <rdieter@fedoraproject.org> - 4.7.97-1
33c792
- 4.7.97
33c792
33c792
* Thu Dec 22 2011 Radek Novacek <rnovacek@redhat.com> - 4.7.95-1
33c792
- 4.7.95
33c792
33c792
* Thu Dec 15 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.90-2
33c792
- %%doc COPYING
33c792
33c792
* Thu Dec 08 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.90-1
33c792
- 4.7.90
33c792
33c792
* Sat Nov 26 2011 Rex Dieter <rdieter@fedoraproject.org> 4.7.80-1
33c792
- first try
33c792