56ec831
Name:		paps
1a8b5cd
Version:	0.6.8
93038aa
Release:	8%{?dist}
56ec831
979327a
License:	LGPLv2+
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
1a8b5cd
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241
1a8b5cd
Patch0:		paps-0.6.8-shared.patch
1a8b5cd
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241
1a8b5cd
Patch1:		paps-0.6.8-wordwrap.patch
1a8b5cd
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832926&group_id=153049&atid=786241
dc38bd4
Patch2:		paps-langinfo.patch
1a8b5cd
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832929&group_id=153049&atid=786241
1a8b5cd
Patch3:		paps-0.6.6-lcnumeric.patch
1a8b5cd
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241
dc38bd4
Patch4:		paps-exitcode.patch
259f8a8
Patch50:	paps-cups.patch
1a8b5cd
Patch51:	paps-cpilpi.patch
b4b5931
Patch52:	paps-dsc-compliant.patch
9757238
Patch53:	paps-autoconf262.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
1a8b5cd
%package libs
1a8b5cd
Summary:	Libraries for paps
1a8b5cd
Group:		Development/Libraries
1a8b5cd
%description libs
1a8b5cd
paps is a PostScript converter from plain text file using Pango.
1a8b5cd
1a8b5cd
This package contains the library for paps.
1a8b5cd
1a8b5cd
%package devel
1a8b5cd
Summary:	Development files for paps
1a8b5cd
Group:		Development/Libraries
1a8b5cd
Requires:	%{name}-libs = %{version}-%{release}
1a8b5cd
%description devel
1a8b5cd
paps is a PostScript converter from plain text file using Pango.
1a8b5cd
1a8b5cd
This package contains the development files that is necessary to develop
1a8b5cd
applications using paps API.
56ec831
56ec831
%prep
56ec831
%setup -q
1a8b5cd
%patch0 -p1 -b .shared
1a8b5cd
%patch1 -p1 -b .wordwrap
1a8b5cd
%patch2 -p1 -b .langinfo
1a8b5cd
%patch3 -p1 -b .lcnumeric
1a8b5cd
%patch4 -p1 -b .exitcode
259f8a8
%patch50 -p1 -b .cups
1a8b5cd
%patch51 -p1 -b .cpilpi
bedf7f5
%patch52 -p1 -b .dsc
9757238
%patch53 -p1 -b .autoconf262
7dd5e13
libtoolize -f -c
1a8b5cd
autoreconf
56ec831
56ec831
56ec831
%build
1a8b5cd
%configure --disable-static
56ec831
make %{?_smp_mflags}
56ec831
56ec831
56ec831
%install
56ec831
rm -rf $RPM_BUILD_ROOT
56ec831
56ec831
make install DESTDIR=$RPM_BUILD_ROOT
1a8b5cd
1a8b5cd
# remove unnecessary files
1a8b5cd
rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la
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
1a8b5cd
%files libs
1a8b5cd
%defattr(-, root, root, -)
1a8b5cd
%doc COPYING.LIB
1a8b5cd
%{_libdir}/libpaps.so.*
1a8b5cd
1a8b5cd
%files devel
1a8b5cd
%defattr(-, root, root, -)
1a8b5cd
%doc COPYING.LIB
1a8b5cd
%{_includedir}/libpaps.h
1a8b5cd
%{_libdir}/libpaps.so
56ec831
56ec831
%changelog
93038aa
* Mon Nov 17 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-8
93038aa
- Courier font to be a default font for texttopaps. (#469325)
93038aa
dc38bd4
* Mon Sep  1 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-7
dc38bd4
- paps-langinfo.patch: Updated.
dc38bd4
- paps-exitcode.patch: Updated.
dc38bd4
b4b5931
* Fri May 16 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-6
b4b5931
- paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137)
9757238
- paps-autoconf262.patch: Fix an error on autoreconf.
b4b5931
391cd95
* Tue Feb 12 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-5
391cd95
- Rebuild for gcc-4.3.
391cd95
15b52fa
* Wed Jan 23 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-4
15b52fa
- Fix an exception on ghostscript. (#429275)
15b52fa
ddd1ea2
* Tue Jan 15 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-3
ddd1ea2
- Put %%%%Pages: after %%%%Trailer. (#424951)
ddd1ea2
307c33a
* Thu Jan 10 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-2
bedf7f5
- paps-0.6.8-dsc-compliant.patch: Patch out to be DSC compliant. (#424951)
bedf7f5
1a8b5cd
* Fri Nov 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.8-1
1a8b5cd
- New upstream release.
1a8b5cd
  - Remove patches merged and unnecessary anymore:
1a8b5cd
    - paps-makefile.patch
1a8b5cd
    - paps-formfeed.patch
1a8b5cd
    - paps-0.6.6-encoding.patch
1a8b5cd
    - paps-typo-font-scale.patch
1a8b5cd
    - paps-0.6.6-segfault.patch
1a8b5cd
    - paps-0.6.6-font-option.patch
1a8b5cd
    - paps-0.6.6-lcctype.patch
1a8b5cd
- paps-0.6.8-shared.patch: Enable building shared library.
1a8b5cd
- paps-0.6.8-wordwrap.patch: Update a bit to get it working without an wordwrap
1a8b5cd
  mode.
1a8b5cd
- Add paps-libs and paps-devel package.
1a8b5cd
- paps-cups.patch: Update.
1a8b5cd
- paps-cpilpi.patch: Update.
1a8b5cd
- Fix the wrong rendering with CPI option. (#237202)
1a8b5cd
- Fix the unnecessary rotation with the landscape option when paps is running
1a8b5cd
  as CUPS filter. (#222137)
1a8b5cd
904301c
* Thu Aug 23 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-21
904301c
- Rebuild
904301c
979327a
* Fri Aug 10 2007 Akira TAGOH <tagoh@redhat.com>
979327a
- Update License tag.
979327a
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