File afflib.spec of Package afflib

#
# spec file for package afflib
#
# Copyright (c) 2012 SUSE LINUX Products GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#


Summary:        Library and tools for working with the Advanced Forensics Format
Group:          System/Libraries

Name:           afflib
Version:        3.7.0
Release:        0
License:        BSD-4-Clause
Url:            http://afflib.org/
# Source:         %{name}-%{version}.tar.gz
Source:         https://github.com/downloads/simsong/AFFLIBv3/%{name}-%{version}.tar.gz
Patch0:         afflib-3.6.12-fix-vvfat-overflow.patch
Patch1:         afflib-3.6.12-no-strict-aliasing.patch
Patch2:         afflib-3.6.12-fix-sha256-display.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  autoconf
BuildRequires:  automake
BuildRequires:  fuse-devel
BuildRequires:  gcc-c++
BuildRequires:  gettext-tools
BuildRequires:  libcurl-devel
BuildRequires:  libexpat-devel
BuildRequires:  libopenssl-devel
BuildRequires:  libtool
BuildRequires:  ncurses-devel
BuildRequires:  python-devel
BuildRequires:  readline-devel
BuildRequires:  zlib-devel

%description
The Advanced Forensics Format (AFF) is an openly specified, extensible
file format for storing and analyzing hard disk images and other types
of digital evidence.

%package -n libafflib0
Summary:        Library for working with the Advanced Forensics Format-Runtime support
Group:          System/Libraries

%description -n libafflib0
The Advanced Forensics Format (AFF) is an openly specified, extensible
file format for storing and analyzing hard disk images and other types
of digital evidence.

This package contains the shared libraries necessary for software that
needs to work with the AFF library.

%package -n afflib-devel
Summary:        Library for working with the Advanced Forensics Format - Build support
Group:          Development/Libraries/C and C++
Requires:       libafflib0 = %{version} zlib-devel libcurl-devel libexpat-devel fuse-devel python-devel libopenssl-devel ncurses-devel readline-devel gcc-c++
BuildRequires:  pkg-config

%description -n afflib-devel
The Advanced Forensics Format (AFF) is an openly specified, extensible
file format for storing and analyzing hard disk images and other types
of digital evidence.

This package contains the files that are necessary to develop software
that makes use of afflib.

%package -n afflib-devel-static
Summary:        Static Library for working with the Advanced Forensics Format
Group:          Development/Libraries/C and C++
Requires:       afflib-devel = %{version}
BuildRequires:  pkg-config

%description -n afflib-devel-static
The Advanced Forensics Format (AFF) is an openly specified, extensible
file format for storing and analyzing hard disk images and other types
of digital evidence.

This package contains the static libraries if required to build and develop software. This package requires afflib-devel to provide header files etc.

%package -n afflib-tools
Summary:        Tools for working with the Advanced Forensics Format
Group:          Development/Libraries/C and C++
Requires:       libafflib0 = %{version}

%description -n afflib-tools
The Advanced Forensics Format (AFF) is an openly specified, extensible
file format for storing and analyzing hard disk images and other types
of digital evidence.

This package contains tools that enable working with AFF files.

%package -n python-afflib
Summary:        Library for working with the Advanced Forensics Format - Python support
Group:          Development/Libraries/Python
Requires:       libafflib0 = %{version}
%py_requires -d

%description -n python-afflib
The Advanced Forensics Format (AFF) is an openly specified, extensible
file format for storing and analyzing hard disk images and other types
of digital evidence.

This package contains language bindings to work with afflib from Python.

%prep
%setup -q
%patch0 -p 1
%patch1 -p 1
%patch2 -p 1
autoreconf --force --install

%build
%configure --enable-s3 --enable-fuse --enable-python
%{__make} %{?_smp_mflags}

%install
%make_install
rm %{buildroot}%{_libdir}/*.la
rm %{buildroot}%{python_sitearch}/pyaff.a
rm %{buildroot}%{python_sitearch}/pyaff.la

%post -n libafflib0 -p /sbin/ldconfig

%postun -n libafflib0 -p /sbin/ldconfig

%files -n libafflib0
%defattr(-,root,root,-)
%doc AUTHORS BUGLIST.txt COPYING NEWS README README_Linux.txt
%attr(755,root,root) %{_libdir}/libafflib.so.*

%files -n afflib-devel
%defattr(-,root,root,-)
%{_includedir}/afflib
%{_includedir}/afflib/*
%{_libdir}/libafflib.so
%{_libdir}/pkgconfig/afflib.pc

%files -n afflib-devel-static
%attr(-,root,root) %{_libdir}/libafflib.a

%files -n afflib-tools
%defattr(-,root,root,-)
%attr(755,root,root) %{_bindir}/aff*
%doc %{_mandir}/man1/*

%files -n python-afflib
%attr(755,root,root) %{python_sitearch}/pyaff.so

%changelog
openSUSE Build Service is sponsored by