- update to new 0.9.13 upstream release, fixes rhbz #1719015

removed upstreamed patch
This commit is contained in:
Filipe Rosset 2019-06-11 01:10:46 -03:00
parent c905d793e3
commit 371b11fd44
5 changed files with 8 additions and 1321 deletions

1
.gitignore vendored
View File

@ -9,3 +9,4 @@ pdf2djvu_0.7.3.tar.gz
/pdf2djvu-0.9.9.tar.xz
/pdf2djvu-0.9.10.tar.xz
/pdf2djvu-0.9.11.tar.xz
/pdf2djvu-0.9.13.tar.xz

View File

@ -1,69 +0,0 @@
--- pdf2djvu-0.9.11/pdf2djvu.cc
+++ pdf2djvu-0.9.11/pdf2djvu.cc
@@ -456,7 +456,7 @@ public:
switch (link_action->getKind())
{
case actionURI:
- uri += dynamic_cast<pdf::link::URI*>(link_action)->getURI()->getCString();
+ uri += dynamic_cast<pdf::link::URI*>(link_action)->getURI()->c_str();
break;
case actionGoTo:
{
@@ -1396,7 +1396,7 @@ static int xmain(int argc, char * const
#pragma omp critical
{
debug(0)--;
- debug(1) << doc->getFileName()->getCString() << ":" << std::endl;
+ debug(1) << doc->getFileName()->c_str() << ":" << std::endl;
debug(0)++;
}
out1.reset(new MainRenderer(paper_color, config.monochrome));
--- pdf2djvu-0.9.11/pdf-backend.cc
+++ pdf2djvu-0.9.11/pdf-backend.cc
@@ -32,7 +32,6 @@
#include <GlobalParams.h>
#include <PDFDoc.h>
#include <goo/GooString.h>
-#include <goo/gtypes.h>
#include <splash/SplashClip.h>
#include <splash/SplashTypes.h>
@@ -225,7 +225,7 @@ const std::string pdf::Document::get_xmp
mstring.reset(this->readMetadata());
if (mstring.get() == nullptr)
return "";
- const char *cstring = mstring->getCString();
+ const char *cstring = mstring->c_str();
if (strncmp(cstring, "<?xpacket begin=", 16) != 0)
return "";
cstring += 16;
@@ -392,7 +392,7 @@ pdf::Metadata::Metadata(pdf::Document &d
char tzs = 0; int tzh = 0, tzm = 0;
if (!pdf::dict_lookup(info_dict, field.first, &object)->isString())
continue;
- const char *input = object.getString()->getCString();
+ const char *input = object.getString()->c_str();
if (input[0] == 'D' && input[1] == ':')
input += 2;
int year = scan_date_digits(input, 4);
--- pdf2djvu-0.9.11/pdf-backend.hh
+++ pdf2djvu-0.9.11/pdf-backend.hh
@@ -40,7 +40,6 @@
#include <SplashOutputDev.h>
#include <Stream.h>
#include <goo/GooString.h>
-#include <goo/gtypes.h>
#include <splash/Splash.h>
#include <splash/SplashBitmap.h>
#include <splash/SplashClip.h>
--- pdf2djvu-0.9.11/pdf-unicode.cc
+++ pdf2djvu-0.9.11/pdf-unicode.cc
@@ -53,7 +53,7 @@ std::string pdf::string_as_utf8(const pd
* for description of both UTF-16 and UTF-8.
*/
const static uint32_t replacement_character = 0xFFFD;
- const char *cstring = string->getCString();
+ const char *cstring = string->c_str();
#if POPPLER_VERSION < 3500
size_t clength = const_cast<pdf::String *>(string)->getLength();
#else

File diff suppressed because it is too large Load Diff

View File

@ -1,13 +1,12 @@
%global _hardened_build 1
Name: pdf2djvu
Version: 0.9.11
Release: 4%{?dist}
Version: 0.9.13
Release: 1%{?dist}
Summary: PDF to DjVu converter
License: GPLv2+
URL: http://jwilk.net/software/pdf2djvu
Source0: https://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
Patch0: pdf2djvu-0.9.11-poppler-0.73.0.patch
BuildRequires: gcc-c++
BuildRequires: djvulibre-devel djvulibre
BuildRequires: libjpeg-devel
@ -49,6 +48,10 @@ install -p -m 644 -D {doc,%{buildroot}%{_mandir}/man1}/%{name}.1
%{_mandir}/ru/man1/%{name}.1*
%changelog
* Tue Jun 11 2019 Filipe Rosset <rosset.filipe@gmail.com> - 0.9.13-1
- update to new 0.9.13 upstream release, fixes rhbz #1719015
- removed upstreamed patch
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.11-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (pdf2djvu-0.9.11.tar.xz) = 7b47ff4cd3a49f3fa1fec08490a192725899307d9c2a75a65a21d36abcece2f308e56161ec4c4f77f32fbdedcc167520657cad2b06cf178335f7e2169b7ada82
SHA512 (pdf2djvu-0.9.13.tar.xz) = 067c721d4f587fd38121ea104e1c08930df58108a2270d7142e539715c031b5bb6b302921dfd68ace09fddfb5c881f081d6a6d866f6038255e89754fc34bc006