forked from pool/epub2txt2
- Update epub2text2 version to 2.03:
* Fixed buffer overrun bug - Update patches: * Add bmwiedemann/sort patch for reproducible builds * Use `%autopatch -p1` in spec file OBS-URL: https://build.opensuse.org/package/show/utilities/epub2txt2?expand=0&rev=3
This commit is contained in:
parent
0be84847b5
commit
df82a23e02
26
bmwiedemann-sort.patch
Normal file
26
bmwiedemann-sort.patch
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
From e2e366c0b3d0d2e50bfe6908d61785f6ee321a5c Mon Sep 17 00:00:00 2001
|
||||||
|
From: "Bernhard M. Wiedemann" <bwiedemann@suse.de>
|
||||||
|
Date: Fri, 18 Mar 2022 19:51:22 +0100
|
||||||
|
Subject: [PATCH] Sort input file list
|
||||||
|
|
||||||
|
so that `epub2txt` builds in a reproducible way
|
||||||
|
in spite of indeterministic filesystem readdir order
|
||||||
|
|
||||||
|
See https://reproducible-builds.org/ for why this is good.
|
||||||
|
---
|
||||||
|
Makefile | 2 +-
|
||||||
|
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||||
|
|
||||||
|
diff --git a/Makefile b/Makefile
|
||||||
|
index 2013cf1..449be7f 100644
|
||||||
|
--- a/Makefile
|
||||||
|
+++ b/Makefile
|
||||||
|
@@ -9,7 +9,7 @@ MANDIR := /share/man
|
||||||
|
APPNAME := epub2txt
|
||||||
|
|
||||||
|
TARGET := epub2txt
|
||||||
|
-SOURCES := $(shell find src/ -type f -name *.c)
|
||||||
|
+SOURCES := $(sort $(shell find src/ -type f -name *.c))
|
||||||
|
OBJECTS := $(patsubst src/%,build/%,$(SOURCES:.c=.o))
|
||||||
|
DEPS := $(OBJECTS:.o=.deps)
|
||||||
|
|
@ -1,3 +1,13 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Tue Mar 29 12:20:59 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||||
|
|
||||||
|
- Update epub2text2 version to 2.03:
|
||||||
|
* Fixed buffer overrun bug
|
||||||
|
|
||||||
|
- Update patches:
|
||||||
|
* Add bmwiedemann/sort patch for reproducible builds
|
||||||
|
* Use `%autopatch -p1` in spec file
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Sat Mar 12 23:32:20 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
Sat Mar 12 23:32:20 UTC 2022 - Soc Virnyl Estela <socvirnyl.estela@gmail.com>
|
||||||
|
|
||||||
|
@ -12,21 +12,22 @@
|
|||||||
# license that conforms to the Open Source Definition (Version 1.9)
|
# license that conforms to the Open Source Definition (Version 1.9)
|
||||||
# published by the Open Source Initiative.
|
# published by the Open Source Initiative.
|
||||||
|
|
||||||
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
Name: epub2txt2
|
Name: epub2txt2
|
||||||
Version: 2.01
|
Version: 2.03
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Simple command-line utility for extracting text from EPUB documents
|
Summary: Simple command-line utility for extracting text from EPUB documents
|
||||||
License: GPL-3.0-only
|
License: GPL-3.0-only
|
||||||
Group: Productivity/Text/Utilities
|
Group: Productivity/Text/Utilities
|
||||||
Url: https://github.com/kevinboone/epub2txt2
|
URL: https://github.com/kevinboone/epub2txt2
|
||||||
Source: https://github.com/kevinboone/epub2txt2/archive/v%{version}.tar.gz
|
Source: https://github.com/kevinboone/epub2txt2/archive/v%{version}.tar.gz
|
||||||
Patch: LICENSE.patch
|
Patch0: LICENSE.patch
|
||||||
BuildRequires: make
|
Patch1: bmwiedemann-sort.patch
|
||||||
BuildRequires: gcc
|
BuildRequires: gcc
|
||||||
|
BuildRequires: make
|
||||||
Requires: unzip
|
Requires: unzip
|
||||||
|
|
||||||
%description
|
%description
|
||||||
@ -34,7 +35,7 @@ Simple command-line utility for extracting text from EPUB documents
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -p1
|
%autopatch -p1
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build
|
%make_build
|
||||||
@ -49,4 +50,3 @@ Simple command-line utility for extracting text from EPUB documents
|
|||||||
%{_mandir}/man1/epub2txt.1%{?ext_man}
|
%{_mandir}/man1/epub2txt.1%{?ext_man}
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
|
||||||
|
@ -1,3 +0,0 @@
|
|||||||
version https://git-lfs.github.com/spec/v1
|
|
||||||
oid sha256:82c96c713c8a6e10d7b37e96db83a9d5f50fcb4b65034b4a1df1024776b6591f
|
|
||||||
size 57171
|
|
3
v2.03.tar.gz
Normal file
3
v2.03.tar.gz
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
version https://git-lfs.github.com/spec/v1
|
||||||
|
oid sha256:59aeb3fc46161b93154659d585b73abc961365f7f4a9756584c7611a81cd2b6f
|
||||||
|
size 71275
|
Loading…
Reference in New Issue
Block a user