testdisk/linux/testdisk.spec.in

151 lines
5.3 KiB
RPMSpec
Raw Normal View History

2007-10-29 22:38:52 +01:00
%define ver_progsreiserfs 0.3.1-rc8
2011-05-11 21:15:27 +02:00
#% define is_wip 1
%{?is_wip:%define ver_wip -WIP}
2007-10-29 22:38:52 +01:00
Summary: TestDisk checks and undeletes partitions, PhotoRec recovers lost files
2007-10-29 22:38:52 +01:00
Summary(pl.UTF8): Narzędzie sprawdzające i odzyskujące partycje
Summary(fr.UTF8): Outil pour vérifier et restaurer des partitions
2007-10-29 22:38:52 +01:00
Summary(ru_RU.UTF8): Программа для проверки и восстановления разделов диска
Name: @PACKAGE@
Version: @VERSION@
Release: 1%{?dist}
2007-10-29 22:38:52 +01:00
License: GPLv2+
Group: Applications/System
Source0: http://www.cgsecurity.org/testdisk-%{version}%{?ver_wip}.tar.bz2
Source1: progsreiserfs-%ver_progsreiserfs.tar.gz
2007-10-29 22:38:52 +01:00
Patch0: progsreiserfs-journal.patch
Patch1: progsreiserfs-file-read.patch
2007-10-29 22:38:52 +01:00
URL: http://www.cgsecurity.org/wiki/TestDisk
BuildRequires: e2fsprogs-devel
BuildRequires: libewf-devel
2007-10-29 22:38:52 +01:00
BuildRequires: libjpeg-devel
BuildRequires: libuuid-devel
BuildRequires: ncurses-devel >= 5.2
BuildRequires: ntfs-3g-devel
BuildRequires: zlib-devel
2014-11-02 15:51:08 +01:00
BuildRequires: qt-devel
BuildRequires: desktop-file-utils
2007-10-29 22:38:52 +01:00
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
2014-11-02 15:51:08 +01:00
Obsoletes: testdisk-doc < 6.12
2014-10-12 16:51:07 +02:00
%{!?_pkgdocdir: %global _pkgdocdir %{_docdir}/%{name}-%{version}}
2007-10-29 22:38:52 +01:00
%description
Tool to check and undelete partition. Works with FAT12, FAT16, FAT32,
2011-11-22 08:28:08 +01:00
NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS, Linux Raid, Linux
2013-10-20 12:26:45 +02:00
Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
PhotoRec is a signature based file recovery utility. It handles more than
2013-07-30 14:06:37 +02:00
440 file formats including JPG, MSOffice, OpenOffice documents.
2007-10-29 22:38:52 +01:00
%description -l pl.UTF8
Narzędzie sprawdzające i odzyskujące partycje. Pracuje z partycjami:
2011-11-22 08:28:08 +01:00
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS,
2013-10-20 12:26:45 +02:00
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
PhotoRec is a signature based file recovery utility. It handles more than
2013-07-30 14:06:37 +02:00
440 file formats including JPG, MSOffice, OpenOffice documents.
2007-10-29 22:38:52 +01:00
%description -l fr.UTF8
TestDisk vérifie et récupère les partitions. Fonctionne avec
2011-11-22 08:28:08 +01:00
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS,
2013-10-20 12:26:45 +02:00
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
PhotoRec utilise un mécanisme de signature pour récupérer des fichiers perdus.
2013-07-30 14:06:37 +02:00
Il reconnait plus de 440 de formats de fichiers dont les JPEG,
les documents MSOffice ou OpenOffice.
2007-10-29 22:38:52 +01:00
%description -l ru_RU.UTF8
Программа для проверки и восстановления разделов диска.
Поддерживает следующие типы разделов:
2011-11-22 08:28:08 +01:00
FAT12, FAT16, FAT32, NTFS, ext2, ext3, ext4, btrfs, BeFS, CramFS, HFS, JFS,
2013-10-20 12:26:45 +02:00
Linux Raid, Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS.
PhotoRec is a signature based file recovery utility. It handles more than
2013-07-30 14:06:37 +02:00
440 file formats including JPG, MSOffice, OpenOffice documents.
2007-10-29 22:38:52 +01:00
%prep
%setup -q -n %{name}-%{version}%{?ver_wip}
%setup -q -a 1 -D -n %{name}-%{version}%{?ver_wip}
2007-10-29 22:38:52 +01:00
%patch0
%patch1
2007-10-29 22:38:52 +01:00
%build
(
cd progsreiserfs-%ver_progsreiserfs
%configure --disable-Werror
make
)
%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/ \
2014-10-12 16:51:07 +02:00
--with-dal-lib=${RPM_BUILD_DIR}/%{name}-%{version}/progsreiserfs-%ver_progsreiserfs/libdal/.libs/ \
--docdir=%{_pkgdocdir}
make %{?_smp_mflags}
2007-10-29 22:38:52 +01:00
%install
rm -rf $RPM_BUILD_ROOT
make DESTDIR="$RPM_BUILD_ROOT" install
%clean
rm -rf $RPM_BUILD_ROOT
2014-11-02 15:51:08 +01:00
%check
desktop-file-validate %{buildroot}/%{_datadir}/applications/qphotorec.desktop
%post
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
%postun
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
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
2007-10-29 22:38:52 +01:00
%files
%defattr(644,root,root,755)
%doc AUTHORS COPYING ChangeLog NEWS README THANKS
%{_mandir}/man8/fidentify.8*
%{_mandir}/man8/photorec.8*
2014-11-02 15:51:08 +01:00
%{_mandir}/man8/qphotorec.8*
%{_mandir}/man8/testdisk.8*
2014-10-12 16:51:07 +02:00
%{_mandir}/zh_CN/man8/fidentify.8*
%{_mandir}/zh_CN/man8/photorec.8*
2014-11-02 15:51:08 +01:00
%{_mandir}/zh_CN/man8/qphotorec.8*
2014-10-12 16:51:07 +02:00
%{_mandir}/zh_CN/man8/testdisk.8*
2014-11-02 15:51:08 +01:00
%{_datadir}/applications/qphotorec.desktop
%{_datadir}/icons/hicolor/48x48/apps/qphotorec.png
%{_datadir}/icons/hicolor/scalable/apps/qphotorec.svg
%attr(755,root,root) %{_bindir}/fidentify
%attr(755,root,root) %{_bindir}/photorec
2014-11-02 15:51:08 +01:00
%attr(755,root,root) %{_bindir}/qphotorec
%attr(755,root,root) %{_bindir}/testdisk
2007-10-29 22:38:52 +01:00
%changelog
2011-05-11 21:15:27 +02:00
* Wed May 11 2011 Christophe Grenier <grenier@cgsecurity.org> 6.12-0
- 6.12
2008-07-17 18:58:55 +02:00
* Thu Jul 17 2008 Christophe Grenier <grenier@cgsecurity.org> 6.10-1
- 6.10
2007-10-29 22:38:52 +01:00
* Sun Jan 4 2004 Christophe Grenier <grenier@cgsecurity.org> 5.0
- 5.0
* Wed Oct 1 2003 Christophe Grenier <grenier@cgsecurity.org> 4.5
- 4.5
* Wed Apr 23 2003 Christophe Grenier <grenier@cgsecurity.org> 4.4-2
* Sat Mar 29 2003 Pascal Terjan <CMoi@tuxfamily.org> 4.4-1mdk
- 4.4
* Fri Dec 27 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.2-2mdk
- rebuild for rpm and glibc
* Sun Oct 06 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.2-1mdk
- 4.2
* Mon Sep 02 2002 Olivier Thauvin <thauvin@aerov.jussieu.fr> 4.1-1mdk
- By Pascal Terjan <pascal.terjan@free.fr>
- first mdk release, adapted from PLD.
- gz to bz2 compression.
- fix %%tmppath
- %%make instead %%{__make}