- 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
This commit is contained in:
parent
ccdf455d5e
commit
c6cad3a391
@ -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
|
Sat Jan 10 20:05:58 UTC 2015 - Greg.Freemyer@gmail.com
|
||||||
|
|
||||||
|
37
libewf.spec
37
libewf.spec
@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package libewf
|
# 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
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# 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
|
#DL-URL: https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/libewf-20140608.tar.gz
|
||||||
Source: %{name}-%{timestamp}.tar.gz
|
Source: %{name}-%{timestamp}.tar.gz
|
||||||
Source2: http://downloads.sf.net/libewf/mount_ewf-20090113.py
|
Source2: http://downloads.sf.net/libewf/mount_ewf-20090113.py
|
||||||
Source3: Expert_Witness_Compression_Format_(EWF).pdf
|
Source3: Expert_Witness_Compression_Format_EWF.pdf
|
||||||
Source4: Expert_Witness_Compression_Format_2_(EWF2).pdf
|
Source4: Expert_Witness_Compression_Format_2_EWF2.pdf
|
||||||
Patch1: remove_date_time_macros.patch
|
Patch1: remove_date_time_macros.patch
|
||||||
BuildRequires: bison
|
BuildRequires: bison
|
||||||
BuildRequires: flex
|
BuildRequires: flex
|
||||||
@ -119,16 +119,26 @@ by EnCase 1 to 6, linen and FTK Imager.
|
|||||||
This subpackage contains libraries and header files for developing
|
This subpackage contains libraries and header files for developing
|
||||||
applications that want to make use of %{name}.
|
applications that want to make use of %{name}.
|
||||||
|
|
||||||
%package -n python-%{name}
|
%package -n python2-%{name}
|
||||||
Summary: Python bindings for libewf, an Expert Witness Compression format library
|
Summary: Python 2 bindings for libewf, an Expert Witness Compression format library
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0+
|
||||||
Group: Development/Libraries/Python
|
Group: Development/Libraries/Python
|
||||||
Requires: %{lname} = %{version}
|
Requires: %{lname} = %{version}
|
||||||
Requires: python
|
BuildRequires: pkgconfig(python2)
|
||||||
Provides: pyewf = %{version}
|
|
||||||
|
|
||||||
%description -n python-%{name}
|
%description -n python2-%{name}
|
||||||
Python binding for libewf, which can create and read EnCase forensic
|
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.
|
images.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
@ -140,7 +150,7 @@ cp "%{SOURCE3}" "%{SOURCE4}" .
|
|||||||
#export CFLAGS="%optflags -fno-strict-aliasing"
|
#export CFLAGS="%optflags -fno-strict-aliasing"
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--enable-wide-character-type \
|
--enable-wide-character-type \
|
||||||
--enable-python
|
--enable-python --enable-python3
|
||||||
|
|
||||||
#Remove rpath from libtool
|
#Remove rpath from libtool
|
||||||
#sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' 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
|
%{_libdir}/pkgconfig/libewf.pc
|
||||||
%{_mandir}/man3/libewf.3*
|
%{_mandir}/man3/libewf.3*
|
||||||
|
|
||||||
%files -n python-%{name}
|
%files -n python2-%{name}
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING NEWS README
|
%doc AUTHORS COPYING NEWS README
|
||||||
%{python_sitearch}/pyewf.so
|
%{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
|
%changelog
|
||||||
|
Loading…
x
Reference in New Issue
Block a user