494f32f
%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print(get_python_lib(1))")}
494f32f
8569d16
Name:           libewf
c7a843a
Version:        20130128
c7a843a
Release:        1%{?dist}
8569d16
Summary:        Library for the Expert Witness Compression Format (EWF)
8569d16
8569d16
Group:          System Environment/Libraries
c7a843a
License:        LGPLv3+
494f32f
URL:            http://sourceforge.net/projects/libewf/
c7a843a
Source0:        http://libewf.googlecode.com/files/libewf-%{version}.tar.gz
8569d16
c7a843a
BuildRequires:  fuse-devel
55ae285
BuildRequires:  libuuid-devel
8569d16
BuildRequires:  openssl-devel
8569d16
BuildRequires:  zlib-devel
da7113f
#Needed for mount.ewf(.py) support
da7113f
BuildRequires:  python-devel
8569d16
8569d16
8569d16
%description
8569d16
Libewf is a library for support of the Expert Witness Compression Format (EWF),
8569d16
it support both the SMART format (EWF-S01) and the EnCase format (EWF-E01). 
8569d16
Libewf allows you to read and write media information within the EWF files.
8569d16
78a65a4
8569d16
%package -n     ewftools
494f32f
Summary:        Utilities for the Expert Witness Compression Format (EWF)
8569d16
Group:          Applications/System
8569d16
Requires:       %{name} = %{version}-%{release}
78a65a4
Provides:       %{name}-tools = %{version}-%{release}
78a65a4
Obsoletes:      %{name}-tools <= %{version}-%{release}
da7113f
Requires:       fuse-python >= 0.2
c7a843a
#Requires:       disktype
8569d16
8569d16
%description -n ewftools
da7113f
Several tools for reading and writing EWF files.
da7113f
It contains tools to acquire, verify and export EWF files.
8569d16
8569d16
%package        devel
8569d16
Summary:        Development files for %{name}
8569d16
Group:          Development/Libraries
8569d16
Requires:       %{name} = %{version}-%{release}
74a5020
Requires:       zlib-devel
8569d16
Requires:       pkgconfig
8569d16
8569d16
%description    devel
8569d16
The %{name}-devel package contains libraries and header files for
8569d16
developing applications that use %{name}.
8569d16
8569d16
8569d16
%prep
74a5020
%setup -q
8569d16
8569d16
8569d16
%build
494f32f
%configure --disable-static \
494f32f
  --enable-wide-character-type \
494f32f
  --enable-python
494f32f
74a5020
78a65a4
# Remove rpath from libtool
78a65a4
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
78a65a4
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
78a65a4
74a5020
# clean unused-direct-shlib-dependencies
74a5020
sed -i -e 's! -shared ! -Wl,--as-needed\0!g' libtool
74a5020
8569d16
make %{?_smp_mflags}
8569d16
8569d16
8569d16
%install
8569d16
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="install -p"
8569d16
find $RPM_BUILD_ROOT -name '*.la' -exec rm -f {} ';'
8569d16
8569d16
8569d16
8569d16
%post -p /sbin/ldconfig
8569d16
8569d16
%postun -p /sbin/ldconfig
8569d16
8569d16
8569d16
%files
8569d16
%doc AUTHORS COPYING NEWS
8569d16
%{_libdir}/*.so.*
8569d16
8569d16
%files -n ewftools
8569d16
%{_bindir}/ewf*
8569d16
%{_mandir}/man1/*.gz
494f32f
%{python_sitearch}/pyewf.so
8569d16
8569d16
%files devel
8569d16
%{_includedir}/libewf.h
8569d16
%{_includedir}/libewf/
8569d16
%{_libdir}/*.so
8569d16
%{_libdir}/pkgconfig/libewf.pc
8569d16
%{_mandir}/man3/*.gz
8569d16
8569d16
%changelog
c7a843a
* Thu Feb 28 2013 Nicolas Chauvet <kwizart@gmail.com> - 20130128-1
c7a843a
- Update to 20130128
c7a843a
- Switch to LGPLv3+
c7a843a
- Add BR fuse-devel
c7a843a
- Spec clean-up
c7a843a
55b3ca7
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100226-6
55b3ca7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
55b3ca7
e73da88
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100226-5
e73da88
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
e73da88
516daa2
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100226-4
516daa2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
516daa2
1b52bd1
* Mon Feb 07 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20100226-3
1b52bd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
1b52bd1
e16e085
* Wed Jul 21 2010 David Malcolm <dmalcolm@redhat.com> - 20100226-2
e16e085
- Rebuilt for https://fedoraproject.org/wiki/Features/Python_2.7/MassRebuild
e16e085
494f32f
* Mon Mar  8 2010 Nicolas Chauvet <kwizart@fedoraproject.org> - 20100226-1
494f32f
- Update to 20100226
494f32f
- Avoid version on python module.
494f32f
0b25110
* Fri Aug 21 2009 Tomas Mraz <tmraz@redhat.com> - 20080501-9
0b25110
- rebuilt with new openssl
0b25110
04bea67
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080501-8
04bea67
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
04bea67
55ae285
* Mon Jun 29 2009 kwizart < kwizart at gmail.com > - 20080501-7
55ae285
- Switch to libuuid-devel usage over e2fsprogs-devel
55ae285
acc66a5
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 20080501-6
acc66a5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
acc66a5
e027bfe
* Thu Jan 15 2009 kwizart < kwizart at gmail.com > - 20080501-5
e027bfe
- Update mount_ewf to 20090113
e027bfe
fb59c22
* Sat Dec 27 2008 kwizart < kwizart at gmail.com > - 20080501-4
fb59c22
- Fix for python2.6
fb59c22
2a312d7
* Mon Sep 15 2008 kwizart < kwizart at gmail.com > - 20080501-3
2a312d7
- Update mount_ewf to 20080910
2a312d7
- Switch URL to sourceforge site
2a312d7
9c1ed93
* Sat Jun  7 2008 kwizart < kwizart at gmail.com > - 20080501-2
9c1ed93
- Update mount_ewf to 20080513
9c1ed93
da7113f
* Thu May  1 2008 kwizart < kwizart at gmail.com > - 20080501-1
da7113f
- Update to 20080501 (bugfix)
da7113f
- Patch for pkg-config was merged with this release
da7113f
- Improve ewftools description.
da7113f
da7113f
* Tue Apr 29 2008 kwizart < kwizart at gmail.com > - 20080322-3
da7113f
- Add disktype Requires for ewftools (required for mount.ewf support).
da7113f
- Patch libewf.pc to export only the needed libs
da7113f
da7113f
* Tue Apr 22 2008 kwizart < kwizart at gmail.com > - 20080322-2
da7113f
- Add support for mount.ewf with fuse-python
da7113f
78a65a4
* Wed Mar 26 2008 kwizart < kwizart at gmail.com > - 20080322-1
78a65a4
- Update to 20080322 (Stable)
78a65a4
- License update: the BSD advertisement clause was removed.
78a65a4
74a5020
* Mon Mar 17 2008 kwizart < kwizart at gmail.com > - 20080315-1
74a5020
- Update to 20080315 (beta)
74a5020
- Change versionning scheme (use date for version).
4360a3d
4f23c97
* Mon Nov  5 2007 kwizart < kwizart at gmail.com > - 0-2.20070512
4f23c97
- Update License to BSD with advertising
4f23c97
4f23c97
* Fri Nov  2 2007 kwizart < kwizart at gmail.com > - 0-1.20070512
8569d16
- Initial package for Fedora
8569d16