summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Makefile.am2
-rw-r--r--linux/testdisk.spec.in19
2 files changed, 19 insertions, 2 deletions
diff --git a/Makefile.am b/Makefile.am
index 9c2f4ad..73877ba 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -4,7 +4,7 @@ SUBDIRS = src
EXTRA_DIST = AUTHORS COPYING ChangeLog INFO INSTALL NEWS README THANKS compile.sh progsreiserfs-journal.patch \
darwin/readme.txt \
doc_src/testdisk.1.in doc_src/photorec.1.in doc \
- dos/readme.txt dos/testdisk.bat \
+ dos/readme.txt \
linux/testdisk.spec.in \
src/icon_ph.rc src/icon_tst.rc \
win/readme.txt
diff --git a/linux/testdisk.spec.in b/linux/testdisk.spec.in
index bebb311..cd4ac80 100644
--- a/linux/testdisk.spec.in
+++ b/linux/testdisk.spec.in
@@ -1,5 +1,6 @@
%define ver_progsreiserfs 0.3.1-rc8
%define ver_ntfsprogs 2.0.0
+%define ver_libewf 20070512
Summary: Tool to check and undelete partition
Summary(pl.UTF8): Narzędzie sprawdzające i odzyskujące partycje
@@ -13,11 +14,14 @@ Group: Applications/System
Source0: http://www.cgsecurity.org/%{name}-%{version}.tar.bz2
Source1: progsreiserfs-%ver_progsreiserfs.tar.gz
Source2: ntfsprogs-%ver_ntfsprogs.tar.gz
+Source3: libewf-%ver_libewf.tar.gz
Patch0: progsreiserfs-journal.patch
URL: http://www.cgsecurity.org/wiki/TestDisk
BuildRequires: ncurses-devel >= 5.2
BuildRequires: e2fsprogs-devel
BuildRequires: libjpeg-devel
+BuildRequires: zlib-devel
+BuildRequires: openssl-devel
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
@@ -45,6 +49,7 @@ Linux Swap, LVM, LVM2, NSS, ReiserFS, UFS, XFS
%setup -q
%setup -q -a 1 -D
%setup -q -a 2 -D
+%setup -q -a 3 -D
%patch0
%build
@@ -58,7 +63,19 @@ cd ntfsprogs-%ver_ntfsprogs
%configure
make libs
)
-%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/ --with-ntfs-lib=${RPM_BUILD_DIR}/%{name}-%{version}/ntfsprogs-%ver_ntfsprogs/libntfs/.libs/ --with-ntfs-includes=${RPM_BUILD_DIR}/%{name}-%{version}/ntfsprogs-%ver_ntfsprogs/include/
+(
+cd libewf-%ver_libewf
+%configure
+make lib
+)
+%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/ \
+ --with-ntfs-lib=${RPM_BUILD_DIR}/%{name}-%{version}/ntfsprogs-%ver_ntfsprogs/libntfs/.libs/ \
+ --with-ntfs-includes=${RPM_BUILD_DIR}/%{name}-%{version}/ntfsprogs-%ver_ntfsprogs/include/ \
+ --with-ewf-lib=${RPM_BUILD_DIR}/%{name}-%{version}/libewf-%{ver_libewf}/libewf/.libs/ \
+ --with-ewf-includes=${RPM_BUILD_DIR}/%{name}-%{version}/libewf-%{ver_libewf}/include/
make static
%install
rm -rf $RPM_BUILD_ROOT