Update spec file to add libewf support in RPM
Drop dos/testdisk.bat
This commit is contained in:
parent
9a9764e493
commit
9b82212539
2 changed files with 19 additions and 2 deletions
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue