2016-01-24 10:45:15 +01:00
|
|
|
Summary: Tool to check and undelete partition, PhotoRec recovers lost files
|
|
|
|
Summary(pl.UTF8): Narzędzie sprawdzające i odzyskujące partycje
|
|
|
|
Summary(fr.UTF8): Outil pour vérifier et restaurer des partitions
|
|
|
|
Summary(ru_RU.UTF8): Программа для проверки и восстановления разделов диска
|
|
|
|
Name: testdisk
|
2022-04-06 13:29:33 +02:00
|
|
|
Version: {{{ git_dir_version }}}
|
2016-01-24 10:45:15 +01:00
|
|
|
Release: 0%{?dist}
|
|
|
|
License: GPLv2+
|
|
|
|
Group: Applications/System
|
2022-04-08 16:17:43 +02:00
|
|
|
Source0: {{{ git_dir_pack name=testdisk }}}
|
2017-12-02 18:45:34 +01:00
|
|
|
URL: https://www.cgsecurity.org/wiki/TestDisk
|
2022-04-06 13:29:33 +02:00
|
|
|
VCS: {{{ git_dir_vcs }}}
|
2016-01-24 10:45:15 +01:00
|
|
|
BuildRequires: libtool autoconf automake
|
2021-01-06 19:22:57 +01:00
|
|
|
BuildRequires: make
|
2016-01-24 10:45:15 +01:00
|
|
|
BuildRequires: desktop-file-utils
|
|
|
|
BuildRequires: e2fsprogs-devel
|
2020-05-01 15:57:13 +02:00
|
|
|
%if 0%{?rhel} < 8
|
2016-01-24 10:45:15 +01:00
|
|
|
BuildRequires: libewf-devel
|
2020-05-01 15:57:13 +02:00
|
|
|
%endif
|
2016-01-24 10:45:15 +01:00
|
|
|
BuildRequires: libjpeg-devel
|
|
|
|
BuildRequires: ncurses-devel >= 5.2
|
|
|
|
BuildRequires: ntfs-3g-devel
|
2016-04-11 18:34:27 +02:00
|
|
|
BuildRequires: zlib-devel
|
2016-04-14 16:00:14 +02:00
|
|
|
%if 0%{?rhel} != 5
|
2016-04-11 18:34:27 +02:00
|
|
|
BuildRequires: libuuid-devel
|
2022-04-06 13:29:33 +02:00
|
|
|
BuildRequires: qt5-linguist
|
2016-02-25 15:29:44 +01:00
|
|
|
BuildRequires: qt5-qtbase-devel
|
2016-04-11 18:34:27 +02:00
|
|
|
%endif
|
2016-01-24 10:45:15 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
|
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
|
|
|
|
|
|
|
|
%description
|
|
|
|
Tool to check and undelete partition. Works with FAT12, FAT16, FAT32,
|
|
|
|
NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS, 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.
|
|
|
|
|
|
|
|
%description -l pl.UTF8
|
|
|
|
Narzędzie sprawdzające i odzyskujące partycje. Pracuje z partycjami:
|
|
|
|
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS,
|
|
|
|
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.
|
|
|
|
|
|
|
|
%description -l fr.UTF8
|
|
|
|
TestDisk vérifie et récupère les partitions. Fonctionne avec
|
|
|
|
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS,
|
|
|
|
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
|
|
|
|
PhotoRec utilise un mécanisme de signature pour récupérer des fichiers
|
|
|
|
perdus. Il reconnait plus de 440 formats de fichiers dont les JPEG, les
|
|
|
|
documents MSOffice ou OpenOffice.
|
|
|
|
|
|
|
|
%description -l ru_RU.UTF8
|
|
|
|
Программа для проверки и восстановления разделов диска.
|
|
|
|
Поддерживает следующие типы разделов:
|
|
|
|
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS,
|
|
|
|
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.
|
|
|
|
|
2016-04-14 16:00:14 +02:00
|
|
|
%if 0%{?rhel} != 5
|
2016-01-24 10:45:15 +01:00
|
|
|
%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.
|
|
|
|
|
2016-04-11 18:34:27 +02:00
|
|
|
%endif
|
|
|
|
|
2016-01-24 10:45:15 +01:00
|
|
|
%prep
|
2022-04-06 13:29:33 +02:00
|
|
|
{{{ git_dir_setup_macro }}}
|
2016-01-24 10:45:15 +01:00
|
|
|
|
|
|
|
%build
|
|
|
|
autoreconf -vif -I config -W all
|
2016-04-14 16:00:14 +02:00
|
|
|
%if 0%{?rhel} == 5
|
2016-04-11 18:34:27 +02:00
|
|
|
%configure
|
|
|
|
%else
|
2016-01-24 10:45:15 +01:00
|
|
|
%configure --docdir=%{_pkgdocdir}
|
2016-04-11 18:34:27 +02:00
|
|
|
%endif
|
2016-01-24 10:45:15 +01:00
|
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
|
|
rm -rf %{buildroot}
|
|
|
|
make DESTDIR="%{buildroot}" install
|
|
|
|
|
2016-04-14 16:00:14 +02:00
|
|
|
%if 0%{?rhel} != 5
|
2016-01-24 10:45:15 +01:00
|
|
|
%check
|
|
|
|
desktop-file-validate %{buildroot}/%{_datadir}/applications/qphotorec.desktop
|
|
|
|
|
|
|
|
%post -n qphotorec
|
|
|
|
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
|
|
|
%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 -n qphotorec
|
|
|
|
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
|
|
|
2016-04-11 18:34:27 +02:00
|
|
|
%endif
|
|
|
|
|
2016-01-24 10:45:15 +01:00
|
|
|
%files
|
2016-04-14 16:00:14 +02:00
|
|
|
%if 0%{?rhel} == 5
|
2016-04-11 18:34:27 +02:00
|
|
|
%doc /usr/share/doc/testdisk/AUTHORS
|
|
|
|
%doc /usr/share/doc/testdisk/ChangeLog
|
|
|
|
%doc /usr/share/doc/testdisk/NEWS
|
|
|
|
%doc /usr/share/doc/testdisk/README.md
|
|
|
|
%doc /usr/share/doc/testdisk/THANKS
|
|
|
|
%doc /usr/share/doc/testdisk/documentation.html
|
|
|
|
%else
|
2016-01-24 10:45:15 +01:00
|
|
|
%license COPYING
|
2016-02-25 15:47:40 +01:00
|
|
|
%doc AUTHORS ChangeLog NEWS README.md THANKS
|
2016-01-24 10:45:15 +01:00
|
|
|
%doc documentation.html
|
2016-04-11 18:34:27 +02:00
|
|
|
%endif
|
2016-01-24 10:45:15 +01:00
|
|
|
%attr(755,root,root) %{_bindir}/fidentify
|
|
|
|
%attr(755,root,root) %{_bindir}/photorec
|
|
|
|
%attr(755,root,root) %{_bindir}/testdisk
|
|
|
|
%{_mandir}/man8/fidentify.8*
|
|
|
|
%{_mandir}/man8/photorec.8*
|
|
|
|
%{_mandir}/man8/testdisk.8*
|
|
|
|
%{_mandir}/zh_CN/man8/fidentify.8*
|
|
|
|
%{_mandir}/zh_CN/man8/photorec.8*
|
|
|
|
%{_mandir}/zh_CN/man8/testdisk.8*
|
|
|
|
|
2016-04-14 16:00:14 +02:00
|
|
|
%if 0%{?rhel} != 5
|
2016-01-24 10:45:15 +01:00
|
|
|
%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
|
2016-04-11 18:34:27 +02:00
|
|
|
%endif
|
2016-01-24 10:45:15 +01:00
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sun Jan 24 2016 Christophe Grenier <grenier@cgsecurity.org> 7.1-0
|
|
|
|
- spec file for fedora copr integration
|