cvsdist 18fc213
Name: pnm2ppa
57fd1c3
Summary: Drivers for printing to HP PPA printers
dc93b05
Epoch: 1
cvsdist 18fc213
Version: 1.04
4c2fff4
Release: 55%{?dist}
cvsdist 18fc213
URL: http://sourceforge.net/projects/pnm2ppa 
cvsdist 18fc213
Source: http://download.sourceforge.net/pnm2ppa/pnm2ppa-%{version}.tar.gz
paragn 01ea66e
# Following sourcelink is dead currently.
cvsdist 18fc213
Source1: http://www.httptech.com/ppa/files/ppa-0.8.6.tar.gz
11db7c2
# Upstream sync.
cvsdist 18fc213
Patch2: pbm2ppa-20000205.diff
11db7c2
# Use RPM_OPT_FLAGS.
cvsdist 18fc213
Patch3: pnm2ppa-redhat.patch
0faf404
# Don't return a local variable out of scope (bug #704568).
0faf404
Patch4: pnm2ppa-coverity-return-local.patch
129ddf7
# add ldflags to Makefile
129ddf7
Patch5: pnm2ppa-ldflags.patch
5949ec9
# FTBFS with GCC 10
5949ec9
Patch6: pnm2ppa-gcc10.patch
0f22ad0
# fix argument reading for non x86_64 archs - use int instead of char
0f22ad0
Patch7: pnm2ppa-optargs-read.patch
a900487
License: GPLv2+
cvsdist 18fc213
55a55f0
# gcc is no longer in buildroot by default
55a55f0
BuildRequires: gcc
bab2db5
# uses make
bab2db5
BuildRequires: make
55a55f0
547d4fc
# foomatic is needed for using the filters in CUPS
547d4fc
Requires: foomatic
547d4fc
cvsdist 18fc213
%description
cvsdist 18fc213
Pnm2ppa is a color driver for HP PPA host-based printers such as the
cvsdist 18fc213
HP710C, 712C, 720C, 722C, 820Cse, 820Cxi, 1000Cse, and 1000Cxi.
cvsdist 18fc213
Pnm2ppa accepts Ghostscript output in PPM format and sends it to the
cvsdist 18fc213
printer in PPA format.
cvsdist 18fc213
cvsdist 18fc213
Install pnm2ppa if you need to print to a PPA printer.
cvsdist 18fc213
cvsdist 18fc213
%prep
paragn 01ea66e
%setup -q
cvsdist 18fc213
cvsdist 18fc213
#pbm2ppa source
paragn 01ea66e
%setup -q -T -D -a 1 
2ef90b7
%patch2 -p0 -b .20000205
cvsdist 18fc213
%patch3 -p1 -b .rh
0faf404
%patch4 -p1 -b .coverity-return-local
129ddf7
%patch5 -p1 -b .ldflags
5949ec9
%patch6 -p1 -b .gcc10
0f22ad0
%patch7 -p1 -b .optargs-read
cvsdist 18fc213
paragn 01ea66e
for file in docs/en/LICENSE pbm2ppa-0.8.6/LICENSE; do
paragn 01ea66e
 sed "s|\r||g" $file > $file.new && \
paragn 01ea66e
 touch -r $file $file.new && \
paragn 01ea66e
 mv $file.new $file
paragn 01ea66e
done
paragn 01ea66e
cvsdist 18fc213
%build
129ddf7
# set redhat build flags
129ddf7
%set_build_flags
129ddf7
%make_build
paragn 01ea66e
pushd pbm2ppa-0.8.6
129ddf7
%make_build
paragn 01ea66e
popd
cvsdist 18fc213
cvsdist 18fc213
cvsdist 18fc213
%install
9a7b316
install -d $RPM_BUILD_ROOT%{_bindir}
9a7b316
install -d $RPM_BUILD_ROOT%{_sysconfdir}
cvsdist 18fc213
install -d $RPM_BUILD_ROOT%{_mandir}/man1
9a7b316
make INSTALLDIR=$RPM_BUILD_ROOT%{_bindir} CONFDIR=$RPM_BUILD_ROOT%{_sysconfdir} \
cvsdist 18fc213
    MANDIR=$RPM_BUILD_ROOT%{_mandir}/man1 install 
paragn 01ea66e
install -p -m 0755 utils/Linux/detect_ppa $RPM_BUILD_ROOT%{_bindir}
paragn 01ea66e
install -p -m 0755 utils/Linux/test_ppa $RPM_BUILD_ROOT%{_bindir}
paragn 01ea66e
install -p -m 0755 pbm2ppa-0.8.6/pbm2ppa  $RPM_BUILD_ROOT%{_bindir}
paragn 01ea66e
install -p -m 0755 pbm2ppa-0.8.6/pbmtpg   $RPM_BUILD_ROOT%{_bindir}
paragn 01ea66e
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.conf $RPM_BUILD_ROOT%{_sysconfdir}
paragn 01ea66e
install -p -m 0644 pbm2ppa-0.8.6/pbm2ppa.1   $RPM_BUILD_ROOT%{_mandir}/man1
cvsdist 18fc213
cvsdist 18fc213
chmod 644 docs/en/LICENSE
cvsdist 18fc213
mkdir -p pbm2ppa
cvsdist 18fc213
for file in CALIBRATION CREDITS INSTALL INSTALL-MORE LICENSE README ; do
paragn 01ea66e
  install -p -m 0644 pbm2ppa-0.8.6/$file pbm2ppa/$file
cvsdist 18fc213
done
cvsdist 18fc213
cvsdist 18fc213
cvsdist 18fc213
%files 
3fa5488
%license docs/en/LICENSE
3fa5488
%doc docs/en/CREDITS docs/en/INSTALL docs/en/README
cvsdist 18fc213
%doc docs/en/RELEASE-NOTES docs/en/TODO
cvsdist 18fc213
%doc docs/en/INSTALL.REDHAT.txt docs/en/COLOR.txt docs/en/CALIBRATION.txt
cvsdist 18fc213
%doc docs/en/INSTALL.REDHAT.html docs/en/COLOR.html docs/en/CALIBRATION.html
cvsdist 18fc213
%doc test.ps
cvsdist 18fc213
%doc pbm2ppa
9a7b316
%{_bindir}/pnm2ppa
9a7b316
%{_bindir}/pbm2ppa
9a7b316
%{_bindir}/pbmtpg
9a7b316
%{_bindir}/calibrate_ppa
9a7b316
%{_bindir}/test_ppa
9a7b316
%{_bindir}/detect_ppa
cvsdist 18fc213
%{_mandir}/man1/pnm2ppa.1*
cvsdist 18fc213
%{_mandir}/man1/pbm2ppa.1*
9a7b316
%config(noreplace) %{_sysconfdir}/pnm2ppa.conf
9a7b316
%config(noreplace) %{_sysconfdir}/pbm2ppa.conf
cvsdist 18fc213
cvsdist 18fc213
%changelog
4c2fff4
* Fri Jul 21 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-55
4c2fff4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_39_Mass_Rebuild
4c2fff4
3804f29
* Fri Jan 20 2023 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-54
3804f29
- Rebuilt for https://fedoraproject.org/wiki/Fedora_38_Mass_Rebuild
3804f29
63dedc3
* Fri Jul 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-53
63dedc3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
63dedc3
3114ebb
* Fri Jan 21 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-52
3114ebb
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
3114ebb
ae443b6
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-51
ae443b6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
ae443b6
3d3e2b8
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-50
3d3e2b8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
3d3e2b8
bab2db5
* Thu Nov 05 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-49
bab2db5
- make is no longer in buildroot by default
bab2db5
0f22ad0
* Tue Aug 04 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-48
0f22ad0
- fix argument reading for non x86_64 archs - use int instead of char
0f22ad0
547d4fc
* Mon Aug 03 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-47
547d4fc
- add foomatic as a dependency, because pnm2ppa drivers are not available as a driver without it
547d4fc
1c03695
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-46
1c03695
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
1c03695
5949ec9
* Mon Feb 03 2020 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-45
5949ec9
- FTBFS with GCC 10
5949ec9
7239cc0
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-44
7239cc0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
7239cc0
a91f14f
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-43
a91f14f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
a91f14f
ef102f7
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-42
ef102f7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
ef102f7
a900487
* Tue Jul 24 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-41
a900487
- correcting license
a900487
e9ed8dd
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-40
e9ed8dd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
e9ed8dd
3fa5488
* Wed Jul 11 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-39
3fa5488
- ship license in %%license tag
3fa5488
129ddf7
* Thu Mar 01 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-38
129ddf7
- 1548734 - pnm2ppa: Partial Fedora build flags injection
129ddf7
55a55f0
* Mon Feb 19 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-37
55a55f0
- gcc is no longer in buildroot by default
55a55f0
c1e9821
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-36
c1e9821
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
c1e9821
24b6512
* Thu Feb 08 2018 Zdenek Dohnal <zdohnal@redhat.com> - 1:1.04-35
24b6512
- remove old stuff https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/MRWOMRZ6KPCV25EFHJ2O67BCCP3L4Y6N/
24b6512
d3f6cd0
* Thu Aug 03 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-34
d3f6cd0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
d3f6cd0
f0a66a2
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-33
f0a66a2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
f0a66a2
ad582ce
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-32
ad582ce
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
ad582ce
a89549c
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:1.04-31
a89549c
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
a89549c
24e11c6
* Thu Jun 18 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-30
24e11c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
24e11c6
888e870
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-29
888e870
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
888e870
16546f6
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-28
16546f6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
16546f6
4350930
* Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-27
4350930
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
4350930
f47cbac
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-26
f47cbac
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
f47cbac
42aeef0
* Tue Oct 23 2012 Tim Waugh <twaugh@redhat.com> - 1:1.04-25
42aeef0
- Fixed license tag.  pnm2ppa is GPLv2+; pbm2ppa is GPLv2.
42aeef0
75a605d
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-24
75a605d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
75a605d
9688cc4
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-23
9688cc4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
9688cc4
0faf404
* Fri May 20 2011 Tim Waugh <twaugh@redhat.com> - 1:1.04-22
0faf404
- Don't return a local variable out of scope (bug #704568).
0faf404
2cfbee9
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-21
2cfbee9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
2cfbee9
paragn 01ea66e
* Tue Oct 05 2010 Parag Nemade <paragn AT fedoraproject.org> - 1:1.04-20
paragn 01ea66e
- Merge-review cleanup (#226303)
paragn 01ea66e
9a7b316
* Fri Mar  5 2010 Tim Waugh <twaugh@redhat.com> - 1:1.04-19
9a7b316
- Consistent use of macros.
9a7b316
- Removed ancient obsoletes tag.
9a7b316
- Clean buildroot in install section not prep section.
9a7b316
- Make setup quiet.
9a7b316
- Use noreplace for config files.
9a7b316
4884af2
* Sun Jul 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-18
4884af2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
4884af2
7055e01
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:1.04-17
7055e01
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
7055e01
2ef90b7
* Wed Sep 24 2008 Tim Waugh <twaugh@redhat.com> 1:1.04-16
2ef90b7
- Removed patch fuzz.
2ef90b7
ca6def0
* Wed Feb 13 2008 Tim Waugh <twaugh@redhat.com> 1:1.04-15
ca6def0
- Rebuild for GCC 4.3.
ca6def0
57fd1c3
* Wed Aug 29 2007 Tim Waugh <twaugh@redhat.com> 1:1.04-14
57fd1c3
- Added dist tag.
57fd1c3
- Fixed summary.
57fd1c3
- Better buildroot tag.
57fd1c3
- More specific license tag.
57fd1c3
e76f6cc
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 1:1.04-13.2.2
e76f6cc
- rebuild
e76f6cc
8ea95ec
* Fri Feb 10 2006 Jesse Keating <jkeating@redhat.com> - 1:1.04-13.2.1
8ea95ec
- bump again for double-long bug on ppc(64)
8ea95ec
ea47c3c
* Tue Feb 07 2006 Jesse Keating <jkeating@redhat.com> - 1:1.04-13.2
ea47c3c
- rebuilt for new gcc4.1 snapshot and glibc changes
ea47c3c
82a9fe5
* Fri Dec 09 2005 Jesse Keating <jkeating@redhat.com>
82a9fe5
- rebuilt
82a9fe5
33585ad
* Wed Mar 16 2005 Tim Waugh <twaugh@redhat.com> 1:1.04-13
33585ad
- Rebuild for new GCC.
33585ad
dc93b05
* Wed Feb  9 2005 Tim Waugh <twaugh@redhat.com> 1:1.04-12
dc93b05
- s/Copyright:/License:/.
dc93b05
- s/Serial:/Epoch:/.
dc93b05
- Rebuilt.
dc93b05
cvsdist eafe5b0
* Tue Jun 15 2004 Elliot Lee <sopwith@redhat.com>
cvsdist eafe5b0
- rebuilt
cvsdist eafe5b0
cvsdist d9606b5
* Thu Feb 19 2004 Tim Waugh <twaugh@redhat.com>
cvsdist d9606b5
- rebuilt
cvsdist d9606b5
cvsdist d9606b5
* Fri Feb 13 2004 Elliot Lee <sopwith@redhat.com>
cvsdist d9606b5
- rebuilt
cvsdist d9606b5
cvsdist 9d3d62a
* Wed Jun 04 2003 Elliot Lee <sopwith@redhat.com>
cvsdist 9d3d62a
- rebuilt
cvsdist 9d3d62a
cvsdist 18fc213
* Wed Jan 22 2003 Tim Powers <timp@redhat.com>
cvsdist 18fc213
- rebuilt
cvsdist 18fc213
cvsdist 18fc213
* Wed Nov 20 2002 Tim Powers <timp@redhat.com>
cvsdist 18fc213
- rebuild in current collinst
cvsdist 18fc213
cvsdist 18fc213
* Fri Jun 21 2002 Tim Powers <timp@redhat.com>
cvsdist 18fc213
- automated rebuild
cvsdist 18fc213
cvsdist 18fc213
* Thu May 23 2002 Tim Powers <timp@redhat.com>
cvsdist 18fc213
- automated rebuild
cvsdist 18fc213
cvsdist 18fc213
* Wed Jan 09 2002 Tim Powers <timp@redhat.com>
cvsdist 18fc213
- automated rebuild
cvsdist 18fc213
cvsdist 18fc213
* Sun Jun 24 2001 Elliot Lee <sopwith@redhat.com>
cvsdist 18fc213
- Bump release + rebuild.
cvsdist 18fc213
cvsdist 18fc213
* Mon Dec 11 2000 Crutcher Dunnavant <crutcher@redhat.com>
cvsdist 18fc213
- Upgrade to 1.04, editied the pbm2ppa patch to add <string.h>
cvsdist 18fc213
- to pbmtpg.c, which uses strmp, edited the redhat patch to
cvsdist 18fc213
- apply cleanly.
cvsdist 18fc213
24b6512
* Thu Aug 17 2000 Bill Nottingham <notting@redhat.com>
cvsdist 18fc213
- tweak summary
cvsdist 18fc213
cvsdist 18fc213
* Thu Aug  3 2000 Bill Nottingham <notting@redhat.com>
cvsdist 18fc213
- build upstream package
cvsdist 18fc213
cvsdist 18fc213
* Tue Jul 11 2000 Duncan Haldane <duncan_haldane@users.sourceforge.net>
cvsdist 18fc213
- updated for 1.0 release.
cvsdist 18fc213
cvsdist 18fc213
* Mon Jul 10 2000 Florian La Roche <Florian.LaRoche@redhat.com>
cvsdist 18fc213
- remove execute bits from config file and man-page
cvsdist 18fc213
cvsdist 18fc213
* Sun Apr 09 2000 <duncan_haldane@users.sourceforge.net>
cvsdist 18fc213
- added optional updated rhs-printfilter  files
cvsdist 18fc213
cvsdist 18fc213
* Thu Feb 10 2000 Bill Nottingham <notting@redhat.com>
cvsdist 18fc213
- adopt upstream package
cvsdist 18fc213
cvsdist 18fc213
* Sun Feb 6 2000 <duncan_haldane@users.sourceforge.net>
cvsdist 18fc213
- new pnm2ppa release,  and add pbm2ppa driver.
cvsdist 18fc213
24b6512
* Thu Jan 6 2000 <duncan_haldane@users.sourceforge.net>
cvsdist 18fc213
- created rpm
cvsdist 18fc213
cvsdist 18fc213
cvsdist 18fc213