]> git.lyx.org Git - lyx.git/blob - development/lyx.spec.in
Use getBBUnits in both frontends.
[lyx.git] / development / lyx.spec.in
1 Summary: A WYSIWYM (What You See Is What You Mean) frontend to LaTeX
2 Name: @PACKAGE@
3 Version: @VERSION@
4 Release: 1
5 Copyright: see COPYING file
6 Group: X11/Editors
7 Url: http://www.lyx.org/
8 Packager: Kayvan A. Sylvan <kayvan@sylvan.com>
9 Source: ftp://ftp.lyx.org/pub/lyx/stable/lyx-%{PACKAGE_VERSION}.tar.gz
10 BuildRoot: %{_tmppath}/%{name}-root
11 Icon: lyx.xpm
12 Prefix: /usr
13 Requires: xforms >= 0.88, tetex-xdvi, tetex, tetex-latex
14 Obsoletes: tetex-lyx
15
16 %description
17 LyX is a modern approach to writing documents which breaks with the
18 obsolete "typewriter paradigm" of most other document preparation
19 systems.
20
21 It is designed for people who want professional quality output
22 with a minimum of time and effort, without becoming specialists in
23 typesetting.
24
25 The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
26 That is, the author focuses on content, not on the details of formatting.
27 This allows for greater productivity, and leaves the final typesetting
28 to the backends (like LaTeX) that are specifically designed for the task.
29
30 With LyX, the author can concentrate on the contents of his writing,
31 and let the computer take care of the rest.
32
33 %prep
34 %setup
35
36 %build
37 unset LINGUAS || true
38 ./configure --prefix=%{_prefix} --mandir=%{_mandir} \
39         --bindir=%{_bindir} --datadir=%{_datadir} \
40         --without-warnings --disable-debug --enable-optimization=-O2
41 make
42
43 %install
44 unset LINGUAS || true
45 rm -rf ${RPM_BUILD_ROOT}
46 install -d -m 755 ${RPM_BUILD_ROOT}
47 make DESTDIR=${RPM_BUILD_ROOT} install
48 gzip -f9 ${RPM_BUILD_ROOT}%{_mandir}/man?/*
49
50 #
51 # Set up the lyx-specific class files where TeX can see them
52 #
53 TEXMF=%{_datadir}/texmf
54 mkdir -p ${RPM_BUILD_ROOT}${TEXMF}/tex/latex
55 mv ${RPM_BUILD_ROOT}%{_datadir}/lyx/tex \
56       ${RPM_BUILD_ROOT}/${TEXMF}/tex/latex/lyx
57
58 #
59 # Miscellaneous files
60 #
61 cp -a lib/images/lyx.xpm ${RPM_BUILD_ROOT}%{_datadir}/lyx/images/
62 cp lib/reLyX/README README.reLyX
63
64 %clean
65 rm -rf ${RPM_BUILD_ROOT}
66
67 %post
68 # Make TeX understand where LyX-specific packages are
69 texhash
70
71 # Before configuring lyx for the local system
72 # PATH needs to be imported 
73 if [ -f /etc/profile ]; then 
74     . /etc/profile
75 fi 
76 #
77 # Now configure LyX
78 #
79 echo "Configuring LyX for your system..."
80 cd %{_datadir}/lyx
81 ./configure --srcdir
82
83 # Fix reLyX perl program if the prefix is non-standard
84 if [ "%{_prefix}" != "/usr" ]
85 then
86     perl -pi -e "s!/usr/share/lyx!%{_datadir}/lyx!" \
87         %{_bindir}/reLyX
88 fi
89
90 %postun
91 # Fix the TeX file hash
92 #
93 texhash
94
95 %files
96 %defattr(-,root,root)
97 %doc ABOUT-NLS ANNOUNCE COPYING 
98 %doc README UPGRADING ChangeLog NEWS
99 %doc lib/CREDITS README.reLyX
100 %{_bindir}/*
101 %{_mandir}/man?/*
102 %{_datadir}/locale/*/LC_MESSAGES/*
103 %{_datadir}/%{name}
104 %{_datadir}/texmf/tex/latex/%{name}