forked from pool/libewf
Accepting request 185879 from security
Update to 0~20130416 major specfile reorganization to match libyal template part of summer 2013 libyal refresh for opensuse 13.1 OBS-URL: https://build.opensuse.org/request/show/185879 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libewf?expand=0&rev=7
This commit is contained in:
parent
7e770f2f48
commit
4c92821390
3
Expert_Witness_Compression_Format_(EWF).pdf
Normal file
3
Expert_Witness_Compression_Format_(EWF).pdf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:21e61013dbd2af3ea8468e3e0deec2771090d06fd0c24720107550e9c56a206a
|
||||||
|
size 332072
|
3
Expert_Witness_Compression_Format_2_(EWF2).pdf
Normal file
3
Expert_Witness_Compression_Format_2_(EWF2).pdf
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:040f2f94e8337661d98ad935c9a96e29a2c28d0f3ac20384f9505a24ef718f15
|
||||||
|
size 221940
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:769a5662299485f98d50ef484e73da23813827ac52a2963b67a3e3416fd663d5
|
|
||||||
size 1978794
|
|
3
libewf-20130416.tar.gz
Normal file
3
libewf-20130416.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:e0f14071665b24a8077a24f4cafbf092ad5ac1859f49994dc4e843e747ba7a89
|
||||||
|
size 1968288
|
@ -1,3 +1,32 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Jul 31 19:16:41 UTC 2013 - Greg.Freemyer@gmail.com
|
||||||
|
|
||||||
|
- update to 0~20130416
|
||||||
|
* changes to zlib.m4 for adler32 detection
|
||||||
|
- add Obsoletes/Provides pair for ewftools. That was the old name of the tool package.
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Fri Apr 5 21:23:39 UTC 2013 - jengelh@inai.de
|
||||||
|
|
||||||
|
- Cleanups: Set RPM group, license, summary and description
|
||||||
|
metadata; remove unused %py_requires; do not bloat shlib package
|
||||||
|
with documentation
|
||||||
|
- Use system libraries instead of bundled ones where possible
|
||||||
|
- Name the tools package according to upstream's recommendation
|
||||||
|
- Drop unnecessary -fno-strict-aliasing
|
||||||
|
|
||||||
|
-------------------------------------------------------------------
|
||||||
|
Wed Apr 3 17:26:26 UTC 2013 - Greg.Freemyer@gmail.com
|
||||||
|
|
||||||
|
- update to latest release 20130331
|
||||||
|
* more sync with experimental version
|
||||||
|
* improved error tolerance for issue 8
|
||||||
|
* updated libsmdev to fix issue 13
|
||||||
|
- add 2 documentation files provided by upstream
|
||||||
|
- fix a illegal group setting
|
||||||
|
- update %files sections to match sample specfile in source tree
|
||||||
|
- update Requires and BuildRequires to match sample specfile in source tree
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Fri Mar 8 23:08:41 UTC 2013 - Greg.Freemyer@gmail.com
|
Fri Mar 8 23:08:41 UTC 2013 - Greg.Freemyer@gmail.com
|
||||||
|
|
||||||
|
201
libewf.spec
201
libewf.spec
@ -16,134 +16,187 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
#
|
|
||||||
%define soname 2
|
|
||||||
%define timestamp 20130128
|
|
||||||
|
|
||||||
Name: libewf
|
Name: libewf
|
||||||
Version: 0.0.0+%{timestamp}
|
%define lname libewf2
|
||||||
|
%define timestamp 20130416
|
||||||
|
Version: 0~%timestamp
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Library for the Expert Witness Compression Format (EWF)
|
Summary: Library for the Expert Witness Compression Format (EWF)
|
||||||
License: LGPL-3.0+
|
License: LGPL-3.0+ and GFDL-1.3+
|
||||||
Group: System/Libraries
|
Group: Productivity/File utilities
|
||||||
Url: http://code.google.com/p/libewf/
|
Url: http://code.google.com/p/libewf/
|
||||||
Source0: http://libewf.googlecode.com/files/libewf-20130128.tar.gz
|
|
||||||
Source1: http://sourceforge.net/projects/libewf/files/mount_ewf/mount_ewf-20090113/mount_ewf-20090113.py
|
#DL-URL: https://googledrive.com/host/0B3fBvzttpiiSMTdoaVExWWNsRjg/libewf-%{timestamp}.tar.gz
|
||||||
# PATCH-FIX-OPENSUSE remove_date_time_macros.patch Greg.Freemyer@gmail.com -- rpmlint complains about the macros
|
Source: %name-%timestamp.tar.gz
|
||||||
Patch0: remove_date_time_macros.patch
|
Source2: http://downloads.sf.net/libewf/mount_ewf-20090113.py
|
||||||
BuildRequires: e2fsprogs-devel
|
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
|
||||||
# Needed for language translation support
|
# Needed for language translation support
|
||||||
BuildRequires: gettext
|
BuildRequires: gettext
|
||||||
BuildRequires: libuuid-devel
|
|
||||||
BuildRequires: openssl-devel
|
|
||||||
BuildRequires: pkg-config
|
BuildRequires: pkg-config
|
||||||
#Needed for mount.ewf(.py) support
|
|
||||||
BuildRequires: fuse-devel
|
|
||||||
BuildRequires: python-devel
|
BuildRequires: python-devel
|
||||||
BuildRequires: zlib-devel
|
BuildRequires: xz
|
||||||
Requires: zlib
|
BuildRequires: pkgconfig(bzip2) >= 1.0
|
||||||
Recommends: fuse
|
BuildRequires: pkgconfig(fuse) >= 2.6
|
||||||
|
BuildRequires: pkgconfig(libcaes) >= 20120425
|
||||||
|
#use the factory versions of these if building for factory
|
||||||
|
%if 0%{?suse_version} > 1230
|
||||||
|
BuildRequires: pkgconfig(libcnotify) >= 20120425
|
||||||
|
BuildRequires: pkgconfig(libcpath) >= 20120701
|
||||||
|
BuildRequires: pkgconfig(libcsplit) >= 20120701
|
||||||
|
# these are in filesystems, but not yet in factory so use the internal version
|
||||||
|
#BuildRequires: pkgconfig(libodraw) >= 20120630
|
||||||
|
#BuildRequires: pkgconfig(libsmdev) >= 20120630
|
||||||
|
%endif
|
||||||
|
BuildRequires: pkgconfig(openssl) >= 1.0.0
|
||||||
|
BuildRequires: pkgconfig(uuid) >= 2.20
|
||||||
|
BuildRequires: pkgconfig(zlib) >= 1.2.5
|
||||||
|
# build fails if libyal factory package is used
|
||||||
|
# verified 7/31/2013
|
||||||
|
#BuildRequires: pkgconfig(libsmraw) >= 20120630
|
||||||
|
#BuildRequires: pkgconfig(libhmac) >= 20120425
|
||||||
|
#BuildRequires: pkgconfig(libclocale) >= 20120425
|
||||||
|
#BuildRequires: pkgconfig(libcerror) >= 20120425
|
||||||
|
#BuildRequires: pkgconfig(libbfio) >= 20120426
|
||||||
|
#BuildRequires: pkgconfig(libcdata) >= 20120425
|
||||||
|
#BuildRequires: pkgconfig(libcfile) >= 20120526
|
||||||
|
#BuildRequires: pkgconfig(libuna) >= 20120425
|
||||||
|
# these packages not yet released by upstream
|
||||||
|
#BuildRequires: pkgconfig(libcstring) >= 20120425
|
||||||
|
#BuildRequires: pkgconfig(libcsystem) >= 20120425
|
||||||
|
#BuildRequires: pkgconfig(libfcache) >= 20120405
|
||||||
|
#BuildRequires: pkgconfig(libfvalue) >= 20120428
|
||||||
|
#BuildRequires: pkgconfig(libmfdata) >= 20120425
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
%py_requires
|
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Libewf is a library for support of the Expert Witness Compression Format (EWF),
|
libewf is a library for support of the Expert Witness Compression
|
||||||
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01).
|
Format (EWF). It supports both the SMART format (EWF-S01) and the
|
||||||
Libewf allows you to read and write media information within the EWF files.
|
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 libewf%{soname}
|
%package -n %lname
|
||||||
Summary: Library to support the Expert Witness Compression Format
|
Summary: Library to support the Expert Witness Compression Format
|
||||||
|
License: LGPL-3.0+
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
|
|
||||||
%description -n libewf%{soname}
|
%description -n %lname
|
||||||
libewf is a library for support of the Expert Witness Compression Format (EWF).
|
libewf is a library for support of the Expert Witness Compression
|
||||||
libewf allows you to read media information of EWF files in the SMART (EWF-S01)
|
Format (EWF). It supports both the SMART format (EWF-S01) and the
|
||||||
format and the EnCase (EWF-E01) format. libewf allows to read files created by
|
EnCase format (EWF-E01). libewf allows you to read and write media
|
||||||
EnCase 1 to 6, linen and FTK Imager.
|
information within the EWF files. libewf allows to read files created
|
||||||
|
by EnCase 1 to 6, linen and FTK Imager.
|
||||||
|
|
||||||
%package -n ewftools
|
%package tools
|
||||||
Summary: Utilities for the Expert Witness Compression Format (EWF)
|
Summary: Utilities for the Expert Witness Compression Format (EWF)
|
||||||
|
License: LGPL-3.0+
|
||||||
Group: System/Filesystems
|
Group: System/Filesystems
|
||||||
|
Requires: fuse
|
||||||
Requires: python-fuse >= 0.2
|
Requires: python-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 -n ewftools
|
%description tools
|
||||||
Several tools for reading and writing EWF files.
|
Several tools for reading and writing EWF files.
|
||||||
It contains tools to acquire, verify and export EWF files.
|
It contains tools to acquire, verify and export EWF files.
|
||||||
|
|
||||||
%package devel
|
%package devel
|
||||||
Summary: Development files for %{name}
|
Summary: Development files for libewf, an Expert Witness Compression Format library
|
||||||
|
License: LGPL-3.0+ and GFDL-1.3+
|
||||||
Group: Development/Libraries/C and C++
|
Group: Development/Libraries/C and C++
|
||||||
Requires: %{name}%{soname} = %{version}
|
Requires: %lname = %version
|
||||||
Requires: pkg-config
|
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
The %{name}-devel package contains libraries and header files for
|
libewf is a library for support of the Expert Witness Compression
|
||||||
developing applications that use %{name}.
|
Format (EWF). It supports 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 python-%{name}
|
This subpackage contains libraries and header files for developing
|
||||||
Summary: Python binding for libewf
|
applications that want to make use of %name.
|
||||||
Group: System Environment/Libraries
|
|
||||||
#BuildRequires: python-devel
|
%package -n python-%name
|
||||||
Requires: libewf%{soname} = %{version}
|
Summary: Python bindings for libewf, an Expert Witness Compression format library
|
||||||
|
License: LGPL-3.0+
|
||||||
|
Group: Development/Libraries/Python
|
||||||
Requires: python
|
Requires: python
|
||||||
|
|
||||||
%description -n python-%{name}
|
%description -n python-%name
|
||||||
Python binding for libewf. libewf can create and read EnCase forensic images.
|
Python binding for libewf, which can create and read EnCase forensic
|
||||||
|
images.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n libewf-%{timestamp}
|
%setup -qn libewf-%timestamp
|
||||||
%patch0 -p1
|
%patch -P 1 -p1
|
||||||
|
cp "%SOURCE3" "%SOURCE4" .
|
||||||
|
|
||||||
%build
|
%build
|
||||||
export CFLAGS="%{optflags} -fno-strict-aliasing"
|
#export CFLAGS="%optflags -fno-strict-aliasing"
|
||||||
export CXXFLAGS="%{optflags}"
|
#export CXXFLAGS="%optflags"
|
||||||
%configure --disable-static \
|
%configure --disable-static \
|
||||||
--enable-wide-character-type \
|
--enable-wide-character-type \
|
||||||
--enable-python
|
--enable-python
|
||||||
|
|
||||||
#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
|
||||||
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
#sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
||||||
|
|
||||||
# clean unused-direct-shlib-dependencies
|
# clean unused-direct-shlib-dependencies
|
||||||
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
#sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
|
||||||
|
|
||||||
make %{?_smp_mflags}
|
make %{?_smp_mflags}
|
||||||
|
|
||||||
%install
|
%install
|
||||||
# maintain SLES compatibility
|
|
||||||
make install DESTDIR="%buildroot"
|
make install DESTDIR="%buildroot"
|
||||||
find %{buildroot} -name '*.la' -exec rm -f {} ';'
|
find "%buildroot" -name "*.la" -delete
|
||||||
|
|
||||||
install -D -pm 0755 %{SOURCE1} %{buildroot}/sbin/mount.ewf
|
install -Dpm0755 "%SOURCE2" "%buildroot/sbin/mount.ewf"
|
||||||
ln -s mount.ewf %{buildroot}/sbin/umount.ewf
|
ln -s mount.ewf "%buildroot/sbin/umount.ewf"
|
||||||
|
|
||||||
%post -n libewf%{soname} -p /sbin/ldconfig
|
%post -n %lname -p /sbin/ldconfig
|
||||||
|
%postun -n %lname -p /sbin/ldconfig
|
||||||
|
|
||||||
%postun -n libewf%{soname} -p /sbin/ldconfig
|
%files -n %lname
|
||||||
|
%defattr(-,root,root)
|
||||||
|
%doc AUTHORS COPYING NEWS ChangeLog
|
||||||
|
%_libdir/libewf.so.*
|
||||||
|
|
||||||
%files -n libewf%{soname}
|
%files tools
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING NEWS ChangeLog ABOUT-NLS
|
%_bindir/ewfacquire
|
||||||
%{_libdir}/*.so.*
|
%_bindir/ewfacquirestream
|
||||||
|
%_bindir/ewfexport
|
||||||
|
%_bindir/ewfinfo
|
||||||
|
%_bindir/ewfmount
|
||||||
|
%_bindir/ewfrecover
|
||||||
|
%_bindir/ewfverify
|
||||||
|
### experimental file ###
|
||||||
|
%_bindir/ewfdebug
|
||||||
|
|
||||||
%files -n ewftools
|
%_mandir/man1/ewf*.1*
|
||||||
%defattr(-,root,root,-)
|
/sbin/*mount.ewf
|
||||||
%{_bindir}/ewf*
|
|
||||||
%{_mandir}/man1/*.gz
|
|
||||||
/sbin/*.ewf
|
|
||||||
|
|
||||||
%files devel
|
%files devel
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root)
|
||||||
%{_includedir}/libewf.h
|
%doc AUTHORS ChangeLog COPYING NEWS README README.dll
|
||||||
%{_includedir}/libewf/
|
%doc *.pdf
|
||||||
%{_libdir}/*.so
|
%_includedir/libewf.h
|
||||||
%{_libdir}/pkgconfig/libewf.pc
|
%_includedir/libewf/
|
||||||
%{_mandir}/man3/*.gz
|
%_libdir/libewf.so
|
||||||
|
%_libdir/pkgconfig/libewf.pc
|
||||||
|
%_mandir/man3/libewf.3*
|
||||||
|
|
||||||
%files -n python-%{name}
|
%files -n python-%name
|
||||||
%defattr(644,root,root,755)
|
%defattr(-,root,root)
|
||||||
%doc AUTHORS COPYING NEWS README
|
%doc AUTHORS COPYING NEWS README
|
||||||
%{python_sitearch}/*.so
|
%python_sitearch/pyewf.so
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
@ -1,3 +1,13 @@
|
|||||||
|
From: <Greg.Freemyer@gmail.com>
|
||||||
|
Upstream: openSUSE-specific, but merging is nevertheless welcome
|
||||||
|
|
||||||
|
src: kill __DATE__ and __TIME__
|
||||||
|
|
||||||
|
These macros are undesired on at least OBS (and rpmlint subsequently
|
||||||
|
warns about their use). Besides, they do not add any noticable value
|
||||||
|
because packages may get recompiled at practically any time.
|
||||||
|
-<jengelh@inai.de>
|
||||||
|
|
||||||
Index: libewf-20120813/ewftools/info_handle.c
|
Index: libewf-20120813/ewftools/info_handle.c
|
||||||
===================================================================
|
===================================================================
|
||||||
--- libewf-20120813.orig/ewftools/info_handle.c
|
--- libewf-20120813.orig/ewftools/info_handle.c
|
||||||
|
Loading…
Reference in New Issue
Block a user