- Use pyproject macros to build and install.
OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfdatetime?expand=0&rev=39
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-20230225.tar.gz
Normal file
3
dfdatetime-20230225.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:93b59bc5ec9c6b5afd8eb3732beab92bf1064211bf6606eacbf540118a1607e5
|
||||
size 75358
|
||||
114
python-dfdatetime.changes
Normal file
114
python-dfdatetime.changes
Normal file
@@ -0,0 +1,114 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 18 04:04:17 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
|
||||
|
||||
- Use pyproject macros to build and install.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 28 21:35:13 UTC 2023 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- use the sle15_python_module_pythons macro to select the proper python versions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Mar 8 16:09:05 UTC 2023 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- version update to 0~20230225
|
||||
* no upstream changelog file found
|
||||
* multiple fixes / improvements
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Dec 14 22:48:01 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- Implement some python packaging best practices
|
||||
- Prevent failing builds for Python < 3.7
|
||||
- Remove pytest: python unittest is enough
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 1 17:50:20 UTC 2022 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- version update to 0~20220925
|
||||
* no upstream changelog file found
|
||||
* multiple fixes
|
||||
* Required by plaso v20220930
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Sep 23 11:52:09 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- does not need python-six for build
|
||||
https://trello.com/c/MO53MocR/143-remove-python3-six
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 8 18:04:22 UTC 2022 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- remove no longer needed explicit BuildRequires
|
||||
-BuildRequires: %{python_module devel}
|
||||
-BuildRequires: %{python_module pbr >= 4.2.0}
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 2 08:48:50 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- python-mock is not required for build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 17 09:16:40 UTC 2022 - pgajdos@suse.com
|
||||
|
||||
- version update to 0~20220131
|
||||
* no upstream changelog file found
|
||||
- try to use %pytest macro again
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 13 02:20:18 UTC 2020 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- update to v0~20200824
|
||||
* Extended time elements with copy from datetime object
|
||||
* Extended time elements with copy from RFC 822 and 1123 methods
|
||||
* Added date and time values factory class for serialization
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Apr 5 20:27:31 UTC 2020 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- update to v0~20200121
|
||||
* mandatory for python-dfVFS v0~20200211 support
|
||||
* the changelog does not show what change makes this mandatory
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jan 17 10:12:11 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Convert to python3 only
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 19 19:37:10 UTC 2019 - Greg Freemyer <Greg.Freemyer@gmail.com>
|
||||
|
||||
- update to v0~20190517
|
||||
* changelog not provided
|
||||
- Added Requires: python-mock to allow self-test to be manually run
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jan 11 21:43:13 UTC 2018 - Greg.Freemyer@gmail.com
|
||||
|
||||
- update to v0~20180110
|
||||
* deprecated a functions
|
||||
* added new functions
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 3 16:08:32 UTC 2017 - Greg.Freemyer@gmail.com
|
||||
|
||||
- update to v0~20170719
|
||||
* various improvements including
|
||||
new format support
|
||||
added sanity checks
|
||||
- implement python singlespec syntax
|
||||
- remove the lines that delete *.pyc and *.pyo files,
|
||||
they no longer cause problems
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Jul 30 22:27:27 UTC 2016 - jengelh@inai.de
|
||||
|
||||
- Use python macros for filelists.
|
||||
Use hardlinks for fdupes, it's cheaper.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 28 20:57:06 UTC 2016 - Greg.Freemyer@gmail.com
|
||||
|
||||
- initial package v0~20160323
|
||||
|
||||
|
||||
65
python-dfdatetime.spec
Normal file
65
python-dfdatetime.spec
Normal file
@@ -0,0 +1,65 @@
|
||||
#
|
||||
# spec file for package python-dfdatetime
|
||||
#
|
||||
# Copyright (c) 2025 SUSE LLC
|
||||
#
|
||||
# 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 https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
|
||||
%{?sle15_python_module_pythons}
|
||||
|
||||
%define timestamp 20230225
|
||||
%define modname dfdatetime
|
||||
Name: python-dfdatetime
|
||||
Version: 0~%{timestamp}
|
||||
Release: 0
|
||||
Summary: Digital Forensics date and time (dfDateTime)
|
||||
License: Apache-2.0
|
||||
Group: Development/Languages/Python
|
||||
URL: https://github.com/log2timeline/dfdatetime
|
||||
Source: https://github.com/log2timeline/%{modname}//releases/download/%{timestamp}/%{modname}-%{timestamp}.tar.gz
|
||||
BuildRequires: %{python_module base >= 3.7}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module wheel}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%python_subpackages
|
||||
|
||||
%description
|
||||
dfDateTime, or Digital Forensics date and time, provides date and time
|
||||
objects to preserve accuracy and precision.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{modname}-%{timestamp}
|
||||
|
||||
%build
|
||||
%pyproject_wheel
|
||||
|
||||
%install
|
||||
%pyproject_install
|
||||
# Do not ship the docs in datadir
|
||||
rm -rfv %{buildroot}%{_datadir}/doc/%{modname}
|
||||
%python_expand %fdupes %{buildroot}%{$python_sitelib}
|
||||
|
||||
%check
|
||||
%pyunittest -v tests/*.py
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
%doc ACKNOWLEDGEMENTS AUTHORS README
|
||||
%{python_sitelib}/dfdatetime
|
||||
%{python_sitelib}/dfdatetime-%{timestamp}.dist-info
|
||||
|
||||
%changelog
|
||||
Reference in New Issue
Block a user