testdisk-vl.spec 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101
  1. %define ver_progsreiserfs 0.3.1-rc8
  2. %define ver_ntfsprogs 2.0.0
  3. Summary: Tool to check and undelete partition and files
  4. Summary(ja): パーティションおよびファイルのチェックと復活を行うツール
  5. Name: testdisk
  6. Version: 6.11
  7. Release: 2%{?_dist_release}
  8. License: GPL
  9. Group: Applications/System
  10. Source0: http://www.cgsecurity.org/%{name}-%{version}.tar.bz2
  11. Source1: progsreiserfs-%ver_progsreiserfs.tar.gz
  12. Source10: http://www.cgsecurity.org/%{name}-doc-%{version}.tar.bz2
  13. Patch0: progsreiserfs-journal.patch
  14. Patch1: http://www.cgsecurity.org/photorec_611_exif_bound_checking_v2.patch
  15. URL: http://www.cgsecurity.org/wiki/TestDisk
  16. BuildRequires: ncurses-devel >= 5.2
  17. BuildRequires: e2fsprogs-devel
  18. BuildRequires: libjpeg-devel
  19. BuildRequires: ntfsprogs-devel
  20. BuildRequires: libewf-devel
  21. BuildRequires: zlib-devel
  22. BuildRequires: openssl-devel
  23. BuildRequires: libuuid-devel
  24. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
  25. %description
  26. Tool to check and undelete partition. Works with FAT12, FAT16, FAT32,
  27. NTFS, EXT2, EXT3, BeFS, CramFS, HFS, JFS, Linux Raid, Linux Swap,
  28. LVM, LVM2, NSS, ReiserFS, UFS, XFS
  29. %prep
  30. %setup -q -a 1 -a 10 -D
  31. %patch0
  32. %patch1 -p1 -b .photorec
  33. %build
  34. pushd progsreiserfs-%ver_progsreiserfs
  35. %configure --disable-Werror
  36. %__make
  37. popd
  38. %configure --with-reiserfs-lib=${RPM_BUILD_DIR}/%{name}-%{version}/progsreiserfs-%ver_progsreiserfs/libreiserfs/.libs/ --with-reiserfs-includes=${RPM_BUILD_DIR}/%{name}-%{version}/progsreiserfs-%ver_progsreiserfs/include/ --with-dal-lib=${RPM_BUILD_DIR}/%{name}-%{version}/progsreiserfs-%ver_progsreiserfs/libdal/.libs/
  39. %__make %{?_smp_mflags}
  40. %install
  41. rm -rf $RPM_BUILD_ROOT
  42. make DESTDIR="$RPM_BUILD_ROOT" install
  43. %clean
  44. rm -rf $RPM_BUILD_ROOT
  45. %files
  46. %defattr(644,root,root,755)
  47. %doc AUTHORS COPYING ChangeLog NEWS README THANKS doc
  48. %{_mandir}/man1/testdisk.1*
  49. %{_mandir}/man1/photorec.1*
  50. %attr(755,root,root) %{_sbindir}/testdisk
  51. %attr(755,root,root) %{_sbindir}/photorec
  52. %changelog
  53. * Sat Jan 29 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.11-2
  54. - rebuild with openssl-1.0.0c
  55. * Tue Dec 07 2010 Yoji TOYODA <bsyamato@sea.plala.or.jp> 6.11-1
  56. - new upstream release
  57. - add Source10 (testdisk-doc-6.11.tar.bz2)
  58. - add Patch1 (photorec_611_exif_bound_checking_v2.patch)
  59. - add BuildRequires: libewf-devel, zlib-devel, openssl-devel, libuuid-devel
  60. * Sun Oct 12 2008 Shu KONNO <owa@bg.wakwak.com> 6.10-1vl5
  61. - new upstream release
  62. - applied new versioning policy, spec in utf-8
  63. * Sat Jul 21 2007 Daisuke SUZUKI <daisuke@linux.or.jp> 6.7-0vl1
  64. - initial build for Vine Linux.
  65. * Sun Jan 4 2004 Christophe Grenier <grenier@cgsecurity.org> 5.0
  66. - 5.0
  67. * Wed Oct 1 2003 Christophe Grenier <grenier@cgsecurity.org> 4.5
  68. - 4.5
  69. * Wed Apr 23 2003 Christophe Grenier <grenier@cgsecurity.org> 4.4-2
  70. * Sat Mar 29 2003 Pascal Terjan <CMoi@tuxfamily.org> 4.4-1mdk
  71. - 4.4
  72. * Fri Dec 27 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.2-2mdk
  73. - rebuild for rpm and glibc
  74. * Sun Oct 06 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.2-1mdk
  75. - 4.2
  76. * Mon Sep 02 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.1-1mdk
  77. - By Pascal Terjan <pascal.terjan@free.fr>
  78. - first mdk release, adapted from PLD.
  79. - gz to bz2 compression.
  80. - fix %%tmppath
  81. - %%make instead %%{__make}