Update to 0.2.10

Resolves: #2053818
This commit is contained in:
Marek Kasik 2022-03-02 09:31:12 +01:00
parent e4fa3b6ea3
commit e8d8825845
4 changed files with 8 additions and 37 deletions

1
.gitignore vendored
View File

@ -1,2 +1,3 @@
/libspectre-0.2.8.tar.gz
/libspectre-0.2.9.tar.gz
/libspectre-0.2.10.tar.gz

View File

@ -1,32 +0,0 @@
From 4d34d6cfe9bd8fc7b8355a39502374d9d6426ed0 Mon Sep 17 00:00:00 2001
From: Marek Kasik <mkasik@redhat.com>
Date: Mon, 29 Nov 2021 16:27:57 +0100
Subject: [PATCH] Set alignment for rendering to default
Previous aligning to 32 bytes rendered EPS in wrong way (not always but often).
Setting default alignment which aligns to size of pointer fixes this issue.
The commit which set it to the 32 was talking about alignment of 4 bytes so I guess
that there were bits interchanged with bytes.
Fixes #44
---
libspectre/spectre-device.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/libspectre/spectre-device.c b/libspectre/spectre-device.c
index 708fcb0..6959db0 100644
--- a/libspectre/spectre-device.c
+++ b/libspectre/spectre-device.c
@@ -331,7 +331,7 @@ spectre_device_render (SpectreDevice *device,
args[arg++] = dsp_format = _spectre_strdup_printf ("-dDisplayFormat=%d",
DISPLAY_COLORS_RGB |
DISPLAY_DEPTH_8 |
- DISPLAY_ROW_ALIGN_32 |
+ DISPLAY_ROW_ALIGN_DEFAULT |
#ifdef WORDS_BIGENDIAN
DISPLAY_UNUSED_FIRST |
DISPLAY_BIGENDIAN |
--
2.33.1

View File

@ -1,14 +1,12 @@
Name: libspectre
Version: 0.2.9
Release: 6%{?dist}
Version: 0.2.10
Release: 1%{?dist}
Summary: A library for rendering PostScript(TM) documents
License: GPLv2+
URL: http://libspectre.freedesktop.org
Source0: http://libspectre.freedesktop.org/releases/%{name}-%{version}.tar.gz
Patch0: libspectre-0.2.9-alignment.patch
BuildRequires: make
BuildRequires: gcc
%if 0%{?fedora} > 27
@ -63,6 +61,10 @@ rm -fv %{buildroot}%{_libdir}/libspectre.la
%changelog
* Wed Mar 02 2022 Marek Kasik <mkasik@redhat.com> - 0.2.10-1
- Update to 0.2.10
- Resolves: #2053818
* Thu Jan 20 2022 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild

View File

@ -1 +1 @@
SHA512 (libspectre-0.2.9.tar.gz) = 7c24b5c83c6d356c89417d09dc76566afbe886ec189fe80d030a239c23ad25b061db071768117fa06805aa3d86f749fb232b7491bd7d467f26a40e348e74d5d2
SHA512 (libspectre-0.2.10.tar.gz) = 01738f452f99878beaa528b15d8df463ca22d625306d636e1a6199ade9f068d284f1def3882e954a06e5f066937343f79d0c2197fbb19ab53ef1ab0540c72f2f