From 059a63eefc3628fe43ade558618890691104c01e5db952560ab9fd552bc8ce7a Mon Sep 17 00:00:00 2001 From: Atri Bhattacharya Date: Mon, 22 Apr 2024 16:21:12 +0000 Subject: [PATCH] Accepting request 1167648 from home:badshah400:branches:security * Update to version 4.0.7.post1. * Drop fix-upstream-test-case.patch: upstream committed. OBS-URL: https://build.opensuse.org/request/show/1167648 OBS-URL: https://build.opensuse.org/package/show/security/python-pykeepass?expand=0&rev=29 --- fix-upstream-test-case.patch | 23 ----------------------- pykeepass-4.0.7.post1.tar.gz | 3 +++ pykeepass-4.0.7.tar.gz | 3 --- python-pykeepass.changes | 12 ++++++++++++ python-pykeepass.spec | 12 ++++++------ 5 files changed, 21 insertions(+), 32 deletions(-) delete mode 100644 fix-upstream-test-case.patch create mode 100644 pykeepass-4.0.7.post1.tar.gz delete mode 100644 pykeepass-4.0.7.tar.gz diff --git a/fix-upstream-test-case.patch b/fix-upstream-test-case.patch deleted file mode 100644 index dc991aa..0000000 --- a/fix-upstream-test-case.patch +++ /dev/null @@ -1,23 +0,0 @@ -From 4c8a1cc358e6ba24d9cb598963229f4999d6c70b Mon Sep 17 00:00:00 2001 -From: Ben Beasley -Date: Sun, 10 Mar 2024 21:23:26 -0400 -Subject: [PATCH] Fix missing pykeepass.kdbx_parsing when built with modern - tools (#378) - ---- - pyproject.toml | 2 +- - 1 file changed, 1 insertion(+), 1 deletion(-) - -diff --git a/pyproject.toml b/pyproject.toml -index 6bd7fad..437003c 100644 ---- a/pyproject.toml -+++ b/pyproject.toml -@@ -37,7 +37,7 @@ Issues = "https://github.com/libkeepass/pykeepass/issues" - Changelog = "https://github.com/libkeepass/pykeepass/blob/master/CHANGELOG.rst" - - [tool.setuptools] --packages = ["pykeepass"] -+packages = ["pykeepass", "pykeepass.kdbx_parsing"] - include-package-data = true - - [build-system] diff --git a/pykeepass-4.0.7.post1.tar.gz b/pykeepass-4.0.7.post1.tar.gz new file mode 100644 index 0000000..7672938 --- /dev/null +++ b/pykeepass-4.0.7.post1.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:33b188c39a17ee3ded0987a11a263df2aed7a57376a0802e599fda3bfbfdfd73 +size 110318 diff --git a/pykeepass-4.0.7.tar.gz b/pykeepass-4.0.7.tar.gz deleted file mode 100644 index 6ac84fc..0000000 --- a/pykeepass-4.0.7.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:c1c8bba7314a8aff196dbb3c2bcbde6dfa64008f4e67637f06d5139d13095cfe -size 110217 diff --git a/python-pykeepass.changes b/python-pykeepass.changes index 1399e7e..493511d 100644 --- a/python-pykeepass.changes +++ b/python-pykeepass.changes @@ -1,3 +1,15 @@ +------------------------------------------------------------------- +Sun Apr 14 10:04:52 UTC 2024 - Atri Bhattacharya + +- Update to version 4.0.7.post1: + * Fix gnome secrets crashes on expiration date check with + missmatch of date format (gh#libkeepass/pykeepass#382). + * Fix missing pykeepass.kdbx_parsing when built with modern + tools (gh#libkeepass/pykeepass#378). + * Remove shebang line from pykeepass/deprecated.py + (gh#libkeepass/pykeepass#377). +- Drop fix-upstream-test-case.patch: upstream committed. + ------------------------------------------------------------------- Wed Mar 27 06:34:37 UTC 2024 - Richard Rahl diff --git a/python-pykeepass.spec b/python-pykeepass.spec index a59c8a5..379f22f 100644 --- a/python-pykeepass.spec +++ b/python-pykeepass.spec @@ -16,15 +16,15 @@ # +%define ghtag 4.0.7-post1 +%define mod_ver 4.0.7 Name: python-pykeepass -Version: 4.0.7 +Version: %{mod_ver}.post1 Release: 0 Summary: Low-level library to interact with keepass databases License: GPL-3.0-only URL: https://github.com/libkeepass/pykeepass -Source: https://github.com/libkeepass/pykeepass/archive/refs/tags/v%{version}.tar.gz#/pykeepass-%{version}.tar.gz -#Patch-Upstream: One test asks for module pykeepass.kdbx_parsing, which doesn't exist yet -Patch0: https://github.com/libkeepass/pykeepass/commit/4c8a1cc358e6ba24d9cb598963229f4999d6c70b.patch#/fix-upstream-test-case.patch +Source: https://github.com/libkeepass/pykeepass/archive/refs/tags/v%{ghtag}.tar.gz#/pykeepass-%{version}.tar.gz BuildRequires: %{python_module devel} BuildRequires: %{python_module pip} BuildRequires: %{python_module pyotp} @@ -50,7 +50,7 @@ BuildRequires: %{python_module pytest} This library allows you to write entries to a KeePass database %prep -%autosetup -p1 -n pykeepass-%{version} +%autosetup -p1 -n pykeepass-%{ghtag} sed -i '1{/^#!.*env python/d}' pykeepass/{pykeepass,deprecated,kdbx_parsing/kdbx*}.py %build @@ -69,6 +69,6 @@ export PYTHONDONTWRITEBYTECODE=1 %license LICENSE %doc README.rst %{python_sitelib}/pykeepass/ -%{python_sitelib}/pykeepass-%{version}.dist-info/ +%{python_sitelib}/pykeepass-%{mod_ver}.dist-info/ %changelog