[packages/libstemmer] - updated to 3.2.0; don't package private headers

qboosh qboosh at pld-linux.org
Fri Nov 13 20:38:59 CET 2026


commit b0a3272f3035dde252df3e3c92381f8b46792009
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Fri Nov 13 20:38:54 2026 +0100

    - updated to 3.2.0; don't package private headers

 libstemmer-makefile.patch | 17 ++++++++---------
 libstemmer.spec           | 19 +++++++++++--------
 2 files changed, 19 insertions(+), 17 deletions(-)
---
diff --git a/libstemmer.spec b/libstemmer.spec
index 340d44d..857b9fa 100644
--- a/libstemmer.spec
+++ b/libstemmer.spec
@@ -1,14 +1,14 @@
 Summary:	The C version of the libstemmer library
 Summary(pl.UTF-8):	Wersja C biblioteki libstemmer
 Name:		libstemmer
-Version:	2.2.0
+Version:	3.2.0
 Release:	1
 Epoch:		1
 License:	BSD
 Group:		Libraries
 #Source0Download: https://snowballstem.org/download.html
 Source0:	https://snowballstem.org/dist/%{name}_c-%{version}.tar.gz
-# Source0-md5:	a0add7c0ebdd8d18872a31199bf37f4d
+# Source0-md5:	7750ace55002b84455d32bf72844cd22
 Patch0:		%{name}-makefile.patch
 URL:		https://snowballstem.org/
 BuildRequires:	libtool >= 2:1.5
@@ -29,7 +29,7 @@ wykorzystywanych przy wyszukiwaniu informacji.
 Summary:	Header files for libstemmer library
 Summary(pl.UTF-8):	Pliki nagłówkowe biblioteki libstemmer
 Group:		Development/Libraries
-Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	%{name}%{?_isa} = %{epoch}:%{version}-%{release}
 
 %description devel
 Header files for libstemmer library.
@@ -41,7 +41,7 @@ Pliki nagłówkowe biblioteki libstemmer.
 Summary:	Static libstemmer library
 Summary(pl.UTF-8):	Statyczna biblioteka libstemmer
 Group:		Development/Libraries
-Requires:	%{name}-devel = %{epoch}:%{version}-%{release}
+Requires:	%{name}-devel%{?_isa} = %{epoch}:%{version}-%{release}
 
 %description static
 Static libstemmer library.
@@ -53,6 +53,7 @@ Statyczna biblioteka libstemmer.
 Summary:	The stemwords utility using the libstemmer library
 Summary(pl.UTF-8):	Narzędzie stemwords korzystające z biblioteki libstemmer
 Group:		Applications/Text
+Requires:	%{name}%{?_isa} = %{epoch}:%{version}-%{release}
 
 %description utils
 The stemwords utility using the libstemmer library
@@ -79,6 +80,9 @@ rm -rf $RPM_BUILD_ROOT
 	libdir=%{_libdir} \
 	DESTDIR=$RPM_BUILD_ROOT
 
+# no external dependencies
+%{__rm} $RPM_BUILD_ROOT%{_libdir}/libstemmer.la
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -88,13 +92,12 @@ rm -rf $RPM_BUILD_ROOT
 %files
 %defattr(644,root,root,755)
 %doc COPYING NEWS README
-%attr(755,root,root) %{_libdir}/libstemmer.so.*.*.*
-%attr(755,root,root) %ghost %{_libdir}/libstemmer.so.0
+%{_libdir}/libstemmer.so.*.*.*
+%ghost %{_libdir}/libstemmer.so.0
 
 %files devel
 %defattr(644,root,root,755)
-%attr(755,root,root) %{_libdir}/libstemmer.so
-%{_libdir}/libstemmer.la
+%{_libdir}/libstemmer.so
 %{_includedir}/libstemmer
 
 %files static
diff --git a/libstemmer-makefile.patch b/libstemmer-makefile.patch
index 1373126..dbcccca 100644
--- a/libstemmer-makefile.patch
+++ b/libstemmer-makefile.patch
@@ -1,6 +1,6 @@
---- libstemmer_c-2.2.0/Makefile.orig	2024-09-14 12:50:10.978761983 +0200
-+++ libstemmer_c-2.2.0/Makefile	2024-09-14 12:55:31.260360202 +0200
-@@ -2,12 +2,47 @@ include mkinc.mak
+--- libstemmer_c-3.2.0/Makefile.orig	2026-10-17 09:25:10.000000000 +0200
++++ libstemmer_c-3.2.0/Makefile	2026-11-13 19:55:29.420724545 +0100
+@@ -2,13 +2,45 @@ include mkinc.mak
  ifeq ($(OS),Windows_NT)
  EXEEXT=.exe
  endif
@@ -8,9 +8,10 @@
 +CFLAGS?=-O2
 +CFLAGS+=-D_REENTRANT
  CPPFLAGS=-Iinclude
+-ARFLAGS=-cr
 -all: libstemmer.a stemwords$(EXEEXT)
 -libstemmer.a: $(snowball_sources:.c=.o)
--	$(AR) -cru $@ $^
+-	$(AR) -cr $@ $^
 -stemwords$(EXEEXT): examples/stemwords.o libstemmer.a
 -	$(CC) $(CFLAGS) -o $@ $^
 +
@@ -22,9 +23,9 @@
 +LIBTOOL=libtool
 +INSTALL=install -c
 +
-+LT_CURRENT=1
-+LT_REVISION=2
-+LT_AGE=1
++LT_CURRENT=2
++LT_REVISION=0
++LT_AGE=2
 +
 +LTOBJS:= $(snowball_sources:.c=.lo)
 +
@@ -47,8 +48,6 @@
 +	$(INSTALL) -d $(DESTDIR)$(includedir)/libstemmer
 +	$(LIBTOOL) --mode=install $(INSTALL) libstemmer.la $(DESTDIR)$(libdir)
 +	$(LIBTOOL) --mode=install $(INSTALL) -m 755 stemwords $(DESTDIR)$(bindir)
-+	$(INSTALL) -m 644 runtime/api.h $(DESTDIR)$(includedir)/libstemmer
-+	$(INSTALL) -m 644 runtime/header.h $(DESTDIR)$(includedir)/libstemmer
 +	$(INSTALL) -m 644 include/libstemmer.h $(DESTDIR)$(includedir)/libstemmer
 +
  clean:
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/libstemmer.git/commitdiff/b0a3272f3035dde252df3e3c92381f8b46792009



More information about the pld-cvs-commit mailing list