123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204 |
- Summary: A text formatting system based on SGML
- Summary(ja): SGML に基づいたテキスト整形システム
- Name: linuxdoc-tools
- Version: 0.9.21
- Release: 2%{?_dist_release}
- License: distributable
- Group: Applications/Text
- Source0: http://people.debian.org/~sano/linuxdoc-tools/archives/linuxdoc-tools_%{version}.tar.gz
- Patch0: linuxdoc-tools-0.9.13-letter.patch.bz2
- Patch1: linuxdoc-tools-0.9.20-strip.patch.bz2
- # Vine Patches
- Patch100: linuxdoc-tools-0.9.21-platex.patch
- Patch101: linuxdoc-tools-0.9.21-replace_dvips.patch
- Patch102: linuxdoc-tools-0.9.21-lib64.patch
- # use ISO entities in 'sgml-common' package
- Patch103: linuxdoc-tools-0.9.21-catalog_file.patch
- Requires(post): sgml-common >= 0.5
- Requires(postun): sgml-common >= 0.5
- Requires: openjade, sgml-common >= 0.5
- Requires: docbook-utils, texlive, gawk, groff
- BuildRequires: openjade, flex, sgml-common >= 0.5
- Obsoletes: sgml-tools
- Provides: sgml-tools
- #Conflicts: docbook-dtds
- Buildroot: %{_tmppath}/%{name}-%{version}-root
- Vendor: Project Vine
- Distribution: Vine Linux
- %description
- linuxdoc-tools is a SGML-based text formatter which allows you to
- produce a variety of output formats. You can create PostScript and
- dvi (with LaTeX), plain text (with groff), HTML, and texinfo files
- from a single SGML source file.
- %description -l ja
- linuxdoc-tools は SGML-Tools のバグフィックス版です。
- LinuxDoc DTD をサポートしており、SGML ソースファイルから PostScript,
- (LaTeX による) dvi、(groff による)プレーンテキスト、HTML、texinfo
- ファイルを生成できます。
- DocBook DTD など、LinuxDoc DTD 以外のDTDを処理する場合には
- このパッケージのかわりに、sgml-tools-2.x と docbook が必要になります。
- %prep
- %setup -q
- %patch0 -p1
- %patch1 -p1 -b .strip
- %patch100 -p1 -b .platex
- %patch101 -p1 -b .dvips
- %patch102 -p1 -b .lib64
- #%patch103 -p1 -b .catalog
- #perl -i.bak -p -e "s/^(OPTIMIZE=).*$/\$1${RPM_OPT_FLAGS}/" Makefile.in sgmls-1.1/Makefile
- %build
- %configure --with-installed-nsgmls --with-installed-iso-entities
- # Packaging brain-damage
- ( cd entity-map
- autoconf
- %configure
- )
- make OPTIMIZE="$RPM_OPT_FLAGS"
- perl -pi -e 's,\$main::prefix/share/sgml/iso-entities-8879.1986/iso-entities.cat,/usr/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
- lib/LinuxDocTools.pm
- %install
- [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
- eval `perl '-V:installvendorlib'`
- mkdir -p $RPM_BUILD_ROOT/$installvendorlib
- %makeinstall perl5libdir=$RPM_BUILD_ROOT/$installvendorlib
- perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
- $RPM_BUILD_ROOT%{_datadir}/%{name}/LinuxDocTools.pm
- rm -rf guide
- mv $RPM_BUILD_ROOT%{_docdir}/%{name} guide
- ## for sgml2latex [JF:09828]
- mkdir -p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc/
- (cd $RPM_BUILD_ROOT%{_datadir}/%{name}
- ## remove url.sty (url.sty is provided from tetex)...
- rm -f url.sty
- for i in *.sty ; do
- ln -s %{_datadir}/%{name}/$i \
- $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc/$i
- done)
- ## remove backup files...
- rm -f $RPM_BUILD_ROOT%{_libdir}/linuxdoc-tools/dist/fmt_latex2e.pl.*
- rm -f guide/Makedoc.sh.dvips
- rm -f $RPM_BUILD_ROOT%{_libdir}/linuxdoc-tools/LinuxDocTools.pm.catalog_file
- cp entity-map/COPYING COPYING.entity-map
- %clean
- [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
- %post
- # Update the centralized catalog corresponding to this version of the DTD
- %{_bindir}/install-catalog --add %{_sysconfdir}/sgml/linuxdoc.cat %{_datadir}/linuxdoc-tools/linuxdoc-tools.catalog > /dev/null
- %postun
- if [ "$1" = 0 ]; then
- # Update the centralized catalog corresponding to this version of the DTD
- %{_bindir}/install-catalog --remove %{_sysconfdir}/sgml/linuxdoc.cat %{_datadir}/linuxdoc-tools/linuxdoc-tools.catalog > /dev/null
- fi
- %files
- %defattr(-,root,root)
- %doc COPYING* ChangeLog INSTALL README VERSION guide/ debian/
- %{_bindir}/*
- %{_datadir}/entity-map
- %{_datadir}/linuxdoc-tools
- %{_datadir}/texmf/tex/latex/misc/*
- %{_mandir}/man1/*
- %dir %{_prefix}/lib*/perl5/vendor_perl/*/Text
- %{_prefix}/lib*/perl5/vendor_perl/*/Text/EntityMap.pm
- %changelog
- * Sun Aug 08 2010 Munehiro Yamamoto <munepi@Vvinelinux.org> 0.9.21-2
- - TeX Live 2009
- * Mon Jun 9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-1
- - applied new versioning policy
- - built with perl-5.10.0-2, installed perl modules to vendor_perl dir
- - spec in UTF-8
- * Sun Sep 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.9.21-0vl5
- - added lib64.patch to have lib64 in perl path on 64bit machine
- * Tue Apr 13 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-0vl4
- - added patch1, 2 from mandrake package
- (prevent patch0--2 was moved 100--102)
- - added Requires: tetex, gawk, groff
- - added BuildRequires: docbook-utils
- - fixed spec file
- * Mon Apr 12 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.9.21-0vl3
- - remove Conflicts docbook-dtds
- * Tue Jun 3 2003 Jun Nishii <jun@vinelinux.org> 0.9.21-0vl2
- - added Conflicts docbook-dtds
- * Sun May 4 2003 IWAI Masaharu <iwai@alib.jp> 0.9.21-0vl1
- - upsteam release
- - use rpmmacros
- - update patches
- - platex.patch (Patch0)
- - replace_dvips.patch (Patch1)
- - catalog_file.patch (Patch2)
- * Mon Jan 7 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.9.1-0vl6
- - sgml-common's super catalog support
- - added PreReq: sgml-common >= 0.5
- * Wed Jul 18 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
- - 0.9.1-0vl5: remove url.sty which is provided from tetex
- * Mon Apr 23 2001 <sagami@vinelinux.org>
- - 0.9.1-0vl4: move manpages to %%{_mandir}
- * Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
- - 0.9.1-0vl3
- - fixed $ENV{SGML_CATALOG_FILES}
- - Maybe it's a bug... but it won't work without iso-entities-8879.1986
- * Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
- - 0.9.1-0vl2
- - fixed some in description
- * Sun Jan 21 2001 Jun Nishii <jun@vinelinux.org>
- - 0.9.1-0vl1
- - updated to 0.9.1
- * Tue Nov 21 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
- - 0.7.4-0vl3
- - now you can choose jlatex for sgml2latex
- - set '-l ja' as default
- * Sun Nov 19 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
- - 0.7.4-0vl2
- - setup quietly
- - create symlinks for sgml2latex
- - use %{_prefix} macro
- - use platex as default in sgml2latex
- - use ${RPM_OPT_FLAGS}
- * Tue Nov 14 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
- - 0.7.4-0vl1
- - updated to 0.7.4
- - Modified URL for Source
- - remove RPM_BUILD_ROOT first in %install
- - renamed directory which contains users' guide
- - remove RPM_BUILD_ROOT in %clean
- * Wed Jul 12 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
- - 0.6.1-0vl2
- - Obsoletes: sgml_tools -> sgml-tools :-)
- - added Provides: sgml-tools (for compatibility with indexhtml)
- * Thu Jun 29 2000 Jun Nishii <jun@vinelinux.org>
- - 0.6.1-0vl1
- - first build
|