From c6cad3a391e3fd3e9bcaaafa95b6b9ab51947fd4932b9dd9dcbb7f5d1a592d8f Mon Sep 17 00:00:00 2001 From: Greg Freemyer Date: Wed, 11 Oct 2017 22:41:37 +0000 Subject: [PATCH] - add skeleton python3 support - upstream doesn't have python 3 in the stable release - rename python-libewf to python2-libewf to be compatible with python singlespec - remove pyewf as it isn't versioned and isn't singlespec compatible OBS-URL: https://build.opensuse.org/package/show/security:forensics/libewf?expand=0&rev=4 --- ...pert_Witness_Compression_Format_2_EWF2.pdf | 0 ... Expert_Witness_Compression_Format_EWF.pdf | 0 libewf.changes | 7 ++++ libewf.spec | 37 +++++++++++++------ 4 files changed, 33 insertions(+), 11 deletions(-) rename Expert_Witness_Compression_Format_2_(EWF2).pdf => Expert_Witness_Compression_Format_2_EWF2.pdf (100%) rename Expert_Witness_Compression_Format_(EWF).pdf => Expert_Witness_Compression_Format_EWF.pdf (100%) diff --git a/Expert_Witness_Compression_Format_2_(EWF2).pdf b/Expert_Witness_Compression_Format_2_EWF2.pdf similarity index 100% rename from Expert_Witness_Compression_Format_2_(EWF2).pdf rename to Expert_Witness_Compression_Format_2_EWF2.pdf diff --git a/Expert_Witness_Compression_Format_(EWF).pdf b/Expert_Witness_Compression_Format_EWF.pdf similarity index 100% rename from Expert_Witness_Compression_Format_(EWF).pdf rename to Expert_Witness_Compression_Format_EWF.pdf diff --git a/libewf.changes b/libewf.changes index 9eaaa3b..dea0461 100644 --- a/libewf.changes +++ b/libewf.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Wed Oct 11 20:10:55 UTC 2017 - Greg.Freemyer@gmail.com + +- add skeleton python3 support - upstream doesn't have python 3 in the stable release +- rename python-libewf to python2-libewf to be compatible with python singlespec +- remove pyewf as it isn't versioned and isn't singlespec compatible + ------------------------------------------------------------------- Sat Jan 10 20:05:58 UTC 2015 - Greg.Freemyer@gmail.com diff --git a/libewf.spec b/libewf.spec index 7f72c2d..7c7f55b 100644 --- a/libewf.spec +++ b/libewf.spec @@ -1,7 +1,7 @@ # # spec file for package libewf # -# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2017 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -28,8 +28,8 @@ Url: http://code.google.com/p/libewf/ #DL-URL: https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/libewf-20140608.tar.gz Source: %{name}-%{timestamp}.tar.gz Source2: http://downloads.sf.net/libewf/mount_ewf-20090113.py -Source3: Expert_Witness_Compression_Format_(EWF).pdf -Source4: Expert_Witness_Compression_Format_2_(EWF2).pdf +Source3: Expert_Witness_Compression_Format_EWF.pdf +Source4: Expert_Witness_Compression_Format_2_EWF2.pdf Patch1: remove_date_time_macros.patch BuildRequires: bison BuildRequires: flex @@ -119,16 +119,26 @@ by EnCase 1 to 6, linen and FTK Imager. This subpackage contains libraries and header files for developing applications that want to make use of %{name}. -%package -n python-%{name} -Summary: Python bindings for libewf, an Expert Witness Compression format library +%package -n python2-%{name} +Summary: Python 2 bindings for libewf, an Expert Witness Compression format library License: LGPL-3.0+ Group: Development/Libraries/Python Requires: %{lname} = %{version} -Requires: python -Provides: pyewf = %{version} +BuildRequires: pkgconfig(python2) -%description -n python-%{name} -Python binding for libewf, which can create and read EnCase forensic +%description -n python2-%{name} +Python 2 binding for libewf, which can create and read EnCase forensic +images. + +%package -n python3-%{name} +Summary: Python 3 bindings for libewf, an Expert Witness Compression format library +License: LGPL-3.0+ +Group: Development/Libraries/Python +Requires: %{lname} = %{version} +BuildRequires: pkgconfig(python3) + +%description -n python3-%{name} +Python 3 binding for libewf, which can create and read EnCase forensic images. %prep @@ -140,7 +150,7 @@ cp "%{SOURCE3}" "%{SOURCE4}" . #export CFLAGS="%optflags -fno-strict-aliasing" %configure --disable-static \ --enable-wide-character-type \ - --enable-python + --enable-python --enable-python3 #Remove rpath from libtool #sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool @@ -192,9 +202,14 @@ ln -s mount.ewf "%{buildroot}/sbin/umount.ewf" %{_libdir}/pkgconfig/libewf.pc %{_mandir}/man3/libewf.3* -%files -n python-%{name} +%files -n python2-%{name} %defattr(-,root,root) %doc AUTHORS COPYING NEWS README %{python_sitearch}/pyewf.so +# this is a skeleton package with no actual binary. Upstram doesn't have python3 support in stable +%files -n python3-%{name} +%defattr(-,root,root) +%doc AUTHORS COPYING NEWS README + %changelog