diff --git a/_service b/_service
new file mode 100644
index 0000000..ff4c907
--- /dev/null
+++ b/_service
@@ -0,0 +1,14 @@
+
+
+ git
+ https://github.com/libyal/libewf-legacy
+ 1ca7370363b53baf9eaf606d4995ab18c6824746
+
+ 20140811
+
+
+ *.tar
+ xz
+
+
+
diff --git a/libewf-20140811.tar.gz b/libewf-20140811.tar.gz
deleted file mode 100644
index 4306f8f..0000000
--- a/libewf-20140811.tar.gz
+++ /dev/null
@@ -1,3 +0,0 @@
-version https://git-lfs.github.com/spec/v1
-oid sha256:b2c3a04ea7f49646518d108df8ea00fc0d2ca670064bb59428d8878ed8aef80d
-size 2354095
diff --git a/libewf-20140811.tar.gz.asc b/libewf-20140811.tar.gz.asc
deleted file mode 100644
index 103a8b4..0000000
--- a/libewf-20140811.tar.gz.asc
+++ /dev/null
@@ -1,11 +0,0 @@
------BEGIN PGP SIGNATURE-----
-
-iQEzBAABCAAdFiEEDtkCDakNP25wvTlF2WJeXXrQF34FAl/CY6MACgkQ2WJeXXrQ
-F37pLwf/RS0IvF0xg0kBFkcEjbWHfA7FWBMQwfX3j3IP5unedoGmWC5bNCBdFRWv
-5IWj9eiIBJIy+GhdeInzie5r6YWcScHqWLOUathvPZGlczzm2LLg7uEwN0R7o5vd
-fb7TyIOGoZwp3CQg6ZZu3ZM2NplTfyJ087sqTWqItQHTRevnpNeL+fPiL6E3MdtW
-qOGpsbBuaOUYxfXE0DFRo85gqvck82ZuJk2gbvgK4s/essW0inAARR5SwT+nK+Rt
-GoWJA0qiKLBtGI2UIUvHTa6OzHUYftkbW+2asYyMChiAYDKzT36YGo5gLA3Ayi/A
-qzUWLZRl69kV5/djWZXHbnZYA8/dIg==
-=M7Bi
------END PGP SIGNATURE-----
diff --git a/libewf-legacy-20140811.tar.xz b/libewf-legacy-20140811.tar.xz
new file mode 100644
index 0000000..1abab1b
--- /dev/null
+++ b/libewf-legacy-20140811.tar.xz
@@ -0,0 +1,3 @@
+version https://git-lfs.github.com/spec/v1
+oid sha256:3c6a7132c0885ab4cb8993025866e7c99657a77709b61d555a714b78cea16806
+size 413316
diff --git a/libewf.changes b/libewf.changes
index e01fb61..ecc7481 100644
--- a/libewf.changes
+++ b/libewf.changes
@@ -1,3 +1,15 @@
+-------------------------------------------------------------------
+Sat Jun 26 09:57:45 UTC 2021 - Jan Engelhardt
+
+- Drop python2 module build.
+
+-------------------------------------------------------------------
+Fri May 14 00:55:40 UTC 2021 - Jan Engelhardt
+
+- Update to snapshot (a791283c)
+ * No changelog was provided.
+- Add system-libs.patch
+
-------------------------------------------------------------------
Sat Dec 12 23:39:53 UTC 2020 - Greg Freemyer
diff --git a/libewf.spec b/libewf.spec
index 47b2799..756d57d 100644
--- a/libewf.spec
+++ b/libewf.spec
@@ -1,7 +1,7 @@
#
# spec file for package libewf
#
-# Copyright (c) 2020 SUSE LLC
+# Copyright (c) 2021 SUSE LLC
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
@@ -16,69 +16,51 @@
#
-%define modname libewf
-%define timestamp 20140811
-%define sosuffix 2
-%bcond_with python2
-
+%define lname libewf2
Name: libewf
-Version: 0~%{timestamp}
+Version: 20140811
Release: 0
Summary: Library for the Expert Witness Compression Format (EWF)
-License: LGPL-3.0-or-later AND GFDL-1.3-or-later
+License: GFDL-1.3-or-later AND LGPL-3.0-or-later
Group: Productivity/File utilities
URL: https://github.com/libyal/libewf-legacy
-Source: https://github.com/libyal/libewf-legacy/releases/download/%{timestamp}/%{name}-%{timestamp}.tar.gz
-Source1: https://github.com/libyal/libewf-legacy/releases/download/%{timestamp}/%{name}-%{timestamp}.tar.gz.asc
+Source: %name-legacy-%version.tar.xz
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
Patch1: remove_date_time_macros.patch
-BuildRequires: autoconf
-BuildRequires: automake
+Patch2: system-libs.patch
BuildRequires: bison
+BuildRequires: c_compiler
BuildRequires: flex
-BuildRequires: fuse-devel
-# Needed for language translation support
-BuildRequires: gettext
-BuildRequires: git
-BuildRequires: libopenssl-devel
+BuildRequires: gettext-tools >= 0.18.1
BuildRequires: libtool
-BuildRequires: pkgconfig
-%if %{with python2}
-BuildRequires: python-devel
-%endif
-BuildRequires: python3-devel
-BuildRequires: zlib-devel
+BuildRequires: pkg-config
BuildRequires: pkgconfig(bzip2) >= 1.0
BuildRequires: pkgconfig(fuse) >= 2.6
-BuildRequires: pkgconfig(libcaes) >= 20120425
-BuildRequires: pkgconfig(libcdatetime)
-BuildRequires: pkgconfig(libcfile) >= 20120526
-BuildRequires: pkgconfig(libclocale) >= 20120425
-BuildRequires: pkgconfig(libcnotify) >= 20120425
-BuildRequires: pkgconfig(libcsplit) >= 20120701
-BuildRequires: pkgconfig(libcthreads) >= 20130723
-BuildRequires: pkgconfig(libfvalue) >= 20120428
-BuildRequires: pkgconfig(libhmac) >= 20120425
-BuildRequires: pkgconfig(libsmdev) >= 20120630
-BuildRequires: pkgconfig(libuna) >= 20120425
+BuildRequires: pkgconfig(libbfio) >= 20201229
+BuildRequires: pkgconfig(libcaes) >= 20201012
+BuildRequires: pkgconfig(libcdata) >= 20200509
+BuildRequires: pkgconfig(libcdatetime) >= 20200510
+BuildRequires: pkgconfig(libcerror) >= 20201121
+BuildRequires: pkgconfig(libcfile) >= 20201229
+BuildRequires: pkgconfig(libclocale) >= 20200913
+BuildRequires: pkgconfig(libcnotify) >= 20200913
+BuildRequires: pkgconfig(libcpath) >= 20200623
+BuildRequires: pkgconfig(libcsplit) >= 20200703
+BuildRequires: pkgconfig(libcthreads) >= 20200508
+BuildRequires: pkgconfig(libfcache) >= 20200708
+BuildRequires: pkgconfig(libfdata) >= 20201129
+BuildRequires: pkgconfig(libfvalue) >= 20210510
+BuildRequires: pkgconfig(libhmac) >= 20200104
+BuildRequires: pkgconfig(libodraw) >= 20201003
+BuildRequires: pkgconfig(libsmdev) >= 20210418
+BuildRequires: pkgconfig(libsmraw) >= 20210418
+BuildRequires: pkgconfig(libuna) >= 20201204
BuildRequires: pkgconfig(openssl) >= 1.0.0
+BuildRequires: pkgconfig(python3)
BuildRequires: pkgconfig(uuid) >= 2.20
BuildRequires: pkgconfig(zlib) >= 1.2.5
-# build fails if libyal package from OBS is used
-# verified 1/25/2020
-BuildRequires: pkgconfig(libbfio) >= 20201127
-BuildRequires: pkgconfig(libcdata) >= 20120425
-BuildRequires: pkgconfig(libcerror) >= 20120425
-BuildRequires: pkgconfig(libcpath) >= 20120701
-BuildRequires: pkgconfig(libfcache) >= 20120405
-BuildRequires: pkgconfig(libfdata)
-BuildRequires: pkgconfig(libodraw) >= 20120630
-BuildRequires: pkgconfig(libsmraw) >= 20120630
-# these packages not yet released by upstream
-#BuildRequires: pkgconfig(libmfdata) >= 20120425
-BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libewf is a library for support of the Expert Witness Compression
@@ -87,12 +69,12 @@ EnCase format (EWF-E01). libewf allows you to read and write media
information within the EWF files. libewf allows to read files created
by EnCase 1 to 6, linen and FTK Imager.
-%package -n %{modname}%{sosuffix}
+%package -n %{lname}
Summary: Library to support the Expert Witness Compression Format
License: LGPL-3.0-or-later
Group: System/Libraries
-%description -n %{modname}%{sosuffix}
+%description -n %{lname}
libewf is a library for support of the Expert Witness Compression
Format (EWF). It supports both the SMART format (EWF-S01) and the
EnCase format (EWF-E01). libewf allows you to read and write media
@@ -105,10 +87,6 @@ License: LGPL-3.0-or-later
Group: System/Filesystems
Requires: fuse
Requires: python3-fuse >= 0.2
-#Don't use obsoletes because new 0~yyyymmdd version is less than old 0.0.0+yyyymmdd version
-#zypper dup should "downgrade" ewftools to ewftools in factory regardless, so this should work
-#Obsoletes: ewftools <= 0.0.0+20130128
-Provides: ewftools = %{version}
%description tools
Several tools for reading and writing EWF files.
@@ -116,9 +94,9 @@ It contains tools to acquire, verify and export EWF files.
%package devel
Summary: Development files for libewf, an Expert Witness Compression Format library
-License: LGPL-3.0-or-later AND GFDL-1.3-or-later
+License: GFDL-1.3-or-later AND LGPL-3.0-or-later
Group: Development/Libraries/C and C++
-Requires: %{modname}%{sosuffix} = %{version}
+Requires: %{lname} = %version
%description devel
libewf is a library for support of the Expert Witness Compression
@@ -130,73 +108,44 @@ 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}.
-%if %{with python2}
-%package -n python2-%{name}
-Summary: Python 2 bindings for libewf, an Expert Witness Compression format library
-License: LGPL-3.0-or-later
-Group: Development/Libraries/Python
-Requires: %{modname}%{sosuffix} = %{version}
-BuildRequires: pkgconfig(python2)
-Provides: python-%{name} = %{version}
-Obsoletes: python-%{name} < 20140608
-
-%description -n python2-%{name}
-Python 2 binding for libewf, which can create and read EnCase forensic
-images.
-%endif
-
-# We can eventually split python* packages into separate packages
-# python setup.py build should work according to
-# https://github.com/libyal/libewf/wiki/Building#using-setuppy
%package -n python3-%{name}
Summary: Python 3 bindings for libewf, an Expert Witness Compression format library
License: LGPL-3.0-or-later
Group: Development/Libraries/Python
-BuildRequires: pkgconfig
-BuildRequires: pkgconfig(python3)
-Requires: %{modname}%{sosuffix} = %{version}
%description -n python3-%{name}
Python 3 binding for libewf, which can create and read EnCase forensic
images.
%prep
-%setup -q -n %{name}-%{timestamp}
-%patch1 -p1
+%autosetup -p1 -n libewf-legacy-%version
cp "%{SOURCE3}" "%{SOURCE4}" .
%build
#export CFLAGS="%optflags -fno-strict-aliasing"
+if [ ! -e configure ]; then ./autogen.sh; fi
%configure --disable-static --disable-rpath \
--enable-wide-character-type \
- --enable-python3 \
-%if %{with python2}
- --enable-python2
-%endif
-
-make %{?_smp_mflags}
+ --enable-python3
+%make_build
%install
%make_install
find %{buildroot} -type f -name "*.la" -delete -print
-
install -Dpm0755 "%{SOURCE2}" "%{buildroot}/sbin/mount.ewf"
ln -s mount.ewf "%{buildroot}/sbin/umount.ewf"
%check
-make check
+make check
-%post -n %{modname}%{sosuffix} -p /sbin/ldconfig
-%postun -n %{modname}%{sosuffix} -p /sbin/ldconfig
+%post -n %{lname} -p /sbin/ldconfig
+%postun -n %{lname} -p /sbin/ldconfig
-%files -n %{modname}%{sosuffix}
-%defattr(-,root,root)
-%license COPYING
-%doc AUTHORS NEWS ChangeLog
+%files -n %{lname}
+%license COPYING*
%{_libdir}/libewf.so.*
%files tools
-%defattr(-,root,root)
%{_bindir}/ewfacquire
%{_bindir}/ewfacquirestream
%{_bindir}/ewfexport
@@ -211,9 +160,7 @@ make check
/sbin/*mount.ewf
%files devel
-%defattr(-,root,root)
-%license COPYING
-%doc AUTHORS ChangeLog NEWS README
+%license COPYING*
%doc *.pdf
%{_includedir}/libewf.h
%{_includedir}/libewf/
@@ -221,17 +168,8 @@ make check
%{_libdir}/pkgconfig/libewf.pc
%{_mandir}/man3/libewf.3*
-%if %{with python2}
-%files -n python2-%{name}
-%defattr(-,root,root)
-%license COPYING
-%doc AUTHORS NEWS README
-%{python_sitearch}/pyewf.so
-%endif
-
%files -n python3-%{name}
-%license COPYING
-%doc AUTHORS NEWS README
+%license COPYING*
%{python3_sitearch}/*.so
%changelog
diff --git a/system-libs.patch b/system-libs.patch
new file mode 100644
index 0000000..6be43a5
--- /dev/null
+++ b/system-libs.patch
@@ -0,0 +1,98 @@
+From: Jan Engelhardt
+Date: 2021-05-12 17:36:02.536572543 +0200
+
+Some dirs are not present in snapshots directly generated from git
+(nor are they marked as a submodule). Patch it out, since we have
+them as system libs.
+---
+ Makefile.am | 31 -------------------------------
+ configure.ac | 18 ------------------
+ 2 files changed, 49 deletions(-)
+
+Index: libewf-legacy/Makefile.am
+===================================================================
+--- libewf-legacy.orig/Makefile.am
++++ libewf-legacy/Makefile.am
+@@ -3,26 +3,8 @@ ACLOCAL_AMFLAGS = -I m4
+ SUBDIRS = \
+ include \
+ common \
+- libcerror \
+- libcthreads \
+- libcdata \
+- libcdatetime \
+- libclocale \
+- libcnotify \
+- libcsplit \
+- libuna \
+- libcfile \
+- libcpath \
+- libbfio \
+- libfcache \
+- libfdata \
+- libfvalue \
+ libmfdata \
+- libhmac \
+ libewf \
+- libodraw \
+- libsmdev \
+- libsmraw \
+ ewftools \
+ ewf.net \
+ pyewf \
+@@ -85,20 +67,7 @@ lib: library
+
+ library:
+ (cd $(srcdir)/common && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcerror && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcdata && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libclocale && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcnotify && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcsplit && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libuna && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcfile && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libcpath && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libbfio && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfcache && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfdata && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libfvalue && $(MAKE) $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libmfdata && $(MAKE) $(AM_MAKEFLAGS))
+- (cd $(srcdir)/libhmac && $(MAKE) $(AM_MAKEFLAGS))
+ (cd $(srcdir)/libewf && $(MAKE) $(AM_MAKEFLAGS))
+ (cd $(srcdir)/po && $(MAKE) $(AM_MAKEFLAGS))
+
+Index: libewf-legacy/configure.ac
+===================================================================
+--- libewf-legacy.orig/configure.ac
++++ libewf-legacy/configure.ac
+@@ -227,30 +227,12 @@ dnl Generate Makefiles
+ AC_CONFIG_FILES([Makefile])
+ AC_CONFIG_FILES([include/Makefile])
+ AC_CONFIG_FILES([common/Makefile])
+-AC_CONFIG_FILES([libcerror/Makefile])
+-AC_CONFIG_FILES([libcthreads/Makefile])
+-AC_CONFIG_FILES([libcdata/Makefile])
+-AC_CONFIG_FILES([libcdatetime/Makefile])
+-AC_CONFIG_FILES([libclocale/Makefile])
+-AC_CONFIG_FILES([libcnotify/Makefile])
+-AC_CONFIG_FILES([libcsplit/Makefile])
+-AC_CONFIG_FILES([libuna/Makefile])
+-AC_CONFIG_FILES([libcfile/Makefile])
+-AC_CONFIG_FILES([libcpath/Makefile])
+-AC_CONFIG_FILES([libbfio/Makefile])
+-AC_CONFIG_FILES([libfcache/Makefile])
+-AC_CONFIG_FILES([libfdata/Makefile])
+-AC_CONFIG_FILES([libfvalue/Makefile])
+ AC_CONFIG_FILES([libmfdata/Makefile])
+-AC_CONFIG_FILES([libhmac/Makefile])
+ AC_CONFIG_FILES([libewf/Makefile])
+ AC_CONFIG_FILES([pyewf/Makefile])
+ AC_CONFIG_FILES([pyewf-python2/Makefile])
+ AC_CONFIG_FILES([pyewf-python3/Makefile])
+ AC_CONFIG_FILES([ewf.net/Makefile])
+-AC_CONFIG_FILES([libodraw/Makefile])
+-AC_CONFIG_FILES([libsmdev/Makefile])
+-AC_CONFIG_FILES([libsmraw/Makefile])
+ AC_CONFIG_FILES([ewftools/Makefile])
+ AC_CONFIG_FILES([po/Makefile.in])
+ AC_CONFIG_FILES([po/Makevars])