source: projects/specs/trunk/t/texlive-collection-htmlxml/texlive-collection-htmlxml-vl.spec @ 9529

Revision 9529, 5.8 KB checked in by munepi, 9 years ago (diff)

TeX Live 2015/pretest

Line 
1## -*- coding: utf-8-unix -*-
2## NOTE: This spec file is generated by tlpdb2rpmspec 2015-1:
3## tlpdb2rpmspec collection-htmlxml
4
5%global _use_internal_dependency_generator 0
6%global __find_provides %{nil}
7%global __find_requires %{nil}
8
9Summary: TeX Live: HTML/SGML/XML support
10Summary(ja): TeX Live: HTML/SGML/XML support
11Name: texlive-collection-htmlxml
12Version: 2015
13Release: 1%{?_dist_release}
14License: LPPL 1.3, Freely redistributable without restriction, LPPL
15Group: Applications/Publishing
16URL:http://www.tug.org/texlive/
17
18Source0: classpack.doc.tar.xz
19Source1: classpack.source.tar.xz
20Source2: classpack.tar.xz
21Source3: jadetex.doc.tar.xz
22Source4: jadetex.source.tar.xz
23Source5: jadetex.tar.xz
24Source6: passivetex.tar.xz
25Source7: tex4ht.doc.tar.xz
26Source8: tex4ht.tar.xz
27Source9: xmltex.doc.tar.xz
28Source10: xmltex.tar.xz
29Source11: xmltexconfig.tar.xz
30
31Requires: texlive = %{version}
32Requires: texlive-collection-basic = %{version}
33Requires: texlive-collection-fontsrecommended = %{version}
34Requires: texlive-collection-latex = %{version}
35
36Requires(post):         texlive = %{version}
37Requires(postun):       texlive = %{version}
38
39BuildArch:      noarch
40Buildroot:      %{_tmppath}/%{name}-%{version}-root
41
42Vendor:         Project Vine
43Distribution:   Vine Linux
44Packager:       munepi
45
46%description
47The TeX Live software distribution offers a complete TeX system for a
48variety of Unix, Macintosh, Windows and other platforms. It
49encompasses programs for editing, typesetting, previewing and printing
50of TeX documents in many different languages, and a large collection
51of TeX macros and font libraries.
52
53The distribution includes extensive general documentation about TeX,
54as well as the documentation for the included software packages.
55
56This package is a collection of HTML/SGML/XML support:
57Packages to convert LaTeX to XML/HTML, and typeset XML/SGML.
58
59This package contains the following CTAN packages:
60classpack: XML mastering for LaTeX classes and packages.
61jadetex: Macros supporting Jade DSSSL output.
62passivetex: Support package for XML/SGML typesetting
63tex4ht: Convert (La)TeX to HTML/XML.
64xmltex: Support for parsing XML documents.
65xmltexconfig:
66
67%description -l ja
68TeX Live ソフトウェアディストリビューションは、
69さまざまな Unix, Macintosh, Windows、および
70他のプラットホームに対して完全な TeX システムを提供します。
71多くの異なった言語を含む TeX ドキュメントの
72編集、組版、閲覧、印刷するためのプログラム、
73そして、TeX マクロやフォントライブラリの大きなコレクションを
74同梱しています。
75
76このディストリビューションは
77同梱しているソフトウェアパッケージのためのドキュメントばかりでなく、
78TeX に関するたくさんの一般的なドキュメントを含んでいます。
79
80このパッケージは以下のようなパッケージ集です。
81HTML/SGML/XML support:
82Packages to convert LaTeX to XML/HTML, and typeset XML/SGML.
83
84このパッケージは以下の CTAN パッケージを含んでいます:
85classpack: XML mastering for LaTeX classes and packages.
86jadetex: Macros supporting Jade DSSSL output.
87passivetex: Support package for XML/SGML typesetting
88tex4ht: Convert (La)TeX to HTML/XML.
89xmltex: Support for parsing XML documents.
90xmltexconfig:
91
92%package doc
93Summary: TeX Live: Documentation files of %{name}
94Group: Applications/Publishing
95Requires: %{name} = %{version}-%{release}
96
97%description doc
98This package contains documentation files of %{name}.
99
100%prep
101%setup -c -n %{name}-%{version}
102%__tar -xvf %{SOURCE1}
103%__tar -xvf %{SOURCE2}
104%__tar -xvf %{SOURCE3}
105%__tar -xvf %{SOURCE4}
106%__tar -xvf %{SOURCE5}
107%__tar -xvf %{SOURCE6}
108%__tar -xvf %{SOURCE7}
109%__tar -xvf %{SOURCE8}
110%__tar -xvf %{SOURCE9}
111%__tar -xvf %{SOURCE10}
112%__tar -xvf %{SOURCE11}
113
114%build
115
116%install
117[ -n "%{buildroot}" -a "%{buildroot}" != / ] && %__rm -rf %{buildroot}
118
119%__mkdir_p %{buildroot}%{_datadir}
120
121## move texmf-dist to /usr/share/texmf-dist
122[ -d texmf-dist ] && %__mv texmf-dist %{buildroot}%{_tl_texmfdist}/ ||:
123
124## move texmf to /usr/share/texmf
125[ -d texmf ] && %__mv texmf %{buildroot}%{_tl_texmfmain}/ ||:
126
127## move tlpkg to /usr/share/tlpkg
128[ -d tlpkg ] && %__mv tlpkg %{buildroot}%{_datadir}/ ||:
129
130## move all non-arch binaries to /usr/bin
131[ -d bin ] && %__mv bin %{buildroot}%{_prefix}/ ||:
132
133## move others into /usr/share/texmf-dist
134%__mkdir_p %{buildroot}%{_tl_texmfdist}
135%__cp -a * %{buildroot}%{_tl_texmfdist}/ ||:
136%__rm -rf * ||:
137
138
139## remove duplicated files between texlive and texlive-collection-*
140## NOTE: We provides texmf.cnf and updmap{-hdr,}.cfg from texlive
141## remove unpacked files
142x=(
143scripts/texlive/texconfig-dialog.sh
144scripts/texlive/texconfig-sys.sh
145scripts/texlive/texconfig.sh
146scripts/texlive/texlinks.sh
147scripts/texlive/tlmgr.pl
148texconfig/tcfmgr
149web2c/mktex.opt
150web2c/mktexdir
151web2c/mktexdir.opt
152web2c/mktexnam
153web2c/mktexnam.opt
154web2c/mktexupd
155web2c/texmf.cnf
156web2c/updmap-hdr.cfg
157web2c/updmap.cfg
158)
159if [ -d %{buildroot}%{_tl_texmfdist} ]; then
160pushd %{buildroot}%{_tl_texmfdist}
161%__rm -f ${x[@]} ||:
162popd
163fi
164
165## Files list
166find %{buildroot} -type f -or -type l | \
167    %__sed -e "s|%{buildroot}||g" > filelist.full
168
169find %{buildroot}%{_tl_texmfdist} -type d | \
170    %__sed -e "s|^%{buildroot}|%dir |" \
171           -e "s|$|/|"             >> filelist.full
172
173## subpackages
174grep "/texmf-dist/doc/" filelist.full > filelist.doc
175cat filelist.doc filelist.full | sort | uniq -u > filelist.tmp
176%__mv -f filelist.tmp filelist.full
177
178%clean
179%__rm -rf %{buildroot}
180
181%post
182%_tl_touch_run texhash
183%_tl_touch_run mtxrun
184
185%_tl_touch_run fmtutil
186
187exit 0
188
189
190%postun
191if [ "$1" = 0 ]; then
192    %_tl_touch_run texhash
193
194fi
195
196exit 0
197
198%posttrans
199%{_tl_exec_texhash}
200%{_tl_exec_mtxrun}
201%{_tl_exec_updmap}
202%{_tl_exec_fmtutil}
203exit 0
204
205
206%files -f filelist.full
207%defattr(-,root,root,-)
208
209%files -f filelist.doc doc
210%defattr(-,root,root,-)
211
212%changelog
213
Note: See TracBrowser for help on using the repository browser.