testdisk/testdisk.spec

112 lines
3.3 KiB
RPMSpec
Raw Normal View History

2012-08-23 12:49:34 -04:00
%define ver_e2fsprogs 1.42
2012-02-01 14:51:15 +04:00
%define ver_progsreiserfs 0.3.1-rc8
#define ver_ntfsprogs 2.0.0
2012-02-01 14:51:15 +04:00
Summary: Tool to check and undelete partition
Name: testdisk
2013-08-28 12:04:10 +04:00
Version: 6.14
2014-06-27 17:12:04 +04:00
Release: 3
2012-02-01 14:51:15 +04:00
License: GPLv2+
Group: System/Kernel and hardware
Source0: http://www.cgsecurity.org/%{name}-%{version}.tar.bz2
Source1: progsreiserfs-%ver_progsreiserfs.tar.bz2
Patch0: progsreiserfs-journal.patch
# Upstream patch
Patch1: photorec_611_exif_bound_checking_v2.patch
URL: http://www.cgsecurity.org/wiki/TestDisk
2012-08-23 12:49:34 -04:00
BuildRequires: pkgconfig(ncurses) >= 5.2
BuildRequires: pkgconfig(ext2fs) >= %ver_e2fsprogs
BuildRequires: pkgconfig(libntfs-3g)
2012-02-01 14:51:15 +04:00
BuildRequires: jpeg-devel
2012-08-23 12:49:34 -04:00
BuildRequires: pkgconfig(uuid)
2012-02-01 14:51:15 +04:00
%package -n photorec
Summary: Data recovery software
Group: System/Kernel and hardware
2012-02-01 17:59:19 +04:00
Requires: %{name} = %{version}
2012-02-01 14:51:15 +04:00
%description
Tool to check and undelete partition. Works with the following
filesystems:
* BeFS ( BeOS )
* BSD disklabel ( FreeBSD/OpenBSD/NetBSD )
* CramFS, Compressed File System
* DOS/Windows FAT12, FAT16 and FAT32
* HFS and HFS+, Hierarchical File System
* JFS, IBM's Journaled File System
* Linux Ext2 and Ext3
* Linux Raid
o RAID 1: mirroring
o RAID 4: striped array with parity device
o RAID 5: striped array with distributed parity information
o RAID 6: striped array with distributed dual redundancy information
* Linux Swap (versions 1 and 2)
* LVM and LVM2, Linux Logical Volume Manager
* Mac partition map
* Novell Storage Services NSS
* NTFS ( Windows NT/2K/XP/2003/Vista )
* ReiserFS 3.5, 3.6 and 4
* Sun Solaris i386 disklabel
* Unix File System UFS and UFS2 (Sun/BSD/...)
* XFS, SGI's Journaled File System
%description -n photorec
PhotoRec is file data recovery software designed to recover lost files
including video, documents and archives from Hard Disks and CDRom and lost
pictures (thus, its 'Photo Recovery' name) from digital camera memory.
PhotoRec ignores the filesystem and goes after the underlying data, so it
will still work even if your media's filesystem has been severely damaged
or re-formatted.
2012-02-01 17:59:19 +04:00
%package -n fidentify
Summary: Data recovery software
Group: System/Kernel and hardware
Requires: %{name} = %{version}
%description -n fidentify
Recover lost files from harddisk, digital camera and cdrom fidentify the file
type, the "extension", by using thr same database than PhotoRec.
2012-02-01 17:59:19 +04:00
2012-02-01 14:51:15 +04:00
%prep
%setup -q -a 1 -D -n %{name}-%{version}
%patch0
2012-02-01 17:59:19 +04:00
#%patch1 -p1 -b .exiv2
2012-02-01 14:51:15 +04:00
%build
(
cd progsreiserfs-%ver_progsreiserfs
%configure2_5x --disable-Werror
%make
)
%configure2_5x --with-reiserfs-lib=`pwd`/progsreiserfs-%ver_progsreiserfs/libreiserfs/.libs/ --with-reiserfs-includes=`pwd`/progsreiserfs-%ver_progsreiserfs/include/
%make
%install
%makeinstall_std
2012-08-20 14:10:35 -04:00
rm -rf %{buildroot}/%_docdir
2012-02-01 14:51:15 +04:00
%files
%defattr(644,root,root,755)
2013-08-28 12:04:10 +04:00
%doc AUTHORS COPYING ChangeLog INFO INSTALL NEWS README THANKS
# doc/*.html
2012-02-01 17:59:19 +04:00
%attr(755,root,root) %{_bindir}/testdisk
%{_mandir}/man8/testdisk*
2012-02-01 14:51:15 +04:00
%files -n photorec
%defattr(644,root,root,755)
2012-02-01 17:59:19 +04:00
%doc AUTHORS ChangeLog INFO INSTALL NEWS README THANKS
%attr(755,root,root) %{_bindir}/photorec
%{_mandir}/man8/photorec*
2012-02-01 14:51:15 +04:00
2012-02-01 17:59:19 +04:00
%files -n fidentify
%defattr(644,root,root,755)
%doc AUTHORS ChangeLog INFO INSTALL NEWS README THANKS
%attr(755,root,root) %{_bindir}/fidentify
%{_mandir}/man8/fidentify*
2012-02-01 14:51:15 +04:00