From 02b17a930d9abeeacfdd618bbbf8d43348765384c78b17a3d19a1ca91c12f050 Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Fri, 20 Jun 2025 12:37:10 +0000 Subject: [PATCH] - Use pyproject macros to build and install. OBS-URL: https://build.opensuse.org/package/show/security:forensics/python-dfdatetime?expand=0&rev=39 --- .gitattributes | 23 ++++++++ .gitignore | 1 + dfdatetime-20230225.tar.gz | 3 + python-dfdatetime.changes | 114 +++++++++++++++++++++++++++++++++++++ python-dfdatetime.spec | 65 +++++++++++++++++++++ 5 files changed, 206 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 dfdatetime-20230225.tar.gz create mode 100644 python-dfdatetime.changes create mode 100644 python-dfdatetime.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -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 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/dfdatetime-20230225.tar.gz b/dfdatetime-20230225.tar.gz new file mode 100644 index 0000000..61a115d --- /dev/null +++ b/dfdatetime-20230225.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:93b59bc5ec9c6b5afd8eb3732beab92bf1064211bf6606eacbf540118a1607e5 +size 75358 diff --git a/python-dfdatetime.changes b/python-dfdatetime.changes new file mode 100644 index 0000000..eed035c --- /dev/null +++ b/python-dfdatetime.changes @@ -0,0 +1,114 @@ +------------------------------------------------------------------- +Wed Jun 18 04:04:17 UTC 2025 - Steve Kowalik + +- Use pyproject macros to build and install. + +------------------------------------------------------------------- +Fri Jul 28 21:35:13 UTC 2023 - Greg Freemyer + +- use the sle15_python_module_pythons macro to select the proper python versions + +------------------------------------------------------------------- +Wed Mar 8 16:09:05 UTC 2023 - Greg Freemyer + +- version update to 0~20230225 + * no upstream changelog file found + * multiple fixes / improvements + +------------------------------------------------------------------- +Wed Dec 14 22:48:01 UTC 2022 - Ben Greiner + +- 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 + +- 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 + +- 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 + +- 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 + +- 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 + +- Convert to python3 only + +------------------------------------------------------------------- +Mon Aug 19 19:37:10 UTC 2019 - Greg Freemyer + +- 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 + + diff --git a/python-dfdatetime.spec b/python-dfdatetime.spec new file mode 100644 index 0000000..e1552cd --- /dev/null +++ b/python-dfdatetime.spec @@ -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