public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-dbf] f45: Update to 0.99.11
@ 2026-08-26 15:30 Filipe Rosset
  0 siblings, 0 replies; only message in thread
From: Filipe Rosset @ 2026-08-26 15:30 UTC (permalink / raw)
  To: git-commits

            A new commit has been pushed.

            Repo   : rpms/python-dbf
            Branch : f45
            Commit : 9f6291a5a1563b6f4f8132ae45fef13d44945e91
            Author : Filipe Rosset <rosset.filipe@gmail.com>
            Date   : 2026-08-23T01:42:02-03:00
            Stats  : +24/-42 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/python-dbf/c/9f6291a5a1563b6f4f8132ae45fef13d44945e91?branch=f45

            Log:
            Update to 0.99.11

Resolves: rhbz#2254088

---
diff --git a/.gitignore b/.gitignore
index 2af6532..ebc890a 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
 /dbf-0.96.005.tar.gz
 /dbf-0.99.2.tar.gz
 /dbf-0.99.3.tar.gz
+/dbf-0.99.11.tar.gz

diff --git a/prevent-synthax-error.patch b/prevent-synthax-error.patch
deleted file mode 100644
index bf29578..0000000
--- a/prevent-synthax-error.patch
+++ /dev/null
@@ -1,15 +0,0 @@
-diff --git a/dbf/_index.py b/dbf/_index.py
-index 6894106..e301f29 100755
---- a/dbf/_index.py
-+++ b/dbf/_index.py
-@@ -9,8 +9,8 @@ class IndexFile(object):
-         filename += '.pdx'
-         if not os.path.exists(filename):
-             self.index_file = open(filename, 'r+b')
--            self.index_file.write('\xea\xaf\x37\xbf'    # signature
--                '\x00'*8                                # two non-existant lists
-+            self.index_file.write('\xea\xaf\x37\xbf' +    # signature
-+                '\x00'*8 +                               # two non-existant lists
-                 '\x00'*500)                             # and no indices
-             return
-         index_file = self.index_file = open(filename, 'r+b')

diff --git a/python-dbf.spec b/python-dbf.spec
index e6150f8..0977e8b 100644
--- a/python-dbf.spec
+++ b/python-dbf.spec
@@ -8,16 +8,14 @@ returned as unicode, and codepage settings in tables are honored. Memos and Null
 fields are supported.
 
 Name:           python-%{pypi_name}
-Version:        0.99.3
+Version:        0.99.11
 Release:        %autorelease
 Summary:        %{sum}
 
-# Automatically converted from old format: BSD - review is highly recommended.
-License:        LicenseRef-Callaway-BSD
+License:        BSD-3-Clause
 URL:            https://pypi.python.org/pypi/%{pypi_name}
 Source0:        https://pypi.python.org/packages/source/d/%{pypi_name}/%{pypi_name}-%{version}.tar.gz
-Patch0:         prevent-synthax-error.patch
-Patch1:         remove-distutil.patch
+Patch0:         remove-distutil.patch
 
 BuildArch:      noarch
 
@@ -28,17 +26,15 @@ BuildArch:      noarch
 %package -n     python3-%{pypi_name}
 Summary:        %{sum}
 BuildRequires:  python3-devel
-Requires:       python3-aenum
 
 %description -n python3-%{pypi_name}
 %{desc}
 
 
 %prep
-%setup -qn %{pypi_name}-%{version}
+%autosetup -p1 -n %{pypi_name}-%{version}
 # Correct line endings for setup.py
 sed -i "s|\r||g" setup.py
-%autopatch -p1
 rm -f dbf/ver_32.py
 rm -f dbf/ver_2.py
 sed -i "s|\r||g" dbf/README.md
@@ -58,7 +54,8 @@ sed -i "s|\r||g" dbf/README.md
 
 
 %check
-%pyproject_check_import
+%pyproject_check_import -e dbf.index
+%{py3_test_envvars} %{python3} -m dbf.test
 
 
 %files -n python3-%{pypi_name} -f %{pyproject_files}

diff --git a/remove-distutil.patch b/remove-distutil.patch
index f23cbf6..693a802 100644
--- a/remove-distutil.patch
+++ b/remove-distutil.patch
@@ -1,17 +1,16 @@
---- a/setup.py	2022-05-09 20:49:00.000000000 +0200
-+++ b/setup.py	2022-12-20 12:50:55.750112172 +0100
-@@ -3,7 +3,6 @@
-     setuptools
- except ImportError:
-     pass
--from distutils.core import setup
- 
- #html_docs = glob('dbf/html/*')
- 
-@@ -56,5 +55,5 @@
-         )
- 
- if __name__ == '__main__':
--    setup(**data)
-+    setuptools.setup(**data)
- 
+--- a/setup.py
++++ b/setup.py
+@@ -3,7 +3,6 @@
+     setuptools
+ except ImportError:
+     pass
+-from distutils.core import setup
+ 
+ #html_docs = glob('dbf/html/*')
+ 
+@@ -59,4 +58,4 @@
+         )
+ 
+ if __name__ == '__main__':
+-    setup(**data)
++    setuptools.setup(**data)

diff --git a/sources b/sources
index 8ce1ae4..0e52221 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (dbf-0.99.3.tar.gz) = 4f74ac58aa3752f018587ade4b3ed302120d57fe42eb22422b6b0794ecda9579a64d74a284aa077dcfed9b3bc7de926af4ceadf45a88d828d089d692de1b6226
+SHA512 (dbf-0.99.11.tar.gz) = ad78383a939abed684ff927eb30ff4fe5811d017adc97f4c85914e3f228c4f3e2d76be81cd98c0e5b7da1bdef69c86222f9230b679a70a1506839e1722714142

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-08-26 15:30 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-08-26 15:30 [rpms/python-dbf] f45: Update to 0.99.11 Filipe Rosset

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox