forked from pool/libewf
- 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
|
||||
|
||||
|
37
libewf.spec
37
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
|
||||
|
Loading…
Reference in New Issue
Block a user