[packages/brotli] - updated to 1.2.0 - brotli-py2.patch not needed

witekfl witekfl at pld-linux.org
Mon Dec 1 20:40:38 CET 2025


commit ae89ed5d97c8f5e2d778c27704ad9662d03f5cac
Author: Witold Filipczyk <witekfl at poczta.onet.pl>
Date:   Mon Dec 1 20:39:41 2025 +0100

    - updated to 1.2.0
    - brotli-py2.patch not needed

 brotli-py2.patch | 20 --------------------
 brotli.spec      |  9 ++++-----
 2 files changed, 4 insertions(+), 25 deletions(-)
---
diff --git a/brotli.spec b/brotli.spec
index 7edfa3a..8e5e863 100644
--- a/brotli.spec
+++ b/brotli.spec
@@ -7,14 +7,13 @@
 Summary:	Brotli - generic-purpose lossless compression algorithm
 Summary(pl.UTF-8):	Brotli - algorytm bezstratnej kompresji ogólnego przeznaczenia
 Name:		brotli
-Version:	1.1.0
-Release:	3
+Version:	1.2.0
+Release:	1
 License:	Apache v2.0
 Group:		Libraries
 #Source0Download: https://github.com/google/brotli/releases
 Source0:	https://github.com/google/brotli/archive/v%{version}/Brotli-%{version}.tar.gz
-# Source0-md5:	3a6a3dba82a3604792d3cb0bd41bca60
-Patch0:		%{name}-py2.patch
+# Source0-md5:	8fbfae9a5ecbc278ae7f761ecb6d1285
 URL:		https://github.com/google/brotli/
 BuildRequires:	bc
 BuildRequires:	cmake >= 3.15
@@ -110,7 +109,6 @@ Moduł Pythona 3 do kodowania/dekodowania kompresji Brotli.
 
 %prep
 %setup -q
-%patch -P 0 -p1
 
 %build
 %cmake -B build
@@ -163,6 +161,7 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %doc README README.md
 %attr(755,root,root) %{_bindir}/brotli
+%{_mandir}/man1/brotli.1*
 
 %files -n libbrotli
 %defattr(644,root,root,755)
diff --git a/brotli-py2.patch b/brotli-py2.patch
deleted file mode 100644
index a6cc9d9..0000000
--- a/brotli-py2.patch
+++ /dev/null
@@ -1,20 +0,0 @@
---- brotli-1.1.0/setup.py.orig	2023-08-29 13:00:29.000000000 +0200
-+++ brotli-1.1.0/setup.py	2023-11-08 19:42:16.251391487 +0100
-@@ -27,7 +27,7 @@ def read_define(path, macro):
-   """ Return macro value from the given file. """
-   with open(path, 'r') as f:
-     for line in f:
--      m = re.match(rf'#define\s{macro}\s+(.+)', line)
-+      m = re.match(r'#define\s{macro}\s+(.+)'.format(macro=macro), line)
-       if m:
-         return m.group(1)
-   return ''
-@@ -41,7 +41,7 @@ def get_version():
-   patch = read_define(version_file_path, 'BROTLI_VERSION_PATCH')
-   if not major or not minor or not patch:
-     return ''
--  return f'{major}.{minor}.{patch}'
-+  return '{major}.{minor}.{patch}'.format(major=major, minor=minor, patch=patch)
- 
- 
- def get_test_suite():
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/brotli.git/commitdiff/ae89ed5d97c8f5e2d778c27704ad9662d03f5cac




More information about the pld-cvs-commit mailing list