File photorec.spec of Package photorec

#
# spec file for package photorec
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           photorec
Url:            http://www.cgsecurity.org/wiki/TestDisk
License:        GPLv2+
Group:          Hardware/Camera
AutoReqProv:    on
Summary:        Tool to Check and Undelete Images and Partitions
Version:        6.12
Release:        1
Source0:        http://www.cgsecurity.org/testdisk-%version.tar.bz2
BuildRequires:  libext2fs-devel libopenssl-devel libreiserfs-devel ncurses-devel
BuildRequires:  libjpeg-devel libuuid-devel zlib-devel
%if 0%{?suse_version} >= 1210
BuildRequires:  libntfs-3g-devel
%else
BuildRequires:  ntfsprogs-devel
%endif
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This package contains two recovery/ forensic tools:

TestDisk checks and recovers deleted partitions. It understands all
common filesystem formats.

PhotoRec is a file data recovery software designed to recover lost
files including video, documents and archives from hard disks and CD
Rom and lost pictures (Photo Recovery) from digital camera memory.
PhotoRec ignores the filesystem and goes after the underlying data, so
it works even if your media's filesystem is severely damaged or
reformatted.



Authors:
--------
    Christophe GRENIER grenier@cgsecurity.org

%prep
%setup -n testdisk-%version -q

%build
%configure
make

%install
make install DESTDIR=$RPM_BUILD_ROOT
# move back the documentation
mv $RPM_BUILD_ROOT/usr/share/doc/testdisk-%version/* .

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS ChangeLog NEWS README THANKS html
%{_prefix}/bin/*
%{_prefix}/share/man/man*/*

%changelog
openSUSE Build Service is sponsored by