fix to build for el8

master 3.8.35-7
Jean-Philippe Pialasse 2 months ago
parent 759284ddef
commit 80687600e8

@ -0,0 +1,12 @@
diff -Nur --no-dereference LPRng-3.8.35.old/src/common/lpf.c LPRng-3.8.35/src/common/lpf.c
--- LPRng-3.8.35.old/src/common/lpf.c 2005-05-07 13:28:23.000000000 -0400
+++ LPRng-3.8.35/src/common/lpf.c 2024-03-15 16:50:08.863000000 -0400
@@ -485,7 +485,7 @@
case 'x': xwidth = atoi( optargv ); break;
case 'y': ylength = atoi( optargv ); break;
case 'V':
- fprintf( stdout, Version );
+ fputs(Version, stdout);
Printlist( Copyright, 2 );
exit(1);
break;

@ -1,12 +1,14 @@
%global debug_package %{nil}
Summary: The LPRng print spooler.
Name: LPRng
Version: 3.8.35
Release: 6%{?dist}
Release: 7%{?dist}
License: GPL and Artistic
Group: System Environment/Daemons
Source0: ftp://ftp.lprng.com/pub/LPRng/LPRng/%{name}-%{version}.tgz
Source1: lpd.init
Patch0: LPRng-3.8.35-el5_build_fix.patch
Patch1: LPRng-3.8.35-el8_build_format-security.patch
URL: http://www.lprng.com
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root
Obsoletes: lpr
@ -44,6 +46,7 @@ to add.
%setup -q
%patch0 -p1
%patch1 -p1
# pick up configure.in changes
@ -100,8 +103,7 @@ fi
%attr(644,root,root) %{_sysconfdir}/lpd/lpd.perms.sample
%attr(644,root,root) %{_sysconfdir}/printcap.sample
%attr(755,root,root) %{_libdir}/*
%config %{_sysconfdir}/rc.d/init.d/lpd
%attr(755,root,root) %{_sysconfdir}/rc.d/init.d/lpd
%config %attr(755,root,root) %{_sysconfdir}/rc.d/init.d/lpd
%doc %{_datadir}/LPRng/*
%attr(755,lp,lp) %{_bindir}/lpq
%attr(755,lp,lp) %{_bindir}/lprm
@ -126,6 +128,11 @@ fi
%exclude %{_sysconfdir}/rc.d/init.d/lpd.sample
%changelog
* Fri Mar 15 2024 Jean-Philippe Pialasse <jpp@koozali.org> 3.8.35-7.sme
- fix security warning at buidl time for el8 to build
- fix File listed twice /etc/rc.d/init.d/lpd
- fix empty debugsource filelist
* Wed Jul 12 2023 BogusDateBot
- Eliminated rpmbuild "bogus date" warnings due to inconsistent weekday,
by assuming the date is correct and changing the weekday.

Loading…
Cancel
Save