]> git.saurik.com Git - wxWidgets.git/blame - utils/tex2rtf/distrib/tex2rtf.spec
Compile fix for sound without threads. Not sure
[wxWidgets.git] / utils / tex2rtf / distrib / tex2rtf.spec
CommitLineData
9245daad
VS
1
2Name: tex2rtf
3Version: 2.01
4Release: 1
5Source: %{name}-%{version}-source.tar.bz2
6
7Prefix: /usr
8Summary: Program to convert from LaTeX to RTF and HTML
9Copyright: wxWindows Library License
10Group: Applications/Editors
11URL: http://www.wxwindows.org/tex2rtf
12Packager: Vaclav Slavik <vaclav.slavik@matfyz.cz>
13
14%define wxwin_version 2.3
15BuildRequires: wxBase-devel >= 2.3.2
16BuildRequires: wxBase-static >= 2.3.2
17BuildRoot: /var/tmp/%{name}-%{version}-root
18
19%description
20Tex2RTF is a program originally written by Julian Smart to convert
21from a LaTeX subset to four other formats:
22
23* Linear RTF, for importing into a wide range of word processors.
24* Windows Help hypertext RTF, for compilation with HC (Help Compiler).
25* HTML (Hypertext Markup Language), with ordinary HTML mode and
26 Microsoft HTML Help/wxWindows HTML Help mode.
27* XLP wxHelp format, the original wxWindows toolkit help format.
28 This format is now obsolete.
29
30Tex2RTF parses a 'reasonable' subset of LaTeX, notable blind spots being
31the tabbing environment and maths. However, don't expect to translate
32your LaTeX files immediately with no alteration of your source files, since
33the objective is more to have a portable document source language than to
34convert old LaTeX files.
35
36%prep
37%setup -n %{name}-%{version}-source
38
39%build
40
41# build tex2rtf binary:
42pushd `pwd`
43cd src
44make -f makefile.unx \
45 "CXXFLAGS=$RPM_OPT_FLAGS `wxbase-%{wxwin_version}-config --static --cxxflags` -DNO_GUI" \
46 "LDFLAGS=`wxbase-%{wxwin_version}-config --static --libs`"
47popd
48
49# and use it to generate documentation:
50mkdir -p html
51src/tex2rtf docs/tex2rtf.tex html/tex2rtf.html -html
52ln -sf tex2rtf_contents.html html/index.html
53cp -f docs/*.gif html
54cp -f docs/*.txt .
55
56%install
57rm -rf ${RPM_BUILD_ROOT}
58mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
59cp -f src/tex2rtf ${RPM_BUILD_ROOT}%{_bindir}
60
61%clean
62rm -Rf ${RPM_BUILD_ROOT}
63
64%files
65%defattr(-,root,root)
66%doc *.txt html/
67%{_bindir}/*