From f301fbe2d29dd5469edbea11964069ad39dc666d Mon Sep 17 00:00:00 2001 From: Silvan Calarco Date: Sat, 6 Jan 2024 10:23:23 +0100 Subject: [PATCH] rebuilt with fix for aarch64 [release 1.13-3mamba;Thu Dec 29 2022] --- pnm2ppa-1.13-missing-ppa_syslog_static.patch | 11 ++++++++++ pnm2ppa.spec | 22 +++++++++++++------- 2 files changed, 25 insertions(+), 8 deletions(-) create mode 100644 pnm2ppa-1.13-missing-ppa_syslog_static.patch diff --git a/pnm2ppa-1.13-missing-ppa_syslog_static.patch b/pnm2ppa-1.13-missing-ppa_syslog_static.patch new file mode 100644 index 0000000..f6deb61 --- /dev/null +++ b/pnm2ppa-1.13-missing-ppa_syslog_static.patch @@ -0,0 +1,11 @@ +--- ppa_syslog.h 2021-04-01 14:50:32.369176172 +0200 ++++ ppa_syslog.h.patched 2021-04-01 14:51:01.486226082 +0200 +@@ -39,7 +39,7 @@ + #include + #endif + +-char syslog_message[128]; ++static char syslog_message[128]; + extern size_t message_size ; + + void wrap_syslog( int, char *, char *); diff --git a/pnm2ppa.spec b/pnm2ppa.spec index 5bdb751..577831f 100644 --- a/pnm2ppa.spec +++ b/pnm2ppa.spec @@ -1,26 +1,29 @@ Name: pnm2ppa Version: 1.13 -Release: 2mamba +Release: 3mamba Summary: pnm2ppa converts from pnm to ppa (a closed HP printing protocol) Group: Applications/Graphics Vendor: openmamba Distribution: openmamba -Packager: Ercole 'ercolinux' Carpanetto -URL: http://pnm2ppa.sourceforge.net/ -Source: http://garr.dl.sourceforge.net/project/pnm2ppa/pnm2ppa/%{version}/pnm2ppa-%{version}.tar.gz +Packager: Silvan Calarco +URL: https://pnm2ppa.sourceforge.net/ +Source: https://downloads.sourceforge.net/project/pnm2ppa/pnm2ppa/%{version}/pnm2ppa-%{version}.tar.gz +Patch0: pnm2ppa-1.13-missing-ppa_syslog_static.patch License: GPL ## AUTOBUILDREQ-BEGIN BuildRequires: glibc-devel ## AUTOBUILDREQ-END -BuildRoot: %{_tmppath}/%{name}-%{version}-root - -%debug_package %description PPA (Printing Performance Architecture) is a closed, proprietary protocol developed by Hewlett Packard for a short-lived series of DeskJet printers. In essence, the PPA protocol moves the low-level processing of the data to the host computer rather than the printer. This allows for a low-cost (to produce) printer with a small amount of memory and computing power. +%debug_package + %prep %setup -q +%patch0 -p0 -b .missing-ppa_syslog_static + +sed -i "s,| arm-\* |,| aarch64-\* | arm-\* |," config.sub %build %configure @@ -38,9 +41,12 @@ PPA (Printing Performance Architecture) is a closed, proprietary protocol develo %config %{_sysconfdir}/pnm2ppa.conf %{_bindir}/calibrate_ppa %{_bindir}/pnm2ppa -%{_mandir}/man1/pnm2ppa.1.gz +%{_mandir}/man1/pnm2ppa.1* %changelog +* Thu Dec 29 2022 Silvan Calarco 1.13-3mamba +- rebuilt with fix for aarch64 + * Tue Feb 14 2012 Silvan Calarco 1.13-2mamba - added build requirements