Blame SPECS/paps.spec

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