Files
python-dfVFS/python-dfVFS.spec

91 lines
3.5 KiB
RPMSpec
Raw Normal View History

#
# spec file for package python-dfVFS
#
# 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/
#
%define timestamp 20170723
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
Name: python-dfVFS
Version: 0~%{timestamp}
Release: 0
Summary: Digital Forensics Virtual File System
License: Apache-2.0
Group: Productivity/File utilities
Url: https://github.com/log2timeline/dfvfs/wiki
Source: https://github.com/log2timeline/dfvfs/releases/download/%timestamp/dfvfs-%timestamp.tar.gz
Accepting request 533477 from home:gregfreemyer:Tools-for-forensic-boot-cd - update to v0~20170723 * worked on internal test structure - add python3 support - implement python singlespec syntax - In Requires: lines for libyal python bindings, use the python-lib* variant of the package Python singlespec automatically converts that to python2 / python3 as appropriate - remove Requres: python-protobuf. It has been replaced by a JSON solution - adopt upstream name of python{23}-tsk3 - correct Requires to have 0~ prefix - update to v0~20160918 * still pre-release and no ChangeLog available * add requires pyfwnt, pyvslvm, python-dfdatetime - update to v0~20160108 * still pre-release and no ChangeLog available * required by plaso v1.4.0 which is in feature freeze at this point - update pyvshadow requires to version v0~20160110 - add Requires: pyfsntfs - update to v0~20150708 * warning, breaks plaso prior to v1.3.0rc2 * still pre-release and no ChangeLog available - update to v0~20150408 * Plaso is the primary consumer of dfVFS, but it can be used standalone and may have other consumers in the future * Warning breaks JSON serialization in plaso and require a plaso version of 20150507 or later. - update to v0~20150303 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - add Requires: pysigscan, it is a new dependency - add a new %exclude in %files due to doubly included %doc files - remove spec file entry deleting installed examples. Resolved upstream. * see https://github.com/log2timeline/dfvfs/issues/4 - chmod run_tests.py to remove the executable bits. Was causing a rmplint warning. - update to v0~20150108 * bugfix for auto-dependency build - add explicit "%py_compile ." to resolve rpmlint complaint about datestamps not matching - add the examples folder to the %doc section of %files - add run_tests.py to the %doc section of %files - upgrade to v0~20141220 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - v0~20141220 required by latest plaso release - update Url field to point to the new github site - update source to be complete URL - delete DL_URL field - add an exclude for the "examples" that are provided. They need a better namespace. - add check_dependencies.py to %doc so that users can verify they have usable dependencies - add a %doc line to %files section - change the license tag to Apache-2.0 - add Requires libvmdk since it is now in OBS - add Requires libvhdi since it is now in OBS - add missing "Requires: pyqcow" line to specfile - remove %attr(755...) line and instead use sed to remove #!/usr/bin/python from *py files - cleanup Requires: in general - initial version in OBS (version 0~20140727) OBS-URL: https://build.opensuse.org/request/show/533477 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfVFS?expand=0&rev=21
2017-10-11 19:43:15 +00:00
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Accepting request 533477 from home:gregfreemyer:Tools-for-forensic-boot-cd - update to v0~20170723 * worked on internal test structure - add python3 support - implement python singlespec syntax - In Requires: lines for libyal python bindings, use the python-lib* variant of the package Python singlespec automatically converts that to python2 / python3 as appropriate - remove Requres: python-protobuf. It has been replaced by a JSON solution - adopt upstream name of python{23}-tsk3 - correct Requires to have 0~ prefix - update to v0~20160918 * still pre-release and no ChangeLog available * add requires pyfwnt, pyvslvm, python-dfdatetime - update to v0~20160108 * still pre-release and no ChangeLog available * required by plaso v1.4.0 which is in feature freeze at this point - update pyvshadow requires to version v0~20160110 - add Requires: pyfsntfs - update to v0~20150708 * warning, breaks plaso prior to v1.3.0rc2 * still pre-release and no ChangeLog available - update to v0~20150408 * Plaso is the primary consumer of dfVFS, but it can be used standalone and may have other consumers in the future * Warning breaks JSON serialization in plaso and require a plaso version of 20150507 or later. - update to v0~20150303 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - add Requires: pysigscan, it is a new dependency - add a new %exclude in %files due to doubly included %doc files - remove spec file entry deleting installed examples. Resolved upstream. * see https://github.com/log2timeline/dfvfs/issues/4 - chmod run_tests.py to remove the executable bits. Was causing a rmplint warning. - update to v0~20150108 * bugfix for auto-dependency build - add explicit "%py_compile ." to resolve rpmlint complaint about datestamps not matching - add the examples folder to the %doc section of %files - add run_tests.py to the %doc section of %files - upgrade to v0~20141220 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - v0~20141220 required by latest plaso release - update Url field to point to the new github site - update source to be complete URL - delete DL_URL field - add an exclude for the "examples" that are provided. They need a better namespace. - add check_dependencies.py to %doc so that users can verify they have usable dependencies - add a %doc line to %files section - change the license tag to Apache-2.0 - add Requires libvmdk since it is now in OBS - add Requires libvhdi since it is now in OBS - add missing "Requires: pyqcow" line to specfile - remove %attr(755...) line and instead use sed to remove #!/usr/bin/python from *py files - cleanup Requires: in general - initial version in OBS (version 0~20140727) OBS-URL: https://build.opensuse.org/request/show/533477 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfVFS?expand=0&rev=21
2017-10-11 19:43:15 +00:00
# Use the python- variant of the libyal python bindings. This allows python singlespec to tweak the Requires for python2 and python3
Requires: python-construct
Requires: python-dfdatetime >= 0~20160814
Accepting request 533477 from home:gregfreemyer:Tools-for-forensic-boot-cd - update to v0~20170723 * worked on internal test structure - add python3 support - implement python singlespec syntax - In Requires: lines for libyal python bindings, use the python-lib* variant of the package Python singlespec automatically converts that to python2 / python3 as appropriate - remove Requres: python-protobuf. It has been replaced by a JSON solution - adopt upstream name of python{23}-tsk3 - correct Requires to have 0~ prefix - update to v0~20160918 * still pre-release and no ChangeLog available * add requires pyfwnt, pyvslvm, python-dfdatetime - update to v0~20160108 * still pre-release and no ChangeLog available * required by plaso v1.4.0 which is in feature freeze at this point - update pyvshadow requires to version v0~20160110 - add Requires: pyfsntfs - update to v0~20150708 * warning, breaks plaso prior to v1.3.0rc2 * still pre-release and no ChangeLog available - update to v0~20150408 * Plaso is the primary consumer of dfVFS, but it can be used standalone and may have other consumers in the future * Warning breaks JSON serialization in plaso and require a plaso version of 20150507 or later. - update to v0~20150303 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - add Requires: pysigscan, it is a new dependency - add a new %exclude in %files due to doubly included %doc files - remove spec file entry deleting installed examples. Resolved upstream. * see https://github.com/log2timeline/dfvfs/issues/4 - chmod run_tests.py to remove the executable bits. Was causing a rmplint warning. - update to v0~20150108 * bugfix for auto-dependency build - add explicit "%py_compile ." to resolve rpmlint complaint about datestamps not matching - add the examples folder to the %doc section of %files - add run_tests.py to the %doc section of %files - upgrade to v0~20141220 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - v0~20141220 required by latest plaso release - update Url field to point to the new github site - update source to be complete URL - delete DL_URL field - add an exclude for the "examples" that are provided. They need a better namespace. - add check_dependencies.py to %doc so that users can verify they have usable dependencies - add a %doc line to %files section - change the license tag to Apache-2.0 - add Requires libvmdk since it is now in OBS - add Requires libvhdi since it is now in OBS - add missing "Requires: pyqcow" line to specfile - remove %attr(755...) line and instead use sed to remove #!/usr/bin/python from *py files - cleanup Requires: in general - initial version in OBS (version 0~20140727) OBS-URL: https://build.opensuse.org/request/show/533477 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfVFS?expand=0&rev=21
2017-10-11 19:43:15 +00:00
Requires: python-libbde
Requires: python-libewf
Requires: python-libfsntfs >= 0~20160418
Requires: python-libfvde
Requires: python-libfwnt
Requires: python-libqcow
Requires: python-libsigscan
Requires: python-libsmdev
Requires: python-libsmraw
Requires: python-libvhdi
Requires: python-libvmdk
Requires: python-libvshadow >= 0~20160110
Requires: python-libvslvm
Requires: python-six
Accepting request 533477 from home:gregfreemyer:Tools-for-forensic-boot-cd - update to v0~20170723 * worked on internal test structure - add python3 support - implement python singlespec syntax - In Requires: lines for libyal python bindings, use the python-lib* variant of the package Python singlespec automatically converts that to python2 / python3 as appropriate - remove Requres: python-protobuf. It has been replaced by a JSON solution - adopt upstream name of python{23}-tsk3 - correct Requires to have 0~ prefix - update to v0~20160918 * still pre-release and no ChangeLog available * add requires pyfwnt, pyvslvm, python-dfdatetime - update to v0~20160108 * still pre-release and no ChangeLog available * required by plaso v1.4.0 which is in feature freeze at this point - update pyvshadow requires to version v0~20160110 - add Requires: pyfsntfs - update to v0~20150708 * warning, breaks plaso prior to v1.3.0rc2 * still pre-release and no ChangeLog available - update to v0~20150408 * Plaso is the primary consumer of dfVFS, but it can be used standalone and may have other consumers in the future * Warning breaks JSON serialization in plaso and require a plaso version of 20150507 or later. - update to v0~20150303 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - add Requires: pysigscan, it is a new dependency - add a new %exclude in %files due to doubly included %doc files - remove spec file entry deleting installed examples. Resolved upstream. * see https://github.com/log2timeline/dfvfs/issues/4 - chmod run_tests.py to remove the executable bits. Was causing a rmplint warning. - update to v0~20150108 * bugfix for auto-dependency build - add explicit "%py_compile ." to resolve rpmlint complaint about datestamps not matching - add the examples folder to the %doc section of %files - add run_tests.py to the %doc section of %files - upgrade to v0~20141220 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - v0~20141220 required by latest plaso release - update Url field to point to the new github site - update source to be complete URL - delete DL_URL field - add an exclude for the "examples" that are provided. They need a better namespace. - add check_dependencies.py to %doc so that users can verify they have usable dependencies - add a %doc line to %files section - change the license tag to Apache-2.0 - add Requires libvmdk since it is now in OBS - add Requires libvhdi since it is now in OBS - add missing "Requires: pyqcow" line to specfile - remove %attr(755...) line and instead use sed to remove #!/usr/bin/python from *py files - cleanup Requires: in general - initial version in OBS (version 0~20140727) OBS-URL: https://build.opensuse.org/request/show/533477 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfVFS?expand=0&rev=21
2017-10-11 19:43:15 +00:00
Requires: python-tsk
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%python_subpackages
%description
dfVFS, or Digital Forensics Virtual File System, provides read-only access to file-system objects from various storage media types and file formats. The goal of dfVFS is to provide a generic interface for accessing file-system objects, for which it uses several back-ends that provide the actual implementation of the various storage media types, volume systems and file systems.
dfVFS originates from the Plaso project and is also based on ideas from the GRR project. It was largely rewritten and made into a stand-alone project to provide more flexibility and allow other projects to make use of the VFS functionality. dfVFS originally was named PyVFS, but that name conflicted with another project.
dfVFS is currently implemented as a Python module.
%prep
%setup -q -n dfvfs-%{timestamp}
find dfvfs -name \*.py | xargs sed -i "/#!\/usr\/bin\/python/d"
chmod -x utils/check_dependencies.py
chmod -x run_tests.py
%build
Accepting request 533477 from home:gregfreemyer:Tools-for-forensic-boot-cd - update to v0~20170723 * worked on internal test structure - add python3 support - implement python singlespec syntax - In Requires: lines for libyal python bindings, use the python-lib* variant of the package Python singlespec automatically converts that to python2 / python3 as appropriate - remove Requres: python-protobuf. It has been replaced by a JSON solution - adopt upstream name of python{23}-tsk3 - correct Requires to have 0~ prefix - update to v0~20160918 * still pre-release and no ChangeLog available * add requires pyfwnt, pyvslvm, python-dfdatetime - update to v0~20160108 * still pre-release and no ChangeLog available * required by plaso v1.4.0 which is in feature freeze at this point - update pyvshadow requires to version v0~20160110 - add Requires: pyfsntfs - update to v0~20150708 * warning, breaks plaso prior to v1.3.0rc2 * still pre-release and no ChangeLog available - update to v0~20150408 * Plaso is the primary consumer of dfVFS, but it can be used standalone and may have other consumers in the future * Warning breaks JSON serialization in plaso and require a plaso version of 20150507 or later. - update to v0~20150303 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - add Requires: pysigscan, it is a new dependency - add a new %exclude in %files due to doubly included %doc files - remove spec file entry deleting installed examples. Resolved upstream. * see https://github.com/log2timeline/dfvfs/issues/4 - chmod run_tests.py to remove the executable bits. Was causing a rmplint warning. - update to v0~20150108 * bugfix for auto-dependency build - add explicit "%py_compile ." to resolve rpmlint complaint about datestamps not matching - add the examples folder to the %doc section of %files - add run_tests.py to the %doc section of %files - upgrade to v0~20141220 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - v0~20141220 required by latest plaso release - update Url field to point to the new github site - update source to be complete URL - delete DL_URL field - add an exclude for the "examples" that are provided. They need a better namespace. - add check_dependencies.py to %doc so that users can verify they have usable dependencies - add a %doc line to %files section - change the license tag to Apache-2.0 - add Requires libvmdk since it is now in OBS - add Requires libvhdi since it is now in OBS - add missing "Requires: pyqcow" line to specfile - remove %attr(755...) line and instead use sed to remove #!/usr/bin/python from *py files - cleanup Requires: in general - initial version in OBS (version 0~20140727) OBS-URL: https://build.opensuse.org/request/show/533477 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfVFS?expand=0&rev=21
2017-10-11 19:43:15 +00:00
%python_build
%install
Accepting request 533477 from home:gregfreemyer:Tools-for-forensic-boot-cd - update to v0~20170723 * worked on internal test structure - add python3 support - implement python singlespec syntax - In Requires: lines for libyal python bindings, use the python-lib* variant of the package Python singlespec automatically converts that to python2 / python3 as appropriate - remove Requres: python-protobuf. It has been replaced by a JSON solution - adopt upstream name of python{23}-tsk3 - correct Requires to have 0~ prefix - update to v0~20160918 * still pre-release and no ChangeLog available * add requires pyfwnt, pyvslvm, python-dfdatetime - update to v0~20160108 * still pre-release and no ChangeLog available * required by plaso v1.4.0 which is in feature freeze at this point - update pyvshadow requires to version v0~20160110 - add Requires: pyfsntfs - update to v0~20150708 * warning, breaks plaso prior to v1.3.0rc2 * still pre-release and no ChangeLog available - update to v0~20150408 * Plaso is the primary consumer of dfVFS, but it can be used standalone and may have other consumers in the future * Warning breaks JSON serialization in plaso and require a plaso version of 20150507 or later. - update to v0~20150303 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - add Requires: pysigscan, it is a new dependency - add a new %exclude in %files due to doubly included %doc files - remove spec file entry deleting installed examples. Resolved upstream. * see https://github.com/log2timeline/dfvfs/issues/4 - chmod run_tests.py to remove the executable bits. Was causing a rmplint warning. - update to v0~20150108 * bugfix for auto-dependency build - add explicit "%py_compile ." to resolve rpmlint complaint about datestamps not matching - add the examples folder to the %doc section of %files - add run_tests.py to the %doc section of %files - upgrade to v0~20141220 * dfVFS is in a rapid state of development and Changelog entries have not been implemented by upstream - v0~20141220 required by latest plaso release - update Url field to point to the new github site - update source to be complete URL - delete DL_URL field - add an exclude for the "examples" that are provided. They need a better namespace. - add check_dependencies.py to %doc so that users can verify they have usable dependencies - add a %doc line to %files section - change the license tag to Apache-2.0 - add Requires libvmdk since it is now in OBS - add Requires libvhdi since it is now in OBS - add missing "Requires: pyqcow" line to specfile - remove %attr(755...) line and instead use sed to remove #!/usr/bin/python from *py files - cleanup Requires: in general - initial version in OBS (version 0~20140727) OBS-URL: https://build.opensuse.org/request/show/533477 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfVFS?expand=0&rev=21
2017-10-11 19:43:15 +00:00
%python_install
# force complie to resolve an rpmlint complaint
pushd %{buildroot}%{python_sitelib}/dfvfs/
%py_compile .
%py_compile serializer
popd
%fdupes -s %{buildroot}
%files %{python_files}
%defattr(-,root,root)
%doc ACKNOWLEDGEMENTS AUTHORS LICENSE README
%doc utils/check_dependencies.py utils/dependencies.py
%doc examples
%{python_sitelib}/dfvfs-%{timestamp}-py%{python_version}.egg-info
%{python_sitelib}/dfvfs
# these are installed into the wrong place
%exclude %{_datadir}/doc/dfvfs/
%changelog