diff --git a/libewf-20140608.tar.gz b/libewf-20140608.tar.gz new file mode 100644 index 0000000..270296a Binary files /dev/null and b/libewf-20140608.tar.gz differ diff --git a/libewf.spec b/libewf.spec new file mode 100644 index 0000000..45d5c96 --- /dev/null +++ b/libewf.spec @@ -0,0 +1,84 @@ +Name: libewf +Version: 20140608 +Release: 13 +Summary: Library to access the Expert Witness Compression Format (EWF) +License: LGPLv3+ +URL: http://sourceforge.net/projects/libewf/ +#Source0 url: https://github.com/ArchAssault-Project/libewf/archive/v.20140608.tar.gz +Source0: %{name}-%{version}.tar.gz +BuildRequires: gcc-c++ fuse-devel libuuid-devel openssl-devel zlib-devel python2-devel + +%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. +libewf allows to read files created by EnCase 1 to 6, linen and FTK Imager. + +%package -n ewftools +Summary: Tools for the Expert Witness Compression Format (EWF) +Requires: libewf = %{version}-%{release} python2-fuse >= 0.2 +Provides: libewf-tools = %{version}-%{release} +Obsoletes: libewf-tools <= %{version}-%{release} + +%description -n ewftools +Several tools for reading and writing EWF files.It provides tools to acquire, +verify and export EWF files. + +%package devel +Summary: Development files +Requires: libewf = %{version}-%{release} zlib-devel pkgconfig + +%description devel +The libewf-devel package provides header files and libraries for developing +applications that use libewf. + +%package help +Summary: Help documentation for libewf +BuildArch: noarch + +%description help +This package contains man manual for help. + +%prep +%autosetup -n libewf-v.20140608 -p1 + +%build +%configure --disable-static --enable-wide-character-type --enable-python \ +CFLAGS="${RPM_OPT_FLAGS} -std=gnu89" + +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 +sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool + +%make_build + +%install +%make_install +%delete_la + +%post +/sbin/ldconfig + +%postun +/sbin/ldconfig + +%files +%doc AUTHORS NEWS COPYING +%{_libdir}/*.so.* + +%files -n ewftools +%{_bindir}/ewf* +%{python2_sitearch}/pyewf.so + +%files devel +%{_includedir}/{libewf.h,libewf/} +%{_libdir}/*.so +%{_libdir}/pkgconfig/libewf.pc + +%files help +%{_mandir}/man1/*.gz +%{_mandir}/man3/*.gz + +%changelog +* Tue Feb 25 2020 Tianfei - 20140608-13 +- Package init