3a0fb8
Name: pnm2ppa
3a0fb8
Summary: Drivers for printing to HP PPA printers
3a0fb8
Epoch: 1
3a0fb8
Version: 1.04
3a0fb8
Release: 40%{?dist}
3a0fb8
URL: http://sourceforge.net/projects/pnm2ppa 
3a0fb8
Source: http://download.sourceforge.net/pnm2ppa/pnm2ppa-%{version}.tar.gz
3a0fb8
# Following sourcelink is dead currently.
3a0fb8
Source1: http://www.httptech.com/ppa/files/ppa-0.8.6.tar.gz
3a0fb8
# Upstream sync.
3a0fb8
Patch2: pbm2ppa-20000205.diff
3a0fb8
# Use RPM_OPT_FLAGS.
3a0fb8
Patch3: pnm2ppa-redhat.patch
3a0fb8
# Don't return a local variable out of scope (bug #704568).
3a0fb8
Patch4: pnm2ppa-coverity-return-local.patch
3a0fb8
# add ldflags to Makefile
3a0fb8
Patch5: pnm2ppa-ldflags.patch
3a0fb8
License: GPLv2+
3a0fb8
3a0fb8
# gcc is no longer in buildroot by default
3a0fb8
BuildRequires: gcc
3a0fb8
3a0fb8
%description
3a0fb8
Pnm2ppa is a color driver for HP PPA host-based printers such as the
3a0fb8
HP710C, 712C, 720C, 722C, 820Cse, 820Cxi, 1000Cse, and 1000Cxi.
3a0fb8
Pnm2ppa accepts Ghostscript output in PPM format and sends it to the
3a0fb8
printer in PPA format.
3a0fb8
3a0fb8
Install pnm2ppa if you need to print to a PPA printer.
3a0fb8
3a0fb8
%prep
3a0fb8
%setup -q
3a0fb8
3a0fb8
#pbm2ppa source
3a0fb8
%setup -q -T -D -a 1 
3a0fb8
%patch2 -p0 -b .20000205
3a0fb8
%patch3 -p1 -b .rh
3a0fb8
%patch4 -p1 -b .coverity-return-local
3a0fb8
%patch5 -p1 -b .ldflags
3a0fb8
3a0fb8
for file in docs/en/LICENSE pbm2ppa-0.8.6/LICENSE; do
3a0fb8
 sed "s|\r||g" $file > $file.new && \
3a0fb8
 touch -r $file $file.new && \
3a0fb8
 mv $file.new $file
3a0fb8
done
3a0fb8
3a0fb8
%build
3a0fb8
# set redhat build flags
3a0fb8
%set_build_flags
3a0fb8
%make_build
3a0fb8
pushd pbm2ppa-0.8.6
3a0fb8
%make_build
3a0fb8
popd
3a0fb8
3a0fb8
3a0fb8
%install
3a0fb8
install -d $RPM_BUILD_ROOT%{_bindir}
3a0fb8
install -d $RPM_BUILD_ROOT%{_sysconfdir}
3a0fb8
install -d $RPM_BUILD_ROOT%{_mandir}/man1
3a0fb8
make INSTALLDIR=$RPM_BUILD_ROOT%{_bindir} CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
3a0fb8
    MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install 
3a0fb8
install -p -m 0755 utils/Linux/detect_ppa $RPM_BUILD_ROOT%{_bindir}
3a0fb8
install -p -m 0755 utils/Linux/test_ppa $RPM_BUILD_ROOT%{_bindir}
3a0fb8
install -p -m 0755 pbm2ppa-0.8.6/pbm2ppa  $RPM_BUILD_ROOT%{_bindir}
3a0fb8
install -p -m 0755 pbm2ppa-0.8.6/pbmtpg   $RPM_BUILD_ROOT%{_bindir}
3a0fb8
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.conf $RPM_BUILD_ROOT%{_sysconfdir}
3a0fb8
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.1   $RPM_BUILD_ROOT%{_mandir}/man1
3a0fb8
3a0fb8
chmod 644 docs/en/LICENSE
3a0fb8
mkdir -p pbm2ppa
3a0fb8
for file in CALIBRATION CREDITS INSTALL INSTALL-MORE LICENSE README ; do
3a0fb8
  install -p -m 0644 pbm2ppa-0.8.6/$file pbm2ppa/$file
3a0fb8
done
3a0fb8
3a0fb8
3a0fb8
%files 
3a0fb8
%license docs/en/LICENSE
3a0fb8
%doc docs/en/CREDITS docs/en/INSTALL docs/en/README
3a0fb8
%doc docs/en/RELEASE-NOTES docs/en/TODO
3a0fb8
%doc docs/en/INSTALL.REDHAT.txt docs/en/COLOR.txt docs/en/CALIBRATION.txt
3a0fb8
%doc docs/en/INSTALL.REDHAT.html docs/en/COLOR.html docs/en/CALIBRATION.html
3a0fb8
%doc test.ps
3a0fb8
%doc pbm2ppa
3a0fb8
%{_bindir}/pnm2ppa
3a0fb8
%{_bindir}/pbm2ppa
3a0fb8
%{_bindir}/pbmtpg
3a0fb8
%{_bindir}/calibrate_ppa
3a0fb8
%{_bindir}/test_ppa
3a0fb8
%{_bindir}/detect_ppa
3a0fb8
%{_mandir}/man1/pnm2ppa.1*
3a0fb8
%{_mandir}/man1/pbm2ppa.1*
3a0fb8
%config(noreplace) %{_sysconfdir}/pnm2ppa.conf
3a0fb8
%config(noreplace) %{_sysconfdir}/pbm2ppa.conf
3a0fb8
3a0fb8
%changelog
3a0fb8
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-40
3a0fb8
- correcting license
3a0fb8
3a0fb8
* Wed Jul 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-39
3a0fb8
- ship license in %%license tag
3a0fb8
3a0fb8
* Thu Mar 01 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-38
3a0fb8
- 1548734 - pnm2ppa: Partial Fedora build flags injection
3a0fb8
3a0fb8
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-37
3a0fb8
- gcc is no longer in buildroot by default
3a0fb8
3a0fb8
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-36
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
3a0fb8
3a0fb8
* Thu Feb 08 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-35
3a0fb8
- remove old stuff https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
3a0fb8
3a0fb8
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-34
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
3a0fb8
3a0fb8
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-33
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
3a0fb8
3a0fb8
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-32
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
3a0fb8
3a0fb8
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-31
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
3a0fb8
3a0fb8
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-30
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
3a0fb8
3a0fb8
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-29
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3a0fb8
3a0fb8
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-28
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3a0fb8
3a0fb8
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-27
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
3a0fb8
3a0fb8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-26
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
3a0fb8
3a0fb8
* Tue Oct 23 2012 Tim Waugh <twaugh@redhat.com> - 1:1.04-25
3a0fb8
- Fixed license tag.  pnm2ppa is GPLv2+; pbm2ppa is GPLv2.
3a0fb8
3a0fb8
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-24
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
3a0fb8
3a0fb8
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-23
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
3a0fb8
3a0fb8
* Fri May 20 2011 Tim Waugh <twaugh@redhat.com> - 1:1.04-22
3a0fb8
- Don't return a local variable out of scope (bug #704568).
3a0fb8
3a0fb8
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-21
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
3a0fb8
3a0fb8
* Tue Oct 05 2010 Parag Nemade <paragn AT fedoraproject.org> - 1:1.04-20
3a0fb8
- Merge-review cleanup (#226303)
3a0fb8
3a0fb8
* Fri Mar  5 2010 Tim Waugh <twaugh@redhat.com> - 1:1.04-19
3a0fb8
- Consistent use of macros.
3a0fb8
- Removed ancient obsoletes tag.
3a0fb8
- Clean buildroot in install section not prep section.
3a0fb8
- Make setup quiet.
3a0fb8
- Use noreplace for config files.
3a0fb8
3a0fb8
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-18
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
3a0fb8
3a0fb8
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-17
3a0fb8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
3a0fb8
3a0fb8
* Wed Sep 24 2008 Tim Waugh <twaugh@redhat.com> 1:1.04-16
3a0fb8
- Removed patch fuzz.
3a0fb8
3a0fb8
* Wed Feb 13 2008 Tim Waugh <twaugh@redhat.com> 1:1.04-15
3a0fb8
- Rebuild for GCC 4.3.
3a0fb8
3a0fb8
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 1:1.04-14
3a0fb8
- Added dist tag.
3a0fb8
- Fixed summary.
3a0fb8
- Better buildroot tag.
3a0fb8
- More specific license tag.
3a0fb8
3a0fb8
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.04-13.2.2
3a0fb8
- rebuild
3a0fb8
3a0fb8
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:1.04-13.2.1
3a0fb8
- bump again for double-long bug on ppc(64)
3a0fb8
3a0fb8
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:1.04-13.2
3a0fb8
- rebuilt for new gcc4.1 snapshot and glibc changes
3a0fb8
3a0fb8
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
3a0fb8
- rebuilt
3a0fb8
3a0fb8
* Wed Mar 16 2005 Tim Waugh <twaugh@redhat.com> 1:1.04-13
3a0fb8
- Rebuild for new GCC.
3a0fb8
3a0fb8
* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 1:1.04-12
3a0fb8
- s/Copyright:/License:/.
3a0fb8
- s/Serial:/Epoch:/.
3a0fb8
- Rebuilt.
3a0fb8
3a0fb8
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
3a0fb8
- rebuilt
3a0fb8
3a0fb8
* Thu Feb 19 2004 Tim Waugh <twaugh@redhat.com>
3a0fb8
- rebuilt
3a0fb8
3a0fb8
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
3a0fb8
- rebuilt
3a0fb8
3a0fb8
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
3a0fb8
- rebuilt
3a0fb8
3a0fb8
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
3a0fb8
- rebuilt
3a0fb8
3a0fb8
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
3a0fb8
- rebuild in current collinst
3a0fb8
3a0fb8
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
3a0fb8
- automated rebuild
3a0fb8
3a0fb8
* Thu May 23 2002 Tim Powers <timp@redhat.com>
3a0fb8
- automated rebuild
3a0fb8
3a0fb8
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
3a0fb8
- automated rebuild
3a0fb8
3a0fb8
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
3a0fb8
- Bump release + rebuild.
3a0fb8
3a0fb8
* Mon Dec 11 2000 Crutcher Dunnavant <crutcher@redhat.com>
3a0fb8
- Upgrade to 1.04, editied the pbm2ppa patch to add <string.h>
3a0fb8
- to pbmtpg.c, which uses strmp, edited the redhat patch to
3a0fb8
- apply cleanly.
3a0fb8
3a0fb8
* Thu Aug 17 2000 Bill Nottingham <notting@redhat.com>
3a0fb8
- tweak summary
3a0fb8
3a0fb8
* Thu Aug  3 2000 Bill Nottingham <notting@redhat.com>
3a0fb8
- build upstream package
3a0fb8
3a0fb8
* Tue Jul 11 2000 Duncan Haldane <duncan_haldane@users.sourceforge.net>
3a0fb8
- updated for 1.0 release.
3a0fb8
3a0fb8
* Mon Jul 10 2000 Florian La Roche <Florian.LaRoche@redhat.com>
3a0fb8
- remove execute bits from config file and man-page
3a0fb8
3a0fb8
* Sun Apr 09 2000 <duncan_haldane@users.sourceforge.net>
3a0fb8
- added optional updated rhs-printfilter  files
3a0fb8
3a0fb8
* Thu Feb 10 2000 Bill Nottingham <notting@redhat.com>
3a0fb8
- adopt upstream package
3a0fb8
3a0fb8
* Sun Feb 6 2000 <duncan_haldane@users.sourceforge.net>
3a0fb8
- new pnm2ppa release,  and add pbm2ppa driver.
3a0fb8
3a0fb8
* Thu Jan 6 2000 <duncan_haldane@users.sourceforge.net>
3a0fb8
- created rpm
3a0fb8
3a0fb8
3a0fb8