Blame SPECS/paps.spec

8ae51f
Name:           paps
8ae51f
Version:        0.6.8
731909
Release:        28%{?dist}
8ae51f
8ae51f
License:        LGPLv2+
8ae51f
URL:            http://paps.sourceforge.net/
8ae51f
Source0:        http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
8ae51f
Source1:        paps.convs
8ae51f
BuildRequires:  pango-devel automake autoconf libtool doxygen cups-devel
8ae51f
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832897&group_id=153049&atid=786241
8ae51f
Patch0:         paps-0.6.8-shared.patch
8ae51f
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832924&group_id=153049&atid=786241
8ae51f
Patch1:         paps-0.6.8-wordwrap.patch
8ae51f
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832926&group_id=153049&atid=786241
8ae51f
Patch2:         paps-langinfo.patch
8ae51f
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832929&group_id=153049&atid=786241
8ae51f
Patch3:         paps-0.6.6-lcnumeric.patch
8ae51f
## https://sourceforge.net/tracker/index.php?func=detail&aid=1832935&group_id=153049&atid=786241
8ae51f
Patch4:         paps-exitcode.patch
8ae51f
## rhbz#854897
8ae51f
Patch5:         paps-854897-manpage.patch
8ae51f
## Fedora specific patch to integrate with CUPS
8ae51f
Patch50:        paps-cups.patch
8ae51f
Patch51:        paps-cpilpi.patch
8ae51f
## rhbz#424951
8ae51f
Patch52:        paps-dsc-compliant.patch
8ae51f
Patch53:        paps-autoconf262.patch
8ae51f
## rhbz#524883
8ae51f
Patch54:        paps-fix-cpi.patch
8ae51f
## rhbz#618483
8ae51f
Patch55:        paps-fix-loop-in-split.patch
8ae51f
## rhbz#857592
8ae51f
Patch56:        paps-fix-tab-width.patch
8ae51f
Patch57:        paps-fix-non-weak-symbol.patch
8ae51f
Patch58:        paps-correct-fsf-address.patch
8ae51f
8ae51f
Summary:        Plain Text to PostScript converter
8ae51f
Group:          Applications/Publishing
8ae51f
Requires:       %{name}-libs = %{version}-%{release}
8ae51f
%description
8ae51f
paps is a PostScript converter from plain text file using Pango.
8ae51f
8ae51f
%package libs
8ae51f
Summary:        Libraries for paps
8ae51f
Group:          Development/Libraries
8ae51f
%description libs
8ae51f
paps is a PostScript converter from plain text file using Pango.
8ae51f
8ae51f
This package contains the library for paps.
8ae51f
8ae51f
%package devel
8ae51f
Summary:        Development files for paps
8ae51f
Group:          Development/Libraries
8ae51f
Requires:       %{name}-libs = %{version}-%{release}
8ae51f
%description devel
8ae51f
paps is a PostScript converter from plain text file using Pango.
8ae51f
8ae51f
This package contains the development files that is necessary to develop
8ae51f
applications using paps API.
8ae51f
8ae51f
%prep
8ae51f
%setup -q
8ae51f
%patch0 -p1 -b .shared
8ae51f
%patch1 -p1 -b .wordwrap
8ae51f
%patch2 -p1 -b .langinfo
8ae51f
%patch3 -p1 -b .lcnumeric
8ae51f
%patch4 -p1 -b .exitcode
8ae51f
%patch5 -p1 -b .manpage
8ae51f
%patch50 -p1 -b .cups
8ae51f
%patch51 -p1 -b .cpilpi
8ae51f
%patch52 -p1 -b .dsc
8ae51f
%patch53 -p1 -b .autoconf262
8ae51f
%patch54 -p1 -b .fixcpi
8ae51f
%patch55 -p1 -b .loop
8ae51f
%patch56 -p1 -b .tab
8ae51f
%patch57 -p1 -b .weak-symbol
8ae51f
%patch58 -p1 -b .fsf
8ae51f
libtoolize -f -c
8ae51f
autoreconf -f -i
8ae51f
8ae51f
8ae51f
%build
8ae51f
%configure --disable-static
8ae51f
make %{?_smp_mflags}
8ae51f
8ae51f
8ae51f
%install
8ae51f
make install DESTDIR=$RPM_BUILD_ROOT INSTALL="/usr/bin/install -p"
8ae51f
8ae51f
# remove unnecessary files
8ae51f
rm $RPM_BUILD_ROOT%{_libdir}/libpaps.la
8ae51f
8ae51f
# make a symlink for CUPS filter
8ae51f
install -d $RPM_BUILD_ROOT%{_cups_serverbin}/filter # Not libdir
8ae51f
ln -s %{_bindir}/paps $RPM_BUILD_ROOT%{_cups_serverbin}/filter/texttopaps
8ae51f
8ae51f
install -d $RPM_BUILD_ROOT%{_sysconfdir}/cups
8ae51f
install -p -m0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/cups
8ae51f
8ae51f
8ae51f
%post libs -p /sbin/ldconfig
8ae51f
%postun libs -p /sbin/ldconfig
8ae51f
8ae51f
%files
8ae51f
%doc AUTHORS COPYING.LIB README TODO
8ae51f
%{_bindir}/paps
8ae51f
%{_mandir}/man1/paps.1*
8ae51f
%{_cups_serverbin}/filter/texttopaps
8ae51f
%dir %attr (0755, root, lp) %{_sysconfdir}/cups
8ae51f
%{_sysconfdir}/cups/paps.convs
8ae51f
8ae51f
%files libs
8ae51f
%doc COPYING.LIB
8ae51f
%{_libdir}/libpaps.so.*
8ae51f
8ae51f
%files devel
8ae51f
%doc COPYING.LIB
8ae51f
%{_includedir}/libpaps.h
8ae51f
%{_libdir}/libpaps.so
8ae51f
8ae51f
%changelog
731909
* Fri Jan 24 2014 Daniel Mach <dmach@redhat.com> - 0.6.8-28
731909
- Mass rebuild 2014-01-24
731909
731909
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 0.6.8-27
731909
- Mass rebuild 2013-12-27
731909
8ae51f
* Wed Jul 31 2013 Akira TAGOH <tagoh@redhat.com> - 0.6.8-26
8ae51f
- Fix the width calculation with CPI enabled. (#990228)
8ae51f
8ae51f
* Thu Apr 18 2013 Akira TAGOH <tagoh@redhat.com> - 0.6.8-25
8ae51f
- Rebuilt for aarch64 support. (#926309)
8ae51f
8ae51f
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-24
8ae51f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
8ae51f
8ae51f
* Fri Nov 23 2012 Akira TAGOH <tagoh@redhat.com> - 0.6.8-23
8ae51f
- the spec file cleanup
8ae51f
- Fix the undefined symbol issue in libpaps.so.0
8ae51f
- Correct FSF address in the COPYING.LIB
8ae51f
8ae51f
* Mon Sep 24 2012 Akira TAGOH <tagoh@redhat.com> - 0.6.8-22
8ae51f
- Ensure the latest version of paps-libs are installed.
8ae51f
8ae51f
* Fri Sep 21 2012 Akira TAGOH <tagoh@redhat.com> - 0.6.8-21
8ae51f
- Fix wrong width for whitespaces when enabling CPI feature. (#857592)
8ae51f
8ae51f
* Thu Sep  6 2012 Akira TAGOH <tagoh@redhat.com> - 0.6.8-20
8ae51f
- Add a missing description of --encoding in manpage. (#854897)
8ae51f
8ae51f
* Fri Jul 20 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-19
8ae51f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
8ae51f
8ae51f
* Wed Jan 11 2012 Akira TAGOH <tagoh@redhat.com> - 0.6.8-18
8ae51f
- Use %%{_cups_serverbin} instead of the hardcoded path. (#772240)
8ae51f
8ae51f
* Mon Dec  5 2011 Akira TAGOH <tagoh@redhat.com> - 0.6.8-17
8ae51f
- Add ldconfig in %%post/%%postun for paps-libs (#759880)
8ae51f
8ae51f
* Fri Jun 24 2011 Akira TAGOH <tagoh@redhat.com> - 0.6.8-16
8ae51f
- Fix FTBFS issue. (#716211)
8ae51f
8ae51f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-15
8ae51f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
8ae51f
8ae51f
* Tue Jul 27 2010 Akira TAGOH <tagoh@redhat.com> - 0.6.8-14
8ae51f
- Fix the infinite loop in splitting paragraphs (#618483)
8ae51f
8ae51f
* Fri Mar 12 2010 Akira TAGOH <tagoh@redhat.com> - 0.6.8-13
8ae51f
- Fix the directory's group ownership. (#572733)
8ae51f
8ae51f
* Tue Dec  8 2009 Akira TAGOH <tagoh@redhat.com> - 0.6.8-12
8ae51f
- Add paps.convs to behaves the cups filter without the hardcoded thing
8ae51f
  in cups. (#545031)
8ae51f
8ae51f
* Wed Oct 14 2009 Akira TAGOH <tagoh@redhat.com> - 0.6.8-11
8ae51f
- Fix code that deal with CPI parameter to be accurate. (#524883)
8ae51f
8ae51f
* Sat Jul 25 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-10
8ae51f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
8ae51f
8ae51f
* Thu Feb 26 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.6.8-9
8ae51f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
8ae51f
8ae51f
* Mon Nov 17 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-8
8ae51f
- Courier font to be a default font for texttopaps. (#469325)
8ae51f
8ae51f
* Mon Sep  1 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-7
8ae51f
- paps-langinfo.patch: Updated.
8ae51f
- paps-exitcode.patch: Updated.
8ae51f
8ae51f
* Fri May 16 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-6
8ae51f
- paps-cups.patch: Fix printing with -o landscape in CUPS. (#222137)
8ae51f
- paps-autoconf262.patch: Fix an error on autoreconf.
8ae51f
8ae51f
* Tue Feb 12 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-5
8ae51f
- Rebuild for gcc-4.3.
8ae51f
8ae51f
* Wed Jan 23 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-4
8ae51f
- Fix an exception on ghostscript. (#429275)
8ae51f
8ae51f
* Tue Jan 15 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-3
8ae51f
- Put %%%%Pages: after %%%%Trailer. (#424951)
8ae51f
8ae51f
* Thu Jan 10 2008 Akira TAGOH <tagoh@redhat.com> - 0.6.8-2
8ae51f
- paps-0.6.8-dsc-compliant.patch: Patch out to be DSC compliant. (#424951)
8ae51f
8ae51f
* Fri Nov 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.8-1
8ae51f
- New upstream release.
8ae51f
  - Remove patches merged and unnecessary anymore:
8ae51f
    - paps-makefile.patch
8ae51f
    - paps-formfeed.patch
8ae51f
    - paps-0.6.6-encoding.patch
8ae51f
    - paps-typo-font-scale.patch
8ae51f
    - paps-0.6.6-segfault.patch
8ae51f
    - paps-0.6.6-font-option.patch
8ae51f
    - paps-0.6.6-lcctype.patch
8ae51f
- paps-0.6.8-shared.patch: Enable building shared library.
8ae51f
- paps-0.6.8-wordwrap.patch: Update a bit to get it working without an wordwrap
8ae51f
  mode.
8ae51f
- Add paps-libs and paps-devel package.
8ae51f
- paps-cups.patch: Update.
8ae51f
- paps-cpilpi.patch: Update.
8ae51f
- Fix the wrong rendering with CPI option. (#237202)
8ae51f
- Fix the unnecessary rotation with the landscape option when paps is running
8ae51f
  as CUPS filter. (#222137)
8ae51f
8ae51f
* Thu Aug 23 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-21
8ae51f
- Rebuild
8ae51f
8ae51f
* Fri Aug 10 2007 Akira TAGOH <tagoh@redhat.com>
8ae51f
- Update License tag.
8ae51f
8ae51f
* Wed May 30 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-20
8ae51f
- Fix to not do wordwrap when 'wrap=false' is given. (#240588)
8ae51f
8ae51f
* Tue Mar 27 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-19
8ae51f
- Fix PostScript breakage following the non-monetary numeric format from
8ae51f
  current locale. (#231916)
8ae51f
8ae51f
* Thu Mar  7 2007 Akira TAGOH <tagoh@redhat.com> - 0.6.6-18
8ae51f
- default to lpi=6 and cpi=10 if paps is bringing up as cups filter. (#223862)
8ae51f
8ae51f
* Tue Jan 23 2007 Akira TAGOH <tagoh@redhat.com>
8ae51f
- Better the encoding guess by looking at current locale. (#212154)
8ae51f
8ae51f
* Mon Dec  4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-17
8ae51f
- Fix a segfault on non-printable character. (#216296)
8ae51f
8ae51f
* Sat Sep 30 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-16
8ae51f
- paps-0.6.6-exitcode.patch: exit immediately with proper exit code
8ae51f
  when unrecoverable error occurs. (#208592)
8ae51f
8ae51f
* Fri Sep 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-15
8ae51f
- Avoid using iconv when not needed (bug #206259).
8ae51f
8ae51f
* Thu Sep 14 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-14
8ae51f
- paps-cups.patch: try to parse input even if any invalid character appears.
8ae51f
  (#206259)
8ae51f
8ae51f
* Thu Aug 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-13
8ae51f
- paps-formfeed.patch: fixed to not insert an extra line in next page.
8ae51f
  (#202731)
8ae51f
8ae51f
* Thu Aug 17 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-12
8ae51f
- Map CUPS charset names to real ones (bug #197577).
8ae51f
8ae51f
* Mon Jul 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-11
8ae51f
- add an owner info to PS.
8ae51f
8ae51f
* Wed Jul 12 2006 Jesse Keating <jkeating@redhat.com> - 0.6.6-10.2
8ae51f
- rebuild
8ae51f
8ae51f
* Tue Jul  4 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-10
8ae51f
- paps-0.6.6-cpilpi.patch: add --cpi and --lpi option to support the characters
8ae51f
  per inch and the lines per inch.
8ae51f
- paps-cups.patch: add cpi and lpi support.
8ae51f
8ae51f
* Thu Jun 29 2006 Tim Waugh <twaugh@redhat.com> - 0.6.6-9
8ae51f
- Fixed font-option patch.
8ae51f
- Adjusted CUPS patch: CUPS invokes the filter with the destination
8ae51f
  printer name in argv[0], not the binary name.
8ae51f
- CUPS filter lives in CUPS_SERVERBIN, which is /usr/lib/cups on all
8ae51f
  architectures -- not %%{_libdir}/cups.
8ae51f
8ae51f
* Thu Jun 29 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-8
8ae51f
- use dist tag.
8ae51f
- paps-cups.patch: applied to work paps as CUPS filter.
8ae51f
- paps-0.6.6-encoding.patch: null-terminates the output.
8ae51f
8ae51f
* Tue Jun 27 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-7
8ae51f
- rebuilt to import into Core.
8ae51f
8ae51f
* Wed Jun 21 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-6
8ae51f
- paps-0.6.6-wordwrap.patch: applied to do a wordwrap.
8ae51f
8ae51f
* Tue Jun 20 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-5
8ae51f
- paps-typo-font-scale.patch: backported from CVS.
8ae51f
- paps-0.6.6-font-option.patch: integrated --font-family and --font-scale
8ae51f
  options to --font.
8ae51f
- paps-0.6.6-lcctype.patch: follow LC_CTYPE to determine the default language.
8ae51f
8ae51f
* Fri Jun 16 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-4
8ae51f
- added libtool and doxygen to BuildReq.
8ae51f
- removed NEWS file which is empty.
8ae51f
8ae51f
* Mon Jun 12 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-3
8ae51f
- use make install DESTDIR=... instead of %%makeinstall
8ae51f
- add automake and autoconf to BuildReq.
8ae51f
8ae51f
* Thu May 25 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-2
8ae51f
- paps-0.6.6-encoding.patch: support --encoding option to be able to convert
8ae51f
  the input file to UTF-8.
8ae51f
- paps-0.6.6-segfault.patch: fixed a possible segfault issue when reading is
8ae51f
  failed.
8ae51f
8ae51f
* Fri May 19 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.6-1
8ae51f
- New upstream release.
8ae51f
8ae51f
* Mon Apr 17 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.5-1
8ae51f
- New upstream release.
8ae51f
  - paps-0.6.3-fix-pagesize.patch: removed. it has been merged in upstream.
8ae51f
  - paps-0.6.3-goption.patch: removed. it has been merged in upstream.
8ae51f
  - paps-0.6.3-header.patch: removed. it has been merged in upstream.
8ae51f
- paps-makefile.patch: rework to be applied.
8ae51f
8ae51f
* Fri Mar 31 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-4
8ae51f
- paps-0.6.3-formfeed.patch: applied to deal with the formfeed mark properly.
8ae51f
- paps-0.6.3-goption.patch: rewritten option parser using GOption. and segfault
8ae51f
  gone as well. (#187205)
8ae51f
- paps-0.6.3-header.patch: applied to support the output of the page header.
8ae51f
8ae51f
* Fri Mar 24 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-3
8ae51f
- paps-0.6.3-fix-pagesize.patch: fixed displaying the beginning of line at out of page. (#176207)
8ae51f
8ae51f
* Thu Mar  2 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-2
8ae51f
- rebuilt.
8ae51f
8ae51f
* Wed Jan 11 2006 Akira TAGOH <tagoh@redhat.com> - 0.6.3-1
8ae51f
- New upstream release.
8ae51f
- paps-0.6.2-fix-bufferoverflow.patch: removed.
8ae51f
8ae51f
* Wed Dec 21 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.2-1
8ae51f
- New upstream release.
8ae51f
  - the bitmap font is now ignored. (#176206)
8ae51f
- paps-0.6.2-fix-bufferoverflow.patch: applied to fix the buffer overflow.
8ae51f
8ae51f
* Tue Dec 13 2005 Akira TAGOH <tagoh@redhat.com> - 0.6.1-1
8ae51f
- New upstream release.
8ae51f
- paps-0.6.1-makefile.patch: applied to install docs on the proper dir.
8ae51f
8ae51f
* Fri Nov  4 2005 Akira TAGOH <tagoh@redhat.com> - 0.5-1
8ae51f
- New upstream release.
8ae51f
8ae51f
* Tue Oct 18 2005 Akira TAGOH <tagoh@redhat.com> - 0.3-1
8ae51f
- Initial package.
8ae51f