Accepting request 459352 from security:forensics

2017 update; fix issues noted by Jan Engelhardt

OBS-URL: https://build.opensuse.org/request/show/459352
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/libfsntfs?expand=0&rev=4
This commit is contained in:
Dominique Leuenberger 2017-03-02 18:27:47 +00:00 committed by Git OBS Bridge
commit d98443284e
4 changed files with 51 additions and 16 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:181956668b2270f50ea7d7e5074e35a31229c44e19c6f08b418a54da76c20d3e
size 1589620

View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:f125cc66d16a5d1060b8f0a1f8dbf6b8d88070fee73cffebcac0ecdc58860893
size 1652286

View File

@ -1,3 +1,21 @@
-------------------------------------------------------------------
Thu Feb 16 22:30:06 UTC 2017 - Greg.Freemyer@gmail.com
- use internal version of libfdata and libfcache.
* New releases broke libfsntfs compiles.
- change RPM Group for python binding to development/languages/python
-------------------------------------------------------------------
Thu Jul 28 22:25:59 UTC 2016 - Greg.Freemyer@gmail.com
- update to v0~20160418
* Worked on security descriptor support
* worked on Python bindings
* worked on Python 3 support
* 2016 update
- use libcstring, libfdata from factory again
- add python3 binding subpackage
-------------------------------------------------------------------
Wed Feb 3 20:16:14 UTC 2016 - Greg.Freemyer@gmail.com

View File

@ -1,7 +1,7 @@
#
# spec file for package libfsntfs
#
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
# 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
@ -17,7 +17,7 @@
%define lname libfsntfs1
%define timestamp 20151130
%define timestamp 20160418
Name: libfsntfs
Version: 0~%{timestamp}
Release: 0
@ -35,18 +35,17 @@ BuildRequires: pkgconfig(libclocale) >= 20130609
BuildRequires: pkgconfig(libcnotify) >= 20130609
BuildRequires: pkgconfig(libcpath) >= 20130609
BuildRequires: pkgconfig(libcsplit) >= 20130609
BuildRequires: pkgconfig(libcstring) >= 20150101
BuildRequires: pkgconfig(libcsystem) >= 20120425
BuildRequires: pkgconfig(libcthreads)
BuildRequires: pkgconfig(libfcache)
BuildRequires: pkgconfig(libfdatetime) >= 20130317
BuildRequires: pkgconfig(libfguid) >= 20130904
BuildRequires: pkgconfig(libfwnt)
BuildRequires: pkgconfig(libuna) >= 20120425
#as of Feb 2, 2016, the various released versions of the below all cause compile errors.
# libcerror and libcstring are examples of very fundamental parts of libyal, but the latest released version causes build errors here (12/2/2015).
#BuildRequires: pkgconfig(libcerror) > 20150407
#BuildRequires: pkgconfig(libcstring) > 20150101
#as of Feb 28, 2017, recent releases of the below all cause compile errors.
#BuildRequires: pkgconfig(libfdata)
#BuildRequires: pkgconfig(libfcache)
#BuildRequires: pkgconfig(libcerror) > 20170101
#not yet in OBS
#BuildRequires: pkgconfig(libfusn)
BuildRoot: %{_tmppath}/%{name}-%{version}-build
@ -57,7 +56,7 @@ Library and tools to access the New Technology File System (NTFS).
Note that this project currently only focuses on the analysis of the format.
%package -n %{lname}
Summary: Library to access the New Technology File System (NTFS).
Summary: Library to access the New Technology File System (NTFS)
License: LGPL-3.0+
Group: System/Libraries
@ -67,7 +66,7 @@ libfsntfs is a library to access the New Technology File System (NTFS).
Note that this project currently only focuses on the analysis of the format.
%package tools
Summary: Tools to access the New Technology File System (NTFS).
Summary: Tools to access the New Technology File System (NTFS)
License: LGPL-3.0+
Group: Productivity/File utilities
@ -89,21 +88,34 @@ This subpackage contains libraries and header files for developing
applications that want to make use of %{name}.
%package -n python-%{name}
Summary: Python bindings for libfsntfs
Summary: Python 2 bindings for libfsntfs
License: LGPL-3.0+
Group: Development/Libraries/Python
Group: Development/Languages/Python
Requires: %{lname} = %{version}
Requires: python
BuildRequires: pkgconfig(python2)
Provides: pyfsntfs = %{version}
%description -n python-%{name}
Python binding for libfsntfs, which can access the NTFS filesystem.
Python 2 binding for libfsntfs, which can access the NTFS filesystem.
%package -n python3-%{name}
Summary: Python 3 bindings for libfsntfs
License: LGPL-3.0+
Group: Development/Languages/Python
Requires: %{lname} = %{version}
Requires: python3
BuildRequires: pkgconfig(python3)
Provides: pyfsntfs = %{version}
%description -n python3-%{name}
Python 3 binding for libfsntfs, which can access the NTFS filesystem.
%prep
%setup -q -n libfsntfs-%{timestamp}
%build
%configure --disable-static --enable-wide-character-type --enable-python
%configure --disable-static --enable-wide-character-type --enable-python2 --enable-python3
make %{?_smp_mflags}
%install
@ -137,4 +149,9 @@ find %{buildroot} -type f -name "*.la" -delete -print
%doc AUTHORS COPYING README
%{python_sitearch}/pyfsntfs.so
%files -n python3-%{name}
%defattr(-,root,root)
%doc AUTHORS COPYING
%{python3_sitearch}/pyfsntfs.so
%changelog