Accepting request 408994 from home:gregfreemyer:Tools-for-forensic-boot-cd
a new dependancy of pythondfVFS OBS-URL: https://build.opensuse.org/request/show/408994 OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfdatetime?expand=0&rev=1
This commit is contained in:
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
||||
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@@ -0,0 +1 @@
|
||||
.osc
|
||||
3
dfdatetime-20160323.tar.gz
Normal file
3
dfdatetime-20160323.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:1fa7e4bcd3c5f3ba3745eb61f847c8a09090d4986eb6c71eae37f38458e909e1
|
||||
size 12488
|
||||
84
python-dfdatetime.spec
Normal file
84
python-dfdatetime.spec
Normal file
@@ -0,0 +1,84 @@
|
||||
#
|
||||
# spec file for package python-dfdatetime
|
||||
#
|
||||
# Copyright (c) 2016 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 20160323
|
||||
Name: python-dfdatetime
|
||||
Version: 0~%{timestamp}
|
||||
Release: 0
|
||||
Summary: Digital Forensics Date and Time (dfDateTime)
|
||||
License: Apache-2.0
|
||||
# FIXME: use correct group, see "https://en.opensuse.org/openSUSE:Package_group_guidelines"
|
||||
Group: Development/Libraries
|
||||
Url: https://github.com/log2timeline/dfdatetime
|
||||
Source: https://github.com/log2timeline/dfdatetime/releases/download/%{timestamp}/dfdatetime-%{timestamp}.tar.gz
|
||||
BuildRequires: fdupes
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||
BuildArch: noarch
|
||||
|
||||
|
||||
%description
|
||||
dfDateTime, or Digital Forensics date and time, provides date and time objects to preserve accuracy and precision.
|
||||
|
||||
%package -n python-%{name}
|
||||
Summary: Digital Forensics Date and Time (dfDateTime)
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python-setuptools
|
||||
BuildRequires: pkgconfig(python2)
|
||||
|
||||
%description -n python-%{name}
|
||||
dfDateTime, or Digital Forensics date and time, provides date and time objects to preserve accuracy and precision.
|
||||
|
||||
%package -n python3-%{name}
|
||||
Summary: Digital Forensics Date and Time (dfDateTime)
|
||||
BuildRequires: pkgconfig
|
||||
BuildRequires: python3-setuptools
|
||||
BuildRequires: pkgconfig(python3)
|
||||
|
||||
%description -n python3-%{name}
|
||||
dfDateTime, or Digital Forensics date and time, provides date and time objects to preserve accuracy and precision.
|
||||
|
||||
%prep
|
||||
%setup -q -n dfdatetime-%{timestamp}
|
||||
|
||||
%build
|
||||
python2 setup.py build
|
||||
python3 setup.py build
|
||||
|
||||
%install
|
||||
python2 setup.py install -O1 --root=%{buildroot}
|
||||
python3 setup.py install -O1 --root=%{buildroot}
|
||||
#delete all precombied PYO files
|
||||
find %{buildroot} -name \*.pyc -delete
|
||||
find %{buildroot} -name \*.pyo -delete
|
||||
# these are installed into the wrong place
|
||||
rm -rf %{buildroot}/usr/share/doc/dfdatetime
|
||||
%fdupes -s %{buildroot}
|
||||
|
||||
|
||||
%files -n python-%{name}
|
||||
%defattr(-,root,root)
|
||||
%doc ACKNOWLEDGEMENTS AUTHORS README LICENSE
|
||||
%{_prefix}/lib/python2*/*
|
||||
|
||||
%files -n python3-%{name}
|
||||
%defattr(-,root,root)
|
||||
%doc ACKNOWLEDGEMENTS AUTHORS README LICENSE
|
||||
%{_prefix}/lib/python3*/*
|
||||
|
||||
%changelog
|
||||
|
||||
Reference in New Issue
Block a user