tufte layout files:
[lyx.git] / development / lyx.spec.in
blob6d10b71e36e22cff15658ab010647b629b1dbbd4
1 %define version_suffix @RPM_VERSION_SUFFIX@
3 Summary: A WYSIWYM (What You See Is What You Mean) document processor
4 Name: @PACKAGE@
5 Version: @VERSION@
6 Release: 1
7 License: GPL
8 Group: Applications/Publishing
9 URL: http://www.lyx.org/
10 Packager: The LyX Team <lyx-devel@lists.lyx.org>
11 Source: ftp://ftp.lyx.org/pub/lyx/stable/%{name}-%{version}.tar.gz
12 BuildRoot: %{_tmppath}/%{name}-%{version}-root
13 Prefix: %{_prefix}
14 Obsoletes: tetex-lyx
16 %description
17 LyX is a document processor that encourages an approach to writing
18 based on the structure of your documents, not their appearance. It
19 is released under a Free Software/Open Source license (GPL v.2).
21 LyX is for people that write and want their writing to look great,
22 right out of the box. No more endless tinkering with formatting
23 details, 'finger painting' font attributes or futzing around with
24 page boundaries. You just write. In the background, Prof. Knuth's
25 legendary TeX typesetting engine makes you look good.
27 On screen, LyX looks like any word processor; its printed output --
28 or richly cross-referenced PDF, just as readily produced -- looks
29 like nothing else. Gone are the days of industrially bland .docs,
30 all looking similarly not-quite-right, yet coming out unpredictably
31 different on different printer drivers. Gone are the crashes
32 'eating' your dissertation the evening before going to press.
34 LyX is stable and fully featured. It is a multi-platform, fully
35 internationalized application running natively on Unix/Linux, the
36 Macintosh and modern Windows platforms.
37 %prep
38 %setup
40 %build
41 unset LINGUAS || true
42 ./configure --prefix=%{_prefix} \
43 --mandir=%{_mandir} --bindir=%{_bindir} --datadir=%{_datadir} \
44 --enable-build-type=rel \
45 %{version_suffix}
46 make
48 %install
49 unset LINGUAS || true
50 rm -rf ${RPM_BUILD_ROOT}
51 install -d -m 755 ${RPM_BUILD_ROOT}
52 make DESTDIR=${RPM_BUILD_ROOT} install
53 gzip -f9 ${RPM_BUILD_ROOT}%{_mandir}/man?/*
56 # Set up the lyx-specific class files where TeX can see them
58 TEXMF=%{_datadir}/texmf
59 mkdir -p ${RPM_BUILD_ROOT}${TEXMF}/tex/latex
60 mv ${RPM_BUILD_ROOT}%{_datadir}/%{name}/tex \
61 ${RPM_BUILD_ROOT}/${TEXMF}/tex/latex/%{name}
64 # Miscellaneous files
66 # Don't use %{name}.png, this will not work with --version-suffix
67 cp -a lib/images/lyx.png ${RPM_BUILD_ROOT}%{_datadir}/%{name}/images/
69 %clean
70 rm -rf ${RPM_BUILD_ROOT}
72 %post
73 # Make TeX understand where LyX-specific packages are
74 texhash
76 %postun
77 # Fix the TeX file hash
79 texhash
81 %files
82 %defattr(-,root,root)
83 %doc ABOUT-NLS ANNOUNCE COPYING
84 %doc README UPGRADING NEWS
85 %doc lib/CREDITS
86 %{_bindir}/*
87 %{_mandir}/man?/*
88 %{_datadir}/locale/*/LC_MESSAGES/*
89 %{_datadir}/%{name}
90 %{_datadir}/texmf/tex/latex/%{name}