2013-12-03 16:54:55 +01:00
|
|
|
#
|
|
|
|
# spec file for package libolecf
|
|
|
|
#
|
2020-04-09 00:56:59 +02:00
|
|
|
# Copyright (c) 2020 SUSE LLC
|
2013-12-03 16:54:55 +01:00
|
|
|
#
|
|
|
|
# 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.
|
|
|
|
|
2019-04-19 22:29:45 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2013-12-03 16:54:55 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: libolecf
|
|
|
|
%define lname libolecf1
|
2020-04-09 00:56:59 +02:00
|
|
|
%define timestamp 20191221
|
2013-12-03 16:54:55 +01:00
|
|
|
Version: 0~%timestamp
|
|
|
|
Release: 0
|
2014-08-14 14:58:10 +02:00
|
|
|
Summary: Library and tools to access the OLE 2 Compound File (OLECF) format
|
2019-04-19 22:29:45 +02:00
|
|
|
License: LGPL-3.0-or-later AND GFDL-1.3-or-later
|
2013-12-03 16:54:55 +01:00
|
|
|
Group: Productivity/File utilities
|
2020-04-09 00:56:59 +02:00
|
|
|
URL: https://github.com/libyal/libolecf/wiki
|
2015-01-30 15:06:41 +01:00
|
|
|
Source: https://github.com/libyal/libolecf/releases/download/%timestamp/%name-alpha-%timestamp.tar.gz
|
2013-12-03 16:54:55 +01:00
|
|
|
Source2: OLE_Compound_File_format.pdf
|
|
|
|
BuildRequires: pkg-config
|
2014-08-14 14:58:10 +02:00
|
|
|
BuildRequires: pkgconfig(libbfio)
|
2019-04-19 22:29:45 +02:00
|
|
|
BuildRequires: pkgconfig(libcdata) >= 20190112
|
2020-04-09 00:56:59 +02:00
|
|
|
BuildRequires: pkgconfig(libcerror) > 20160327
|
2014-08-14 14:58:10 +02:00
|
|
|
BuildRequires: pkgconfig(libcfile)
|
2013-12-03 16:54:55 +01:00
|
|
|
BuildRequires: pkgconfig(libclocale)
|
|
|
|
BuildRequires: pkgconfig(libcnotify)
|
|
|
|
BuildRequires: pkgconfig(libcpath)
|
2014-08-14 14:58:10 +02:00
|
|
|
BuildRequires: pkgconfig(libcsplit)
|
2020-04-09 00:56:59 +02:00
|
|
|
BuildRequires: pkgconfig(libcstring) >= 20150101
|
2015-01-30 15:06:41 +01:00
|
|
|
BuildRequires: pkgconfig(libcthreads) >= 20130723
|
2020-04-15 05:32:59 +02:00
|
|
|
BuildRequires: pkgconfig(libfguid) >= 20180724
|
2015-01-30 15:06:41 +01:00
|
|
|
BuildRequires: pkgconfig(libfole) >= 20120426
|
2014-08-14 14:58:10 +02:00
|
|
|
BuildRequires: pkgconfig(libuna)
|
2016-01-27 16:30:42 +01:00
|
|
|
|
2020-04-15 05:32:59 +02:00
|
|
|
# using the below from factory causes python-plaso self-tests to fail
|
|
|
|
#BuildRequires: pkgconfig(libfdatetime) > 20180910
|
|
|
|
#BuildRequires: pkgconfig(libfvalue) > 20180817
|
|
|
|
|
2015-01-30 15:06:41 +01:00
|
|
|
# released, but not yet packaged. This is the only user in OBS.
|
|
|
|
#BuildRequires: pkgconfig(libwfps) > 20150104
|
2013-12-03 16:54:55 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Library and tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
|
|
|
|
|
|
|
|
%package -n %lname
|
2014-08-14 14:58:10 +02:00
|
|
|
Summary: Library to access the OLE 2 Compound File (OLECF) format
|
2019-04-19 22:29:45 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2013-12-03 16:54:55 +01:00
|
|
|
Group: System/Libraries
|
|
|
|
|
|
|
|
%description -n %lname
|
|
|
|
Library to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
|
|
|
|
|
|
|
|
|
|
|
|
%package tools
|
2014-08-14 14:58:10 +02:00
|
|
|
Summary: Tools to access the OLE 2 Compound File (OLECF) format
|
2019-04-19 22:29:45 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2013-12-03 16:54:55 +01:00
|
|
|
Group: System/Filesystems
|
2014-08-21 17:25:01 +02:00
|
|
|
Requires: %lname = %version
|
2013-12-03 16:54:55 +01:00
|
|
|
|
|
|
|
%description tools
|
|
|
|
Tools to access the OLE 2 Compound File (OLECF) format. The OLE 2 Compound File format is used to store certain versions of Microsoft Office files, thumbs.db and other file formats.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Development files for %name
|
2019-04-19 22:29:45 +02:00
|
|
|
License: LGPL-3.0-or-later AND GFDL-1.3-or-later
|
2013-12-03 16:54:55 +01:00
|
|
|
Group: Development/Libraries/C and C++
|
|
|
|
Requires: %lname = %version
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
libolecf is a library to access the OLE 2 Compound File (OLECF) format.
|
|
|
|
|
|
|
|
This subpackage contains libraries and header files for developing
|
|
|
|
applications that want to make use of %name.
|
|
|
|
|
2020-04-09 00:56:59 +02:00
|
|
|
%package -n python2-%{name}
|
2013-12-03 16:54:55 +01:00
|
|
|
Summary: Python bindings for libolecf
|
2019-04-19 22:29:45 +02:00
|
|
|
License: LGPL-3.0-or-later
|
2013-12-03 16:54:55 +01:00
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %lname = %version
|
2020-04-09 00:56:59 +02:00
|
|
|
BuildRequires: pkgconfig(python2)
|
|
|
|
Obsoletes: pyolecf = 20191221
|
|
|
|
Obsoletes: python-%{name} = 20191221
|
2013-12-03 16:54:55 +01:00
|
|
|
|
2020-04-09 00:56:59 +02:00
|
|
|
%description -n python2-%name
|
|
|
|
Python bindings for libolecf, which can read MS IE cache files.
|
|
|
|
|
|
|
|
%package -n python3-%{name}
|
|
|
|
Summary: Python bindings for libolecf
|
|
|
|
License: LGPL-3.0-or-later
|
|
|
|
Group: Development/Libraries/Python
|
|
|
|
Requires: %lname = %version
|
|
|
|
BuildRequires: pkgconfig(python3)
|
|
|
|
|
|
|
|
%description -n python3-%name
|
2013-12-03 16:54:55 +01:00
|
|
|
Python bindings for libolecf, which can read MS IE cache files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -qn libolecf-%timestamp
|
|
|
|
cp "%SOURCE2" .
|
|
|
|
|
|
|
|
%build
|
2020-04-09 00:56:59 +02:00
|
|
|
%configure --disable-static --enable-wide-character-type --enable-python2 --enable-python3
|
2013-12-03 16:54:55 +01:00
|
|
|
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)
|
2019-04-19 22:29:45 +02:00
|
|
|
%doc AUTHORS ChangeLog
|
|
|
|
%license COPYING
|
2013-12-03 16:54:55 +01:00
|
|
|
%_libdir/libolecf.so.*
|
|
|
|
|
|
|
|
%files tools
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%_bindir/olecf*
|
|
|
|
%_mandir/man1/olecf*.1*
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc OLE_Compound_File_format.pdf
|
|
|
|
%_includedir/libolecf.h
|
|
|
|
%_includedir/libolecf/
|
|
|
|
%_libdir/libolecf.so
|
|
|
|
%_libdir/pkgconfig/libolecf.pc
|
|
|
|
%_mandir/man3/libolecf.3*
|
|
|
|
|
2020-04-09 00:56:59 +02:00
|
|
|
%files -n python2-%name
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%doc AUTHORS README
|
|
|
|
%license COPYING
|
|
|
|
%python2_sitearch/pyolecf.so
|
|
|
|
|
|
|
|
%files -n python3-%name
|
2013-12-03 16:54:55 +01:00
|
|
|
%defattr(-,root,root)
|
2019-04-19 22:29:45 +02:00
|
|
|
%doc AUTHORS README
|
|
|
|
%license COPYING
|
2020-04-09 00:56:59 +02:00
|
|
|
%python3_sitearch/pyolecf.so
|
2013-12-03 16:54:55 +01:00
|
|
|
|
|
|
|
%changelog
|