314 lines
10 KiB
RPMSpec
314 lines
10 KiB
RPMSpec
#
|
|
# spec file for package a2ps (Version 4.13)
|
|
#
|
|
# Copyright (c) 2009 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
|
|
Name: a2ps
|
|
BuildRequires: autoconf automake emacs-nox flex ghostscript-fonts-std gv psutils texlive-latex xorg-x11-devel
|
|
Url: http://www.gnu.org/software/a2ps/a2ps.html
|
|
License: GPL v2 or later
|
|
Group: Productivity/Publishing/PS
|
|
Provides: a2ps-bin
|
|
Requires: /bin/sed /usr/bin/iconv /usr/bin/file /usr/bin/wdiff /usr/bin/w3m ghostscript-fonts-std
|
|
AutoReqProv: on
|
|
PreReq: %{install_info_prereq}
|
|
Version: 4.13
|
|
Release: 1327
|
|
Summary: Converts ASCII Text into PostScript
|
|
Source: a2ps-4.13b.tar.bz2
|
|
Source1: a2ps-ko.po
|
|
Patch: a2ps-4.13.dif
|
|
Patch1: a2ps-4.13-security.patch
|
|
Patch2: a2ps-4.13-ogonkify.patch
|
|
Patch3: a2ps-4.13-tempfile.patch
|
|
Patch4: a2ps-4.13-space.patch
|
|
Patch5: a2ps-4.13-nb.patch
|
|
Patch6: a2ps-4.13-include.patch
|
|
Patch7: a2ps-4.13-acroread.patch
|
|
Patch8: a2ps-4.13-base.patch
|
|
Patch9: a2ps-4.13-utf8.patch
|
|
Patch10: a2ps-4.13-types.patch
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
%global _sysconfdir /etc
|
|
|
|
%description
|
|
a2ps converts ASCII text into PostScript. This feature is used by
|
|
apsfilter, for example, to pretty-print ASCII text.
|
|
|
|
Warning: a2ps is not able to convert complex unicode (UTF-8) text to
|
|
PostScript. Only language text which can be converted from UTF-8 to
|
|
latin encodings are supported.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Miguel Santana <M.Santana@frgu.bull.fr>
|
|
|
|
%package -n a2ps-devel
|
|
License: GPL v2 or later
|
|
Summary: Library and header file for the interface of a2ps
|
|
Group: Productivity/Publishing/PS
|
|
AutoReqProv: on
|
|
Requires: %{name} = %{version} glibc-devel
|
|
|
|
%description -n a2ps-devel
|
|
a2ps converts ASCII text into PostScript. This feature is used by
|
|
apsfilter, for example, to pretty-print ASCII text.
|
|
|
|
Warning: a2ps is not able to convert complex unicode (UTF-8) text to
|
|
PostScript. Only language text which can be converted from UTF-8 to
|
|
latin encodings are supported.
|
|
|
|
|
|
|
|
Authors:
|
|
--------
|
|
Miguel Santana <M.Santana@frgu.bull.fr>
|
|
|
|
%prep
|
|
%setup -q -n a2ps-4.13
|
|
touch -r configure.in .ref
|
|
%patch -P 1 -p 0 -b .security
|
|
%patch -P 2 -p 0 -b .ogonkify
|
|
%patch -P 3 -p 1 -b .tempfile
|
|
%patch -P 4 -p 0 -b .space
|
|
%patch -P 5 -p 0 -b .nb
|
|
%patch -P 6 -p 1 -b .incld
|
|
%ifarch %ix86 x86_64
|
|
%patch -P 7 -p 0 -b .acroread
|
|
%endif
|
|
%patch -P 8 -p 0 -b .base
|
|
%patch -P 9 -p 0 -b .utf8
|
|
%patch -P 10 -p 0 -b .types
|
|
%patch
|
|
cp -f %SOURCE1 po/ko.po
|
|
rename no nb po/no.*
|
|
|
|
%build
|
|
%{?suse_update_config:%{suse_update_config -f auxdir}}
|
|
export CFLAGS="$RPM_OPT_FLAGS -D_GNU_SOURCE -funroll-loops -Wall -pipe -fstack-protector"
|
|
export LPR=lpr
|
|
export CC=gcc
|
|
export LEX="flex -Cfe"
|
|
touch -r .ref configure.in
|
|
%configure --enable-shared --disable-static --with-pic --with-medium=LC_PAPER \
|
|
--with-encoding=LC_CTYPE
|
|
con=""
|
|
for m4 in contrib/*.m4; do
|
|
in=${m4%.*}.in
|
|
rm -f ${in} ${m4%.*}
|
|
con="$con ${in##*/}"
|
|
done
|
|
%{__make} %{?jobs:-j%jobs} -C contrib/ ${con}
|
|
sh ./config.status
|
|
%{__make} %{?jobs:-j%jobs} PSFONT_PATH=%{_datadir}/ghostscript/fonts
|
|
pushd doc
|
|
texi2html a2ps.texi
|
|
popd
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} PSFONT_PATH=%{_datadir}/ghostscript/fonts
|
|
rm -r %{buildroot}/%{_infodir}/regex*
|
|
rm -r %{buildroot}/%{_infodir}/dir
|
|
%{find_lang} %{name}
|
|
rm -f %{buildroot}%{_libdir}/liba2ps.la
|
|
|
|
%clean
|
|
%{?buildroot: %{__rm} -rf %{buildroot}}
|
|
|
|
%post
|
|
/sbin/ldconfig
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
%install_info --info-dir=%{_infodir} %{_infodir}/ogonkify.info.gz
|
|
|
|
%postun
|
|
/sbin/ldconfig
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz
|
|
%install_info_delete --info-dir=%{_infodir} %{_infodir}/ogonkify.info.gz
|
|
|
|
%files -f %{name}.lang
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS COPYING ABOUT-NLS FAQ ChangeLog NEWS THANKS README doc/a2ps.html
|
|
%config /etc/a2ps-site.cfg
|
|
%config /etc/a2ps.cfg
|
|
%{_bindir}/a2ps
|
|
%{_bindir}/card
|
|
%{_bindir}/composeglyphs
|
|
%{_bindir}/fixnt
|
|
%{_bindir}/fixps
|
|
%{_bindir}/ogonkify
|
|
%{_bindir}/pdiff
|
|
%{_bindir}/psmandup
|
|
%{_bindir}/psset
|
|
%{_bindir}/texi2dvi4a2ps
|
|
%doc %{_infodir}/*.gz
|
|
%doc %{_mandir}/man1/*.1.gz
|
|
%{_datadir}/a2ps
|
|
%{_datadir}/emacs/site-lisp/*.el
|
|
%{_datadir}/emacs/site-lisp/*.elc
|
|
%{_datadir}/ogonkify
|
|
%{_libdir}/liba2ps.so.*
|
|
|
|
%files -n a2ps-devel
|
|
%defattr(-,root,root)
|
|
%{_includedir}/liba2ps.h
|
|
%{_libdir}/liba2ps.so
|
|
|
|
%changelog
|
|
* Fri Jan 16 2009 crrodriguez@suse.de
|
|
- use --enable-shared and disable static libraries
|
|
* Mon Oct 27 2008 werner@suse.de
|
|
- Make liba2ps.h includable without any further includes also split
|
|
off a devel package as suggested by Thorsten (bnc#438889)
|
|
* Tue Jul 15 2008 werner@suse.de
|
|
- Better workaround for UTF-8 files
|
|
* Tue Mar 04 2008 werner@suse.de
|
|
- Work around reencoded fonts from ogonkify in wdiff screen mode
|
|
* Fri Apr 20 2007 aj@suse.de
|
|
- Use texlive for building.
|
|
* Fri Mar 30 2007 ssommer@suse.de
|
|
- add flex to BuildRequires
|
|
* Mon Feb 19 2007 werner@suse.de
|
|
- Removed the test file Convert.java and its resulting ps files
|
|
from source tar ball due license problems.
|
|
* Thu Feb 08 2007 ro@suse.de
|
|
- added defattr
|
|
* Fri May 19 2006 werner@suse.de
|
|
- Fix reencode_font macro in base.ps (bug #176360)
|
|
* Thu Apr 27 2006 cthiel@suse.de
|
|
- removed acroread from BuildRequires
|
|
- added patch to fake acoread on ix86 and x86_64
|
|
* Thu Feb 23 2006 werner@suse.de
|
|
- Use w3m to get ascii from html and the use a2ps its self to
|
|
get PostScript out of ASCII. (bug #152470)
|
|
* Wed Jan 25 2006 mls@suse.de
|
|
- converted neededforbuild to BuildRequires
|
|
* Sat Jan 14 2006 schwab@suse.de
|
|
- Don't strip binaries.
|
|
* Thu Jan 12 2006 werner@suse.de
|
|
- Use the gcc stack protector
|
|
* Fri Dec 02 2005 werner@suse.de
|
|
- Fix handling of long options without arguments in a2ps script
|
|
* Tue Sep 20 2005 yxu@suse.de
|
|
- Add prototypes for functions
|
|
* Fri Jun 17 2005 werner@suse.de
|
|
- The pdiff requires wdiff (bug #91335)
|
|
* Fri May 13 2005 werner@suse.de
|
|
- Allow spaces in file names
|
|
* Fri May 13 2005 werner@suse.de
|
|
- Add a wrapper script for converting UTF-8 text _partly_ into the
|
|
natural latin encoding of the given language enviroment (#43348)
|
|
* Sat Apr 02 2005 coolo@suse.de
|
|
- remove conflicting prototype
|
|
* Mon Oct 25 2004 ro@suse.de
|
|
- locale rename: no -> nb
|
|
* Wed Aug 25 2004 werner@suse.de
|
|
- Escapes file names so that the shell groks it in single quotes
|
|
* Thu Mar 18 2004 werner@suse.de
|
|
- More temporary file security issues (bug #36368)
|
|
* Wed Aug 06 2003 werner@suse.de
|
|
- Partly workaround for ASCII and UTF-8 (mapp them to ISO 8859-15,
|
|
bug #28348)
|
|
* Mon Jul 28 2003 werner@suse.de
|
|
- Fix keyword Lette(r) (bug #27411)
|
|
* Wed Jun 11 2003 kukuk@suse.de
|
|
- Use %%find_lang macro
|
|
- Fix filelist
|
|
- Fix neededforbuild for emacs
|
|
* Thu Apr 24 2003 ro@suse.de
|
|
- fix install_info --delete call and move from preun to postun
|
|
* Tue Feb 11 2003 kukuk@suse.de
|
|
- Add install-info macros [Bug #23390]
|
|
* Mon Nov 11 2002 ro@suse.de
|
|
- changed neededforbuild <xshared> to <x-devel-packages>
|
|
* Wed Sep 18 2002 ro@suse.de
|
|
- removed bogus self-provides
|
|
* Sun Jul 28 2002 kukuk@suse.de
|
|
- remove bzip from neededforbuild
|
|
* Thu Jul 04 2002 werner@suse.de
|
|
- Add README's and a2ps.html to package doc dir (bug # 16229)
|
|
* Thu May 23 2002 ro@suse.de
|
|
- use libdir
|
|
* Mon Feb 25 2002 pblahos@suse.cz
|
|
- filtering mozilla output in iso-8859-2 removed, mozilla does it
|
|
correctly now, only stripping Title.
|
|
* Wed Jan 23 2002 okir@suse.de
|
|
- Fixed tempfile problem in fixnt
|
|
* Fri Dec 07 2001 werner@suse.de
|
|
- Enable automagic LC_PAPER and LC_CTYPE detection within
|
|
a2ps-site.cfg
|
|
* Fri Aug 31 2001 pblahos@suse.cz
|
|
- implemented filtering of mozilla output in iso-8859-2
|
|
* Fri Jul 20 2001 kukuk@suse.de
|
|
- changed neededforbuild <gs_lib> to <ghostscript-library>
|
|
* Mon May 07 2001 mfabian@suse.de
|
|
- bzip2 sources
|
|
* Thu Apr 26 2001 werner@suse.de
|
|
- We've to use dots within floats (#7284)
|
|
- Fix manual page (#7192)
|
|
* Tue Apr 24 2001 werner@suse.de
|
|
- Add Euro symbol to afm of ogonkify fonts
|
|
- Implement code to be able to use LC_PAPER and LC_CTYPE for
|
|
paper size and default encoding.
|
|
* Thu Apr 19 2001 werner@suse.de
|
|
- Use newest ogonkify to get eurifyFont working
|
|
- Include dummy metric for Euro sign to get it work with
|
|
ghostscript and real PostScript printers (ogonkify -e L9 -E)
|
|
* Wed Mar 14 2001 ro@suse.de
|
|
- use emacs-x11 for now
|
|
* Tue Mar 13 2001 ro@suse.de
|
|
- added emacs-nox to neededforbuild
|
|
* Fri Jan 26 2001 violiet@suse.de
|
|
- remove Korean filter file = a2ps-h
|
|
* Tue Jan 23 2001 violiet@suse.de
|
|
- added Korean filter file = a2ps-h
|
|
- improvement Korean message file.
|
|
* Mon Jan 15 2001 werner@suse.de
|
|
- Fix the temporary file patch.
|
|
* Wed Jan 10 2001 werner@suse.de
|
|
- Add temporary file patch
|
|
* Fri Nov 17 2000 werner@suse.de
|
|
- Update to version 4.13(b)
|
|
- Include some package to use automatic configuration for
|
|
- Set PSFONT_PATH to /usr/share/ghostscript/fonts
|
|
* Fri Nov 17 2000 ro@suse.de
|
|
- ge_exec -> emacs
|
|
* Thu Jul 06 2000 ro@suse.de
|
|
- merged patches
|
|
* Thu Jul 06 2000 werner@suse.de
|
|
- Add `,' to atan2 in for77kwds.ssh to distinguish atan2 from cabs.
|
|
* Fri Apr 07 2000 bk@suse.de
|
|
- added suse update config macro
|
|
* Fri Feb 25 2000 kukuk@suse.de
|
|
- Fill out copyright and group tag
|
|
- Move /usr/{info,man} -> /usr/share/{info,man}
|
|
* Thu Jan 13 2000 werner@suse.de
|
|
- Fix a2ps path in a2ps.el
|
|
- Add all page names and their sizes known by ghostscript
|
|
* Thu Dec 16 1999 werner@suse.de
|
|
- Fix Bug (NULL pointer if --title="" is used)
|
|
- Remove Makefile.Linux
|
|
* Mon Sep 13 1999 bs@suse.de
|
|
- ran old prepare_spec on spec file to switch to new prepare_spec.
|
|
* Mon Jul 19 1999 florian@suse.de
|
|
- update to a2ps 4.12
|
|
* Wed Oct 29 1997 florian@suse.de
|
|
- add missing patch detectet by Werner Fink
|
|
Added the changes from Andreas Klemm for apsfilter into /usr/bin/a2ps.
|
|
aps could use standard /usr/bin/a2ps now.
|