[packages/ots] Rel 5; build fixes from debian

arekm arekm at pld-linux.org
Sat Aug 2 20:57:51 CEST 2025


commit 3e46a846ee91012c0f65a58e0713da3a772db17e
Author: Arkadiusz Miśkiewicz <arekm at maven.pl>
Date:   Sat Aug 2 20:57:46 2025 +0200

    Rel 5; build fixes from debian

 0004-Add-missing-header-includes.patch | 20 ++++++++++++++++++++
 makefile-dependencies.patch            | 22 ++++++++++++++++++++++
 ots.spec                               |  6 +++++-
 3 files changed, 47 insertions(+), 1 deletion(-)
---
diff --git a/ots.spec b/ots.spec
index 167f961..01c14e2 100644
--- a/ots.spec
+++ b/ots.spec
@@ -7,13 +7,15 @@ Summary:	Open Text Summarizer
 Summary(pl.UTF-8):	Otwarte narzędzie do streszczania tekstu
 Name:		ots
 Version:	0.5.0
-Release:	4
+Release:	5
 License:	GPL v2+
 Group:		Libraries
 Source0:	http://downloads.sourceforge.net/libots/%{name}-%{version}.tar.gz
 # Source0-md5:	1e140a4bf9d720b4339a5c2bdf4976e8
 Patch0:		dic.patch
 Patch1:		gtkdoc.patch
+Patch2:		0004-Add-missing-header-includes.patch
+Patch3:		makefile-dependencies.patch
 URL:		http://libots.sourceforge.net/
 BuildRequires:	autoconf
 BuildRequires:	automake
@@ -92,6 +94,8 @@ Dokumentacja API biblioteki ots.
 %setup -q
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
+%patch -P3 -p1
 
 %build
 %{__gtkdocize}
diff --git a/0004-Add-missing-header-includes.patch b/0004-Add-missing-header-includes.patch
new file mode 100644
index 0000000..8343fd8
--- /dev/null
+++ b/0004-Add-missing-header-includes.patch
@@ -0,0 +1,20 @@
+From: Andrey Rakhmatullin <wrar at debian.org>
+Date: Sat, 16 Mar 2024 19:20:49 +0500
+Subject: Add missing header includes.
+
+---
+ src/grader-tf.c | 1 +
+ 1 file changed, 1 insertion(+)
+
+diff --git a/src/grader-tf.c b/src/grader-tf.c
+index d05b19c..0de4687 100644
+--- a/src/grader-tf.c
++++ b/src/grader-tf.c
+@@ -21,6 +21,7 @@
+ #include <stdio.h>
+ #include <stdlib.h>
+ #include <string.h>
++#include <math.h>
+ #include "libots.h"
+ 
+ /*Grader - using the Term frequency algorithm. Will give each line a score*/
diff --git a/makefile-dependencies.patch b/makefile-dependencies.patch
new file mode 100644
index 0000000..1ae9299
--- /dev/null
+++ b/makefile-dependencies.patch
@@ -0,0 +1,22 @@
+From: Adrian Bunk <bunk at debian.org>
+Date: Sat, 16 Mar 2024 19:18:50 +0500
+Subject: Fix the Makefile dependencies
+
+Bug-Debian: https://bugs.debian.org/906498
+---
+ src/Makefile.am | 2 +-
+ 1 file changed, 1 insertion(+), 1 deletion(-)
+
+diff --git a/src/Makefile.am b/src/Makefile.am
+index 504c3d2..5349897 100644
+--- a/src/Makefile.am
++++ b/src/Makefile.am
+@@ -43,7 +43,7 @@ libots_1_include_HEADERS = 	\
+ 	libots.h
+ 
+ bin_PROGRAMS=ots
+-ldadd = $(top_builddir)/src/libots-1.la $(OTS_LIBS) $(POPT_LIBS)
++ldadd = libots-1.la $(OTS_LIBS) $(POPT_LIBS)
+ 
+ ots_LDADD=$(ldadd)
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/ots.git/commitdiff/3e46a846ee91012c0f65a58e0713da3a772db17e



More information about the pld-cvs-commit mailing list