2012-02-16 16:17:45 +01:00
|
|
|
#
|
|
|
|
# spec file for package libewf
|
|
|
|
#
|
2013-03-04 17:28:11 +01:00
|
|
|
# Copyright (c) 2013 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2012-02-16 16:17:45 +01:00
|
|
|
#
|
|
|
|
# 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
2012-09-11 11:25:02 +02:00
|
|
|
#
|
|
|
|
%define soname 2
|
2013-03-04 17:28:11 +01:00
|
|
|
%define timestamp 20130128
|
2012-09-11 11:25:02 +02:00
|
|
|
|
2012-02-16 16:17:45 +01:00
|
|
|
Name: libewf
|
2013-03-04 17:28:11 +01:00
|
|
|
Version: 0.0.0+%{timestamp}
|
2012-02-16 16:17:45 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Library for the Expert Witness Compression Format (EWF)
|
2013-03-04 17:28:11 +01:00
|
|
|
License: LGPL-3.0+
|
2012-02-16 16:17:45 +01:00
|
|
|
Group: System/Libraries
|
2013-03-04 17:28:11 +01:00
|
|
|
Url: http://code.google.com/p/libewf/
|
|
|
|
Source0: http://libewf.googlecode.com/files/libewf-20130128.tar.gz
|
2012-02-16 16:17:45 +01:00
|
|
|
Source1: http://sourceforge.net/projects/libewf/files/mount_ewf/mount_ewf-20090113/mount_ewf-20090113.py
|
2012-09-11 11:25:02 +02:00
|
|
|
# PATCH-FIX-OPENSUSE remove_date_time_macros.patch Greg.Freemyer@gmail.com -- rpmlint complains about the macros
|
|
|
|
Patch0: remove_date_time_macros.patch
|
2012-02-16 16:17:45 +01:00
|
|
|
BuildRequires: e2fsprogs-devel
|
2012-09-11 11:25:02 +02:00
|
|
|
# Needed for language translation support
|
|
|
|
BuildRequires: gettext
|
2012-02-16 16:17:45 +01:00
|
|
|
BuildRequires: libuuid-devel
|
|
|
|
BuildRequires: openssl-devel
|
|
|
|
BuildRequires: pkg-config
|
|
|
|
#Needed for mount.ewf(.py) support
|
2013-03-10 08:25:15 +01:00
|
|
|
BuildRequires: fuse-devel
|
2012-02-16 16:17:45 +01:00
|
|
|
BuildRequires: python-devel
|
|
|
|
BuildRequires: zlib-devel
|
2012-09-11 11:25:02 +02:00
|
|
|
Requires: zlib
|
2013-03-10 08:25:15 +01:00
|
|
|
Recommends: fuse
|
2012-02-16 16:17:45 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
%py_requires
|
|
|
|
|
|
|
|
%description
|
|
|
|
Libewf is a library for support of the Expert Witness Compression Format (EWF),
|
|
|
|
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
|
|
|
|
Libewf allows you to read and write media information within the EWF files.
|
|
|
|
|
2012-09-11 11:25:02 +02:00
|
|
|
%package -n libewf%{soname}
|
2012-02-16 16:17:45 +01:00
|
|
|
Summary: Library to support the Expert Witness Compression Format
|
|
|
|
Group: System/Libraries
|
|
|
|
|
2012-09-11 11:25:02 +02:00
|
|
|
%description -n libewf%{soname}
|
2012-02-16 16:17:45 +01:00
|
|
|
libewf is a library for support of the Expert Witness Compression Format (EWF).
|
|
|
|
libewf allows you to read media information of EWF files in the SMART (EWF-S01)
|
|
|
|
format and the EnCase (EWF-E01) format. libewf allows to read files created by
|
|
|
|
EnCase 1 to 6, linen and FTK Imager.
|
|
|
|
|
2013-03-04 17:28:11 +01:00
|
|
|
%package -n ewftools
|
2012-02-16 16:17:45 +01:00
|
|
|
Summary: Utilities for the Expert Witness Compression Format (EWF)
|
|
|
|
Group: System/Filesystems
|
|
|
|
Requires: python-fuse >= 0.2
|
|
|
|
|
2013-03-04 17:28:11 +01:00
|
|
|
%description -n ewftools
|
2012-02-16 16:17:45 +01:00
|
|
|
Several tools for reading and writing EWF files.
|
|
|
|
It contains tools to acquire, verify and export EWF files.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %{name}
|
|
|
|
Group: Development/Libraries/C and C++
|
2012-09-11 11:25:02 +02:00
|
|
|
Requires: %{name}%{soname} = %{version}
|
2012-02-16 16:17:45 +01:00
|
|
|
Requires: pkg-config
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
The %{name}-devel package contains libraries and header files for
|
|
|
|
developing applications that use %{name}.
|
|
|
|
|
2013-03-04 17:28:11 +01:00
|
|
|
%package -n python-%{name}
|
|
|
|
Summary: Python binding for libewf
|
|
|
|
Group: System Environment/Libraries
|
|
|
|
#BuildRequires: python-devel
|
|
|
|
Requires: libewf%{soname} = %{version}
|
|
|
|
Requires: python
|
|
|
|
|
|
|
|
%description -n python-%{name}
|
|
|
|
Python binding for libewf. libewf can create and read EnCase forensic images.
|
|
|
|
|
2012-02-16 16:17:45 +01:00
|
|
|
%prep
|
2013-03-04 17:28:11 +01:00
|
|
|
%setup -q -n libewf-%{timestamp}
|
2012-09-11 11:25:02 +02:00
|
|
|
%patch0 -p1
|
2012-02-16 16:17:45 +01:00
|
|
|
|
|
|
|
%build
|
2013-03-04 17:28:11 +01:00
|
|
|
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
2012-02-16 16:17:45 +01:00
|
|
|
export CXXFLAGS="%{optflags}"
|
|
|
|
%configure --disable-static \
|
|
|
|
--enable-wide-character-type \
|
|
|
|
--enable-python
|
|
|
|
|
|
|
|
#Remove rpath from libtool
|
|
|
|
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
|
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
|
|
|
|
|
# clean unused-direct-shlib-dependencies
|
|
|
|
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
|
|
|
|
|
|
|
make %{?_smp_mflags}
|
|
|
|
|
|
|
|
%install
|
2012-09-11 11:25:02 +02:00
|
|
|
# maintain SLES compatibility
|
|
|
|
make install DESTDIR="%buildroot"
|
2012-02-16 16:17:45 +01:00
|
|
|
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
|
|
|
|
2012-09-11 11:25:02 +02:00
|
|
|
install -D -pm 0755 %{SOURCE1} %{buildroot}/sbin/mount.ewf
|
2012-02-16 16:17:45 +01:00
|
|
|
ln -s mount.ewf %{buildroot}/sbin/umount.ewf
|
|
|
|
|
2012-09-11 11:25:02 +02:00
|
|
|
%post -n libewf%{soname} -p /sbin/ldconfig
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2012-09-11 11:25:02 +02:00
|
|
|
%postun -n libewf%{soname} -p /sbin/ldconfig
|
2012-02-16 16:17:45 +01:00
|
|
|
|
2012-09-11 11:25:02 +02:00
|
|
|
%files -n libewf%{soname}
|
2012-02-16 16:17:45 +01:00
|
|
|
%defattr(-,root,root,-)
|
2012-09-11 11:25:02 +02:00
|
|
|
%doc AUTHORS COPYING NEWS ChangeLog ABOUT-NLS
|
2012-02-16 16:17:45 +01:00
|
|
|
%{_libdir}/*.so.*
|
|
|
|
|
|
|
|
%files -n ewftools
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_bindir}/ewf*
|
|
|
|
%{_mandir}/man1/*.gz
|
|
|
|
/sbin/*.ewf
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%{_includedir}/libewf.h
|
|
|
|
%{_includedir}/libewf/
|
|
|
|
%{_libdir}/*.so
|
|
|
|
%{_libdir}/pkgconfig/libewf.pc
|
|
|
|
%{_mandir}/man3/*.gz
|
|
|
|
|
2013-03-04 17:28:11 +01:00
|
|
|
%files -n python-%{name}
|
|
|
|
%defattr(644,root,root,755)
|
|
|
|
%doc AUTHORS COPYING NEWS README
|
|
|
|
%{python_sitearch}/*.so
|
|
|
|
|
2012-02-16 16:17:45 +01:00
|
|
|
%changelog
|