public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Filipe Rosset <rosset.filipe@gmail.com>
To: git-commits@fedoraproject.org
Subject: [rpms/pdf2djvu] rawhide: drop ix86 support, spec cleanup
Date: Mon, 20 Jul 2026 19:31:56 GMT [thread overview]
Message-ID: <178457591671.1.10113155563626324085.rpms-pdf2djvu-4550eb9f9da2@fedoraproject.org> (raw)
A new commit has been pushed.
Repo : rpms/pdf2djvu
Branch : rawhide
Commit : 4550eb9f9da2bd5bf74f2a9ab084821c79e8470f
Author : Filipe Rosset <rosset.filipe@gmail.com>
Date : 2026-07-20T16:31:12-03:00
Stats : +20/-67 in 3 file(s)
URL : https://src.fedoraproject.org/rpms/pdf2djvu/c/4550eb9f9da2bd5bf74f2a9ab084821c79e8470f?branch=rawhide
Log:
drop ix86 support, spec cleanup
Signed-off-by: Filipe Rosset <rosset.filipe@gmail.com>
---
diff --git a/pdf2djvu-Destination-copy-constructor.patch b/pdf2djvu-Destination-copy-constructor.patch
deleted file mode 100644
index fcbd6de..0000000
--- a/pdf2djvu-Destination-copy-constructor.patch
+++ /dev/null
@@ -1,28 +0,0 @@
-From 81b635e014ebd0240a8719cc39b6a1b759cc6a98 Mon Sep 17 00:00:00 2001
-From: Jakub Wilk <jwilk@jwilk.net>
-Date: Wed, 16 Feb 2022 09:10:28 +0000
-Subject: main: use pdf::link::Destination copy constructor.
-MIME-Version: 1.0
-Content-Type: text/plain; charset=UTF-8
-Content-Transfer-Encoding: 8bit
-
-Fixes:
-
- main.cc: In function ‘int get_page_for_goto_link(pdf::link::GoTo*, pdf::Catalog*)’:
- main.cc:92:27: error: ‘const Destination’ {aka ‘const class LinkDest’} has no member named ‘copy’
-
-https://cgit.freedesktop.org/poppler/poppler/commit/?id=7a429c3cf9fba67e
-
-diff --git a/main.cc b/main.cc
-index 2b42d16..bb5fd57 100644
---- a/pdf2djvu.cc
-+++ b/pdf2djvu.cc
-@@ -89,7 +89,7 @@ static int get_page_for_goto_link(pdf::link::GoTo *goto_link, pdf::Catalog *cata
- #endif
- }
- else
-- dest.reset(orig_dest->copy());
-+ dest.reset(new pdf::link::Destination(*orig_dest));
- if (dest.get() != nullptr)
- {
- int page;
diff --git a/pdf2djvu-PDFDoc-constructor.patch b/pdf2djvu-PDFDoc-constructor.patch
deleted file mode 100644
index 31b64e5..0000000
--- a/pdf2djvu-PDFDoc-constructor.patch
+++ /dev/null
@@ -1,23 +0,0 @@
-From dca43e8182174bc04e107eaefcafcfdfdf9bcd61 Mon Sep 17 00:00:00 2001
-From: Jakub Wilk <jwilk@jwilk.net>
-Date: Wed, 2 Mar 2022 10:40:37 +0000
-Subject: pdf-backend: simplify Poppler 22.03 compat code.
-
-
-diff --git a/pdf-backend.cc b/pdf-backend.cc
-index ba85da2..8fab764 100644
---- a/pdf-backend.cc
-+++ b/pdf-backend.cc
-@@ -129,7 +129,11 @@ void pdf::Environment::set_antialias(bool value)
- */
-
- pdf::Document::Document(const std::string &file_name)
--: ::PDFDoc(new pdf::String(file_name.c_str()), nullptr, nullptr)
-+#if POPPLER_VERSION >= 220300
-+: ::PDFDoc(std::make_unique<pdf::String>(file_name.c_str()))
-+#else
-+: ::PDFDoc(new pdf::String(file_name.c_str()))
-+#endif
- {
- if (!this->isOk())
- throw LoadError();
diff --git a/pdf2djvu.spec b/pdf2djvu.spec
index 44e6dcf..8d2986c 100644
--- a/pdf2djvu.spec
+++ b/pdf2djvu.spec
@@ -2,24 +2,26 @@ Name: pdf2djvu
Version: 0.9.19
Release: 19%{?dist}
Summary: PDF to DjVu converter
-# Automatically converted from old format: GPLv2+ - review is highly recommended.
License: GPL-2.0-or-later
URL: http://jwilk.net/software/pdf2djvu
Source0: https://github.com/jwilk/%{name}/releases/download/%{version}/%{name}-%{version}.tar.xz
-# both patches are included in 0.9.19 release, remove these lines next commit
-# Patch0: pdf2djvu-PDFDoc-constructor.patch
-# Patch1: pdf2djvu-Destination-copy-constructor.patch
-Patch2: pdf2djvu-poppler-version.patch
-Patch3: pdf2djvu-poppler-26.01.0.patch
-BuildRequires: make
+Patch0: pdf2djvu-poppler-version.patch
+Patch1: pdf2djvu-poppler-26.01.0.patch
+
+ExcludeArch: %{ix86}
+
+BuildRequires: djvulibre
+BuildRequires: djvulibre-devel
+BuildRequires: exiv2-devel
+BuildRequires: fontconfig-devel
BuildRequires: gcc-c++
-BuildRequires: djvulibre-devel djvulibre
+BuildRequires: GraphicsMagick-c++-devel
BuildRequires: libjpeg-devel
+BuildRequires: libuuid-devel
+BuildRequires: make
BuildRequires: pkgconfig
BuildRequires: poppler-devel
-BuildRequires: fontconfig-devel
-BuildRequires: GraphicsMagick-c++-devel
-BuildRequires: exiv2-devel libuuid-devel
+
Requires: djvulibre
%description
@@ -28,22 +30,23 @@ graphics, text layer, hyperlinks, document outline (bookmarks) and
metadata.
%prep
-%autosetup
+%autosetup -p1
%build
-export CXXFLAGS="-std=c++20 $RPM_OPT_FLAGS"
+export CXXFLAGS="%{optflags} -std=c++20"
%configure
%make_build
%install
%make_install
-install -p -m 644 -D {doc,%{buildroot}%{_mandir}/man1}/%{name}.1
-
%find_lang %{name}
+%check
+%{buildroot}%{_bindir}/%{name} --version
+
%files -f %{name}.lang
-%doc doc/changelog
%license doc/COPYING
+%doc doc/README doc/changelog doc/credits
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1*
%{_mandir}/de/man1/%{name}.1*
@@ -52,6 +55,7 @@ install -p -m 644 -D {doc,%{buildroot}%{_mandir}/man1}/%{name}.1
%{_mandir}/pt/man1/%{name}.1*
%{_mandir}/ru/man1/%{name}.1*
+
%changelog
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 0.9.19-19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
reply other threads:[~2026-07-20 19:31 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=178457591671.1.10113155563626324085.rpms-pdf2djvu-4550eb9f9da2@fedoraproject.org \
--to=rosset.filipe@gmail.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox