56ec831
Name:		paps
56ec831
Version:	0.6.6
1bb4ea1
Release:	20%{?dist}
56ec831
56ec831
License:	LGPL
56ec831
URL:		http://paps.sourceforge.net/
56ec831
Source0:	http://prdownloads.sourceforge.net/paps/paps-%{version}.tar.gz
56ec831
BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
5b8908c
BuildRequires:	pango-devel automake autoconf libtool doxygen cups-devel
56ec831
Patch0:		paps-makefile.patch
1e01c99
## fixed in CVS
7187afd
Patch2:		paps-formfeed.patch
1e01c99
## fixed in CVS
56ec831
Patch3:		paps-0.6.6-encoding.patch
56ec831
## fixed in CVS
56ec831
Patch4:		paps-typo-font-scale.patch
56ec831
## fixed in CVS
56ec831
Patch5:		paps-0.6.6-segfault.patch
1e01c99
## fixed in CVS
56ec831
Patch6:		paps-0.6.6-font-option.patch
1e01c99
## fixed in CVS
56ec831
Patch7:		paps-0.6.6-lcctype.patch
1e01c99
## fixed in CVS
56ec831
Patch8:		paps-0.6.6-wordwrap.patch
1e01c99
## fixed in CVS
cd6d252
Patch9:		paps-0.6.6-cpilpi.patch
158e47e
Patch10:	paps-0.6.6-exitcode.patch
a055aa2
Patch11:	paps-0.6.6-fix-wcswidth.patch
c0d5660
Patch12:	paps-0.6.6-langinfo.patch
874c8ce
Patch13:	paps-0.6.6-lcnumeric.patch
259f8a8
Patch50:	paps-cups.patch
56ec831
56ec831
Summary:	Plain Text to PostScript converter
56ec831
Group:		Applications/Publishing
56ec831
%description
56ec831
paps is a PostScript converter from plain text file using Pango.
56ec831
56ec831
56ec831
%prep
56ec831
%setup -q
56ec831
%patch0 -p1 -b .makefile
56ec831
%patch2 -p1 -b .formfeed
56ec831
%patch3 -p1 -b .encoding
56ec831
%patch4 -p0 -b .typo
56ec831
%patch5 -p1 -b .segfault
56ec831
%patch6 -p1 -b .fontopt
56ec831
%patch7 -p1 -b .lcctype
56ec831
%patch8 -p1 -b .wordwrap
cd6d252
%patch9 -p1 -b .cpilpi
158e47e
%patch10 -p1 -b .exitcode
a055aa2
%patch11 -p1 -b .wcswidth
c0d5660
%patch12 -p1 -b .langinfo
874c8ce
%patch13 -p1 -b .lcnumeric
259f8a8
%patch50 -p1 -b .cups
56ec831
aclocal
56ec831
automake
56ec831
autoconf
56ec831
56ec831
56ec831
%build
56ec831
%configure
56ec831
make %{?_smp_mflags}
56ec831
56ec831
56ec831
%install
56ec831
rm -rf $RPM_BUILD_ROOT
56ec831
56ec831
make install DESTDIR=$RPM_BUILD_ROOT
56ec831
rm -rf $RPM_BUILD_ROOT%{_includedir}
56ec831
259f8a8
# make a symlink for CUPS filter
5bc09b2
%{__mkdir_p} $RPM_BUILD_ROOT/usr/lib/cups/filter # Not libdir
5bc09b2
ln -s %{_bindir}/paps $RPM_BUILD_ROOT/usr/lib/cups/filter/texttopaps
259f8a8
56ec831
%clean
56ec831
rm -rf $RPM_BUILD_ROOT
56ec831
56ec831
%files
56ec831
%defattr(-, root, root, -)
56ec831
%doc AUTHORS COPYING.LIB README TODO
56ec831
%{_bindir}/paps
56ec831
%{_mandir}/man1/paps.1*
5bc09b2
/usr/lib/cups/filter/texttopaps
56ec831
56ec831
56ec831
%changelog
1bb4ea1
* Wed May 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-20
1bb4ea1
- Fix to not do wordwrap when 'wrap=false' is given. (#240588)
1bb4ea1
874c8ce
* Tue Mar 27 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-19
874c8ce
- Fix PostScript breakage following the non-monetary numeric format from
874c8ce
  current locale. (#231916)
874c8ce
3fd0d25
* Thu Mar  7 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-18
3fd0d25
- default to lpi=6 and cpi=10 if paps is bringing up as cups filter. (#223862)
3fd0d25
c0d5660
* Tue Jan 23 2007 Akira TAGOH <tagoh@redhat.com>
c0d5660
- Better the encoding guess by looking at current locale. (#212154)
c0d5660
a055aa2
* Mon Dec  4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-17
a055aa2
- Fix a segfault on non-printable character. (#216296)
a055aa2
158e47e
* Sat Sep 30 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-16
158e47e
- paps-0.6.6-exitcode.patch: exit immediately with proper exit code
158e47e
  when unrecoverable error occurs. (#208592)
158e47e
3d73139
* Fri Sep 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-15
3d73139
- Avoid using iconv when not needed (bug #206259).
3d73139
1e01c99
* Thu Sep 14 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-14
1e01c99
- paps-cups.patch: try to parse input even if any invalid character appears.
1e01c99
  (#206259)
1e01c99
7187afd
* Thu Aug 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-13
7187afd
- paps-formfeed.patch: fixed to not insert an extra line in next page.
0a90851
  (#202731)
7187afd
89669d7
* Thu Aug 17 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-12
89669d7
- Map CUPS charset names to real ones (bug #197577).
89669d7
d0e073a
* Mon Jul 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-11
d0e073a
- add an owner info to PS.
d0e073a
b0d6f2d
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6.6-10.2
b0d6f2d
- rebuild
b0d6f2d
cd6d252
* Tue Jul  4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-10
cd6d252
- paps-0.6.6-cpilpi.patch: add --cpi and --lpi option to support the characters
cd6d252
  per inch and the lines per inch.
cd6d252
- paps-cups.patch: add cpi and lpi support.
cd6d252
a61d0be
* Thu Jun 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-9
d5c1021
- Fixed font-option patch.
a61d0be
- Adjusted CUPS patch: CUPS invokes the filter with the destination
a61d0be
  printer name in argv[0], not the binary name.
5bc09b2
- CUPS filter lives in CUPS_SERVERBIN, which is /usr/lib/cups on all
5bc09b2
  architectures -- not %%{_libdir}/cups.
5bc09b2
259f8a8
* Thu Jun 29 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-8
259f8a8
- use dist tag.
259f8a8
- paps-cups.patch: applied to work paps as CUPS filter.
259f8a8
- paps-0.6.6-encoding.patch: null-terminates the output.
259f8a8
eda028a
* Tue Jun 27 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-7
eda028a
- rebuilt to import into Core.
eda028a
56ec831
* Wed Jun 21 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-6
56ec831
- paps-0.6.6-wordwrap.patch: applied to do a wordwrap.
56ec831
56ec831
* Tue Jun 20 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-5
56ec831
- paps-typo-font-scale.patch: backported from CVS.
56ec831
- paps-0.6.6-font-option.patch: integrated --font-family and --font-scale
56ec831
  options to --font.
56ec831
- paps-0.6.6-lcctype.patch: follow LC_CTYPE to determine the default language.
56ec831
56ec831
* Fri Jun 16 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-4
56ec831
- added libtool and doxygen to BuildReq.
56ec831
- removed NEWS file which is empty.
56ec831
56ec831
* Mon Jun 12 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-3
56ec831
- use make install DESTDIR=... instead of %%makeinstall
56ec831
- add automake and autoconf to BuildReq.
56ec831
56ec831
* Thu May 25 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-2
56ec831
- paps-0.6.6-encoding.patch: support --encoding option to be able to convert
56ec831
  the input file to UTF-8.
56ec831
- paps-0.6.6-segfault.patch: fixed a possible segfault issue when reading is
56ec831
  failed.
56ec831
56ec831
* Fri May 19 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-1
56ec831
- New upstream release.
56ec831
56ec831
* Mon Apr 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.5-1
56ec831
- New upstream release.
56ec831
  - paps-0.6.3-fix-pagesize.patch: removed. it has been merged in upstream.
56ec831
  - paps-0.6.3-goption.patch: removed. it has been merged in upstream.
56ec831
  - paps-0.6.3-header.patch: removed. it has been merged in upstream.
56ec831
- paps-makefile.patch: rework to be applied.
56ec831
56ec831
* Fri Mar 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-4
56ec831
- paps-0.6.3-formfeed.patch: applied to deal with the formfeed mark properly.
56ec831
- paps-0.6.3-goption.patch: rewritten option parser using GOption. and segfault
56ec831
  gone as well. (#187205)
56ec831
- paps-0.6.3-header.patch: applied to support the output of the page header.
56ec831
56ec831
* Fri Mar 24 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-3
56ec831
- paps-0.6.3-fix-pagesize.patch: fixed displaying the beginning of line at out of page. (#176207)
56ec831
56ec831
* Thu Mar  2 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-2
56ec831
- rebuilt.
56ec831
56ec831
* Wed Jan 11 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-1
56ec831
- New upstream release.
56ec831
- paps-0.6.2-fix-bufferoverflow.patch: removed.
56ec831
56ec831
* Wed Dec 21 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.2-1
56ec831
- New upstream release.
56ec831
  - the bitmap font is now ignored. (#176206)
56ec831
- paps-0.6.2-fix-bufferoverflow.patch: applied to fix the buffer overflow.
56ec831
56ec831
* Tue Dec 13 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.1-1
56ec831
- New upstream release.
56ec831
- paps-0.6.1-makefile.patch: applied to install docs on the proper dir.
56ec831
56ec831
* Fri Nov  4 2005 Akira TAGOH <tagoh@redhat.com> - 0.5-1
56ec831
- New upstream release.
56ec831
56ec831
* Tue Oct 18 2005 Akira TAGOH <tagoh@redhat.com> - 0.3-1
56ec831
- Initial package.
56ec831