diff --git a/testdisk.spec b/testdisk.spec index fd3fab4..d0ca20b 100644 --- a/testdisk.spec +++ b/testdisk.spec @@ -4,7 +4,7 @@ Summary(fr.UTF8): Outil pour vérifier et restaurer des partitions Summary(ru_RU.UTF8): Программа для проверки и восстановления разделов диска Name: testdisk Version: 7.0 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Applications/System Source0: http://www.cgsecurity.org/testdisk-%{version}.tar.bz2 @@ -51,6 +51,15 @@ Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS. PhotoRec is a signature based file recovery utility. It handles more than 440 file formats including JPG, MSOffice, OpenOffice documents. +%package -n qphotorec +Summary: Signature based file carver. Recover lost files +Group: Applications/System + +%description -n qphotorec +QPhotoRec is a Qt version of PhotoRec. It is a signature based file recovery +utility. It handles more than 440 file formats including JPG, MSOffice, +OpenOffice documents. + %prep %setup -q @@ -67,16 +76,16 @@ rm -rf $RPM_BUILD_ROOT %check desktop-file-validate %{buildroot}/%{_datadir}/applications/qphotorec.desktop -%post +%post -n qphotorec /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : -%postun +%postun -n qphotorec if [ $1 -eq 0 ] ; then /bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi -%posttrans +%posttrans -n qphotorec /usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files @@ -84,21 +93,27 @@ fi %doc AUTHORS COPYING ChangeLog NEWS README THANKS %attr(755,root,root) %{_bindir}/fidentify %attr(755,root,root) %{_bindir}/photorec -%attr(755,root,root) %{_bindir}/qphotorec %attr(755,root,root) %{_bindir}/testdisk %{_mandir}/man8/fidentify.8* %{_mandir}/man8/photorec.8* -%{_mandir}/man8/qphotorec.8* %{_mandir}/man8/testdisk.8* %{_mandir}/zh_CN/man8/fidentify.8* %{_mandir}/zh_CN/man8/photorec.8* -%{_mandir}/zh_CN/man8/qphotorec.8* %{_mandir}/zh_CN/man8/testdisk.8* + +%files -n qphotorec +%attr(755,root,root) %{_bindir}/qphotorec +%{_mandir}/man8/qphotorec.8* +%{_mandir}/zh_CN/man8/qphotorec.8* %{_datadir}/applications/qphotorec.desktop %{_datadir}/icons/hicolor/48x48/apps/qphotorec.png %{_datadir}/icons/hicolor/scalable/apps/qphotorec.svg %changelog +* Thu Apr 23 2015 Christophe Grenier - 7.0-2 +- move qphotorec to a separate subpackage +- rebuild for ntfs-3g soname bump + * Sat Apr 18 2015 Christophe Grenier - 7.0-1 - Update to latest version - This version includes some security fixes.