source: projects/specs/branches/6/l/linuxdoc-tools/linuxdoc-tools-vl.spec @ 1529

Revision 1529, 6.6 KB checked in by munepi, 14 years ago (diff)

updated linuxdoc-tools: ready for TeX Live

Line 
1Summary: A text formatting system based on SGML
2Summary(ja): SGML に基づいたテキスト整形システム
3Name: linuxdoc-tools
4Version: 0.9.21
5Release: 2%{?_dist_release}
6License: distributable
7Group: Applications/Text
8Source0: http://people.debian.org/~sano/linuxdoc-tools/archives/linuxdoc-tools_%{version}.tar.gz
9Patch0: linuxdoc-tools-0.9.13-letter.patch.bz2
10Patch1: linuxdoc-tools-0.9.20-strip.patch.bz2
11
12# Vine Patches
13Patch100: linuxdoc-tools-0.9.21-platex.patch
14Patch101: linuxdoc-tools-0.9.21-replace_dvips.patch
15Patch102: linuxdoc-tools-0.9.21-lib64.patch
16# use ISO entities in 'sgml-common' package
17Patch103: linuxdoc-tools-0.9.21-catalog_file.patch
18
19Requires(post): sgml-common >= 0.5
20Requires(postun): sgml-common >= 0.5
21Requires: openjade, sgml-common >= 0.5
22Requires: docbook-utils, texlive, gawk, groff
23BuildRequires: openjade, flex, sgml-common >= 0.5
24Obsoletes: sgml-tools
25Provides: sgml-tools
26#Conflicts: docbook-dtds
27Buildroot: %{_tmppath}/%{name}-%{version}-root
28Vendor: Project Vine
29Distribution: Vine Linux
30
31%description
32linuxdoc-tools is a SGML-based text formatter which allows you to
33produce a variety of output formats.  You can create PostScript and
34dvi (with LaTeX), plain text (with groff), HTML, and texinfo files
35from a single SGML source file.
36
37%description -l ja
38linuxdoc-tools は SGML-Tools のバグフィックス版です。
39LinuxDoc DTD をサポートしており、SGML ソースファイルから PostScript,
40(LaTeX による) dvi、(groff による)プレーンテキスト、HTML、texinfo
41ファイルを生成できます。
42
43DocBook DTD など、LinuxDoc DTD 以外のDTDを処理する場合には
44このパッケージのかわりに、sgml-tools-2.x と docbook が必要になります。
45
46%prep
47%setup -q
48%patch0 -p1
49%patch1 -p1 -b .strip
50
51%patch100 -p1 -b .platex
52%patch101 -p1 -b .dvips
53%patch102 -p1 -b .lib64
54#%patch103 -p1 -b .catalog
55#perl -i.bak -p -e "s/^(OPTIMIZE=).*$/\$1${RPM_OPT_FLAGS}/" Makefile.in sgmls-1.1/Makefile
56
57%build
58%configure --with-installed-nsgmls --with-installed-iso-entities
59# Packaging brain-damage
60( cd entity-map
61  autoconf
62  %configure
63)
64make OPTIMIZE="$RPM_OPT_FLAGS"
65perl -pi -e 's,\$main::prefix/share/sgml/iso-entities-8879.1986/iso-entities.cat,/usr/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
66           lib/LinuxDocTools.pm
67
68%install
69[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
70
71eval `perl '-V:installvendorlib'`
72mkdir -p $RPM_BUILD_ROOT/$installvendorlib
73%makeinstall perl5libdir=$RPM_BUILD_ROOT/$installvendorlib
74perl -pi -e 's,/usr/share/sgml/iso-entities-8879.1986/iso-entities.cat,\$main::prefix/share/sgml/sgml-iso-entities-8879.1986/catalog,' \
75           $RPM_BUILD_ROOT%{_datadir}/%{name}/LinuxDocTools.pm
76
77rm -rf guide
78mv $RPM_BUILD_ROOT%{_docdir}/%{name} guide
79
80## for sgml2latex [JF:09828]
81mkdir -p $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc/
82(cd $RPM_BUILD_ROOT%{_datadir}/%{name}
83## remove url.sty (url.sty is provided from tetex)...
84rm -f url.sty
85for i in *.sty ; do
86    ln -s %{_datadir}/%{name}/$i \
87        $RPM_BUILD_ROOT%{_datadir}/texmf/tex/latex/misc/$i
88done)
89
90## remove backup files...
91rm -f $RPM_BUILD_ROOT%{_libdir}/linuxdoc-tools/dist/fmt_latex2e.pl.*
92rm -f guide/Makedoc.sh.dvips
93rm -f $RPM_BUILD_ROOT%{_libdir}/linuxdoc-tools/LinuxDocTools.pm.catalog_file
94cp entity-map/COPYING COPYING.entity-map
95
96%clean
97[ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && rm -rf $RPM_BUILD_ROOT
98
99%post
100# Update the centralized catalog corresponding to this version of the DTD
101%{_bindir}/install-catalog --add %{_sysconfdir}/sgml/linuxdoc.cat %{_datadir}/linuxdoc-tools/linuxdoc-tools.catalog > /dev/null
102
103%postun
104if [ "$1" = 0 ]; then
105# Update the centralized catalog corresponding to this version of the DTD
106        %{_bindir}/install-catalog --remove %{_sysconfdir}/sgml/linuxdoc.cat %{_datadir}/linuxdoc-tools/linuxdoc-tools.catalog > /dev/null
107fi
108
109%files
110%defattr(-,root,root)
111%doc COPYING* ChangeLog INSTALL README VERSION guide/ debian/
112%{_bindir}/*
113%{_datadir}/entity-map
114%{_datadir}/linuxdoc-tools
115%{_datadir}/texmf/tex/latex/misc/*
116%{_mandir}/man1/*
117%dir %{_prefix}/lib*/perl5/vendor_perl/*/Text
118%{_prefix}/lib*/perl5/vendor_perl/*/Text/EntityMap.pm
119
120%changelog
121* Sun Aug 08 2010 Munehiro Yamamoto <munepi@Vvinelinux.org> 0.9.21-2
122- TeX Live 2009
123
124* Mon Jun  9 2008 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-1
125- applied new versioning policy
126- built with perl-5.10.0-2, installed perl modules to vendor_perl dir
127- spec in UTF-8
128
129* Sun Sep 17 2006 NAKAMURA Kenta <kenta@vinelinux.org> 0.9.21-0vl5
130- added lib64.patch to have lib64 in perl path on 64bit machine
131
132* Tue Apr 13 2004 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9.21-0vl4
133- added patch1, 2 from mandrake package
134  (prevent patch0--2 was moved 100--102)
135- added Requires: tetex, gawk, groff
136- added BuildRequires: docbook-utils
137- fixed spec file
138
139* Mon Apr 12 2004 KOBAYASHI R. Taizo <tkoba@vinelinux.org> 0.9.21-0vl3
140- remove Conflicts docbook-dtds
141
142* Tue Jun  3 2003 Jun Nishii <jun@vinelinux.org> 0.9.21-0vl2
143- added Conflicts docbook-dtds
144
145* Sun May  4 2003 IWAI Masaharu <iwai@alib.jp> 0.9.21-0vl1
146- upsteam release
147- use rpmmacros
148- update patches
149  - platex.patch (Patch0)
150  - replace_dvips.patch (Patch1)
151  - catalog_file.patch (Patch2)
152
153* Mon Jan  7 2002 IWAI Masaharu <iwaim@cc.mbn.or.jp> 0.9.1-0vl6
154- sgml-common's super catalog support
155- added PreReq: sgml-common >= 0.5
156
157* Wed Jul 18 2001 KOBAYASHI R. Taizo <tkoba@vinelinux.org>
158- 0.9.1-0vl5: remove url.sty which is provided from tetex
159
160* Mon Apr 23 2001 <sagami@vinelinux.org>
161- 0.9.1-0vl4: move manpages to %%{_mandir}
162
163* Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
164- 0.9.1-0vl3
165- fixed $ENV{SGML_CATALOG_FILES}
166- Maybe it's a bug... but it won't work without iso-entities-8879.1986
167
168* Tue Jan 23 2001 Yasuhide OOMORI <dasen@icntv.ne.jp>
169- 0.9.1-0vl2
170- fixed some in description
171
172* Sun Jan 21 2001 Jun Nishii <jun@vinelinux.org>
173- 0.9.1-0vl1
174- updated to 0.9.1
175
176* Tue Nov 21 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
177- 0.7.4-0vl3
178- now you can choose jlatex for sgml2latex
179- set '-l ja' as default
180
181* Sun Nov 19 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
182- 0.7.4-0vl2
183- setup quietly
184- create symlinks for sgml2latex
185- use %{_prefix} macro
186- use platex as default in sgml2latex
187- use ${RPM_OPT_FLAGS}
188
189* Tue Nov 14 2000 Yasuhide OOMORI <dasen@icntv.ne.jp>
190- 0.7.4-0vl1
191- updated to 0.7.4
192- Modified URL for Source
193- remove RPM_BUILD_ROOT first in %install
194- renamed directory which contains users' guide
195- remove RPM_BUILD_ROOT in %clean
196
197* Wed Jul 12 2000 MATSUBAYASHI 'Shaolin' Kohji <shaolin@rhythmaning.org>
198- 0.6.1-0vl2
199- Obsoletes: sgml_tools -> sgml-tools :-)
200- added Provides: sgml-tools (for compatibility with indexhtml)
201
202* Thu Jun 29 2000 Jun Nishii <jun@vinelinux.org>
203- 0.6.1-0vl1
204- first build
Note: See TracBrowser for help on using the repository browser.