Blame SPECS/ark.spec

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