libsmraw/libsmraw.spec
Greg Freemyer ed7b6bae08 Accepting request 530600 from home:gregfreemyer:Tools-for-forensic-boot-cd
- update to v0~20170803
	* applied 2017 update
	* worked on tests
- change Group: field for python binding to devel/languages/python

OBS-URL: https://build.opensuse.org/request/show/530600
OBS-URL: https://build.opensuse.org/package/show/security:forensics/libsmraw?expand=0&rev=7
2017-10-02 22:47:07 +00:00

133 lines
4.2 KiB
RPMSpec

#
# spec file for package libsmraw
#
# Copyright (c) 2017 SUSE LINUX 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/
#
Name: libsmraw
%define lname libsmraw1
%define timestamp 20170803
Version: 0~%timestamp
Release: 0
Summary: Library and tools to access the (split) RAW image format
License: LGPL-3.0+
Group: Productivity/File utilities
Url: https://github.com/libyal/libsmraw/wiki
Source: https://github.com/libyal/libsmraw/releases/download/%timestamp/%name-alpha-%timestamp.tar.gz
BuildRequires: pkg-config
BuildRequires: python-devel
BuildRequires: pkgconfig(fuse) >= 2.6
BuildRequires: pkgconfig(libbfio) >= 20120426
BuildRequires: pkgconfig(libcdata) >= 20120425
BuildRequires: pkgconfig(libcerror) >= 20170101
BuildRequires: pkgconfig(libcfile) >= 20120526
BuildRequires: pkgconfig(libclocale) >= 20120425
BuildRequires: pkgconfig(libcnotify) >= 20120425
BuildRequires: pkgconfig(libcpath) >= 20120701
BuildRequires: pkgconfig(libcsplit) >= 20120701
BuildRequires: pkgconfig(libcstring) >= 20150101
BuildRequires: pkgconfig(libcsystem) >= 20120425
BuildRequires: pkgconfig(libcthreads) >= 20120701
BuildRequires: pkgconfig(libfcache) >= 20120425
BuildRequires: pkgconfig(libfdata) >= 20120425
BuildRequires: pkgconfig(libfvalue) >= 20120428
BuildRequires: pkgconfig(libhmac) >= 20120425
BuildRequires: pkgconfig(libuna) >= 20120425
BuildRequires: pkgconfig(openssl) >= 1.0
BuildRoot: %{_tmppath}/%{name}-%{version}-build
%description
libsmraw is a library to access the storage media RAW format.
The library supports both RAW and split RAW.
%package -n %lname
Summary: Library and tools to access the (split) RAW image format
Group: System/Libraries
%description -n %lname
libsmraw is a library to access the storage media RAW format.
The library supports both RAW and split RAW.
%package devel
Summary: Development files for libsmraw, a (split) RAW image file library
Group: Development/Libraries/C and C++
Requires: %lname = %version
%description devel
libsmraw is a library to access the storage media RAW format.
This subpackage contains libraries and header files for developing
applications that want to make use of libsmraw.
%package tools
Summary: Utilities for reading and writing storage media (split) RAW files
Group: Productivity/File utilities
%description tools
This subpackage contains the utility programs from libsmraw to
acquire, export, query and verify storage media (split) RAW files.
%package -n python-%name
Summary: Python bindings for libsmraw
Group: Development/Languages/Python
Requires: %lname = %version
Requires: python
Provides: pysmraw
%description -n python-%name
Python bindings for libsmraw, which provides functionality to work
with (split) RAW files.
%prep
%setup -qn libsmraw-%timestamp
%build
%configure --disable-static --enable-wide-character-type --enable-python
make %{?_smp_mflags}
%install
make install DESTDIR="%buildroot"
find "%buildroot" -name "*.la" -delete
%post -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig
%files -n %lname
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog
%_libdir/libsmraw.so.1*
%files devel
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog
%_includedir/libsmraw*
%_libdir/libsmraw.so
%_libdir/pkgconfig/libsmraw.pc
%_mandir/man3/libsmraw.3*
%files tools
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog
%_bindir/smrawverify
%_bindir/smrawmount
%_mandir/man1/smrawmount.1*
%files -n python-%name
%defattr(-,root,root)
%doc AUTHORS COPYING ChangeLog
%python_sitearch/pysmraw.so
%changelog