Toshaan Bharvani
2 years ago
commit
8d942f5581
2 changed files with 223 additions and 0 deletions
@ -0,0 +1,32 @@
@@ -0,0 +1,32 @@
|
||||
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 |
||||
|
@ -0,0 +1,191 @@
@@ -0,0 +1,191 @@
|
||||
Name: libspectre |
||||
Version: 0.2.9 |
||||
Release: 6%{?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 |
||||
BuildRequires: libgs-devel |
||||
%else |
||||
BuildRequires: ghostscript-devel >= 8.61 |
||||
%endif |
||||
|
||||
%description |
||||
%{name} is a small library for rendering PostScript(TM) documents. |
||||
It provides a convenient easy to use API for handling and rendering |
||||
PostScript documents. |
||||
|
||||
|
||||
%package devel |
||||
Summary: Development files for %{name} |
||||
Requires: %{name}%{?_isa} = %{version}-%{release} |
||||
%description devel |
||||
The %{name}-devel package contains libraries and header files for |
||||
developing applications that use %{name}. |
||||
|
||||
|
||||
%prep |
||||
%autosetup -p1 |
||||
|
||||
|
||||
%build |
||||
%configure \ |
||||
--disable-silent-rules \ |
||||
--disable-static |
||||
|
||||
%make_build |
||||
|
||||
|
||||
%install |
||||
%make_install |
||||
|
||||
rm -fv %{buildroot}%{_libdir}/libspectre.la |
||||
|
||||
|
||||
%ldconfig_scriptlets |
||||
|
||||
%files |
||||
%license COPYING |
||||
%doc AUTHORS NEWS README TODO |
||||
%{_libdir}/libspectre.so.1* |
||||
|
||||
%files devel |
||||
%{_includedir}/libspectre/ |
||||
%{_libdir}/libspectre.so |
||||
%{_libdir}/pkgconfig/libspectre.pc |
||||
|
||||
|
||||
%changelog |
||||
* Wed Dec 08 2021 Marek Kasik <mkasik@redhat.com> - 0.2.9-6 |
||||
- Set alignment for rendering to default |
||||
- Resolves: #2029329 |
||||
|
||||
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 0.2.9-5 |
||||
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags |
||||
Related: rhbz#1991688 |
||||
|
||||
* Fri Apr 16 2021 Mohan Boddu <mboddu@redhat.com> - 0.2.9-4 |
||||
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937 |
||||
|
||||
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild |
||||
|
||||
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.9-2 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild |
||||
|
||||
* Thu May 07 2020 Marek Kasik <mkasik@redhat.com> - 0.2.9-1 |
||||
- Update to 0.2.9 |
||||
- Resolves: #1832567 |
||||
|
||||
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-10 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild |
||||
|
||||
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-9 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild |
||||
|
||||
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-8 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild |
||||
|
||||
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-7 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild |
||||
|
||||
* Wed Mar 07 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.2.8-6 |
||||
- BR: gcc, use %%ldconfig_scriptlets %%make_build %%make_install |
||||
|
||||
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-5 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild |
||||
|
||||
* Mon Jan 15 2018 Rex Dieter <rdieter@fedoraproject.org> - 0.2.8-5 |
||||
- BR: libgs-devel (f28+) |
||||
- .spec cleanup/cosmetics (drop deprecated tags, use %%autosetup/%%license, tighten subpkg dep) |
||||
|
||||
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-4 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild |
||||
|
||||
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild |
||||
|
||||
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.8-2 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild |
||||
|
||||
* Tue Jul 12 2016 Martin Hatina <mhatina@redhat.com> - 0.2.8-1 |
||||
- Update to 0.2.8 |
||||
|
||||
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.2.7-8 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild |
||||
|
||||
* Fri Jul 31 2015 Marek Kasik <mkasik@redhat.com> - 0.2.7-7 |
||||
- Rotate result of rendering in libspectre |
||||
- Resolves: #1172317 |
||||
|
||||
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-6 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild |
||||
|
||||
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-5 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild |
||||
|
||||
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-4 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild |
||||
|
||||
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild |
||||
|
||||
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.7-2 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild |
||||
|
||||
* Wed Sep 19 2012 Marek Kasik <mkasik@redhat.com> - 0.2.7-1 |
||||
- Update to 0.2.7 |
||||
|
||||
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-6 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild |
||||
|
||||
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-5 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild |
||||
|
||||
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.6-4 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild |
||||
|
||||
* Wed Sep 29 2010 jkeating - 0.2.6-3 |
||||
- Rebuilt for gcc bug 634757 |
||||
|
||||
* Sat Sep 25 2010 Rex Dieter <rdieter@fedoraproject.org> - 0.2.6-2 |
||||
- rebuild (ghostscript) |
||||
- %%files: track sonames (and friends) closer |
||||
|
||||
* Sat Jun 12 2010 Matthias Clasen <mclasen@redhat.com> - 0.2.6-1 |
||||
- Update to 0.2.6 |
||||
|
||||
* Wed Mar 3 2010 Matthias Clasen <mclasen@redhat.com> - 0.2.4-1 |
||||
- Update to 0.2.4 |
||||
- See http://mail.gnome.org/archives/gnome-announce-list/2010-February/msg00059.html |
||||
|
||||
* Fri Jan 8 2010 Marek Kasik <mkasik@redhat.com> - 0.2.3-4 |
||||
- Correct release number |
||||
|
||||
* Fri Jan 8 2010 Marek Kasik <mkasik@redhat.com> - 0.2.3-1 |
||||
- Update to 0.2.3 |
||||
|
||||
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-3 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild |
||||
|
||||
* Wed Feb 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.2.2-2 |
||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild |
||||
|
||||
* Wed Dec 3 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.2-1 |
||||
- Update to 0.2.2 |
||||
|
||||
* Sun Aug 10 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.1-1 |
||||
- Update to 0.2.1 |
||||
|
||||
* Sat Feb 9 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.0-2 |
||||
- Rebuild for gcc 4.3 |
||||
|
||||
* Tue Jan 29 2008 Matthias Clasen <mclasen@redhat.com> - 0.2.0-1 |
||||
- Initial packaging |
Loading…
Reference in new issue