2004-10-12 06:41:30 +00:00
|
|
|
%define version_suffix @RPM_VERSION_SUFFIX@
|
2003-02-20 20:45:22 +00:00
|
|
|
|
2008-12-15 11:08:23 +00:00
|
|
|
Summary: A WYSIWYM (What You See Is What You Mean) document processor
|
1999-10-13 21:39:32 +00:00
|
|
|
Name: @PACKAGE@
|
|
|
|
Version: @VERSION@
|
2010-03-16 09:25:30 +00:00
|
|
|
Release: 2
|
2008-12-15 11:08:23 +00:00
|
|
|
License: GPL
|
2003-02-20 20:45:22 +00:00
|
|
|
Group: Applications/Publishing
|
|
|
|
URL: http://www.lyx.org/
|
2008-12-15 11:08:23 +00:00
|
|
|
Packager: The LyX Team <lyx-devel@lists.lyx.org>
|
2003-02-20 20:45:22 +00:00
|
|
|
Source: ftp://ftp.lyx.org/pub/lyx/stable/%{name}-%{version}.tar.gz
|
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
|
|
Prefix: %{_prefix}
|
2001-08-05 22:15:41 +00:00
|
|
|
Obsoletes: tetex-lyx
|
1999-10-02 14:01:04 +00:00
|
|
|
|
1999-09-27 18:44:28 +00:00
|
|
|
%description
|
2008-12-15 11:08:23 +00:00
|
|
|
LyX is a document processor that encourages an approach to writing
|
|
|
|
based on the structure of your documents, not their appearance. It
|
|
|
|
is released under a Free Software/Open Source license (GPL v.2).
|
2001-08-08 08:26:09 +00:00
|
|
|
|
2008-12-15 11:08:23 +00:00
|
|
|
LyX is for people that write and want their writing to look great,
|
|
|
|
right out of the box. No more endless tinkering with formatting
|
|
|
|
details, 'finger painting' font attributes or futzing around with
|
|
|
|
page boundaries. You just write. In the background, Prof. Knuth's
|
|
|
|
legendary TeX typesetting engine makes you look good.
|
2001-08-08 08:26:09 +00:00
|
|
|
|
2008-12-15 11:08:23 +00:00
|
|
|
On screen, LyX looks like any word processor; its printed output --
|
|
|
|
or richly cross-referenced PDF, just as readily produced -- looks
|
|
|
|
like nothing else. Gone are the days of industrially bland .docs,
|
|
|
|
all looking similarly not-quite-right, yet coming out unpredictably
|
|
|
|
different on different printer drivers. Gone are the crashes
|
|
|
|
'eating' your dissertation the evening before going to press.
|
2003-02-20 20:45:22 +00:00
|
|
|
|
2008-12-15 11:08:23 +00:00
|
|
|
LyX is stable and fully featured. It is a multi-platform, fully
|
|
|
|
internationalized application running natively on Unix/Linux, the
|
|
|
|
Macintosh and modern Windows platforms.
|
1999-10-02 14:01:04 +00:00
|
|
|
%prep
|
1999-09-27 18:44:28 +00:00
|
|
|
%setup
|
|
|
|
|
|
|
|
%build
|
2000-03-15 01:15:13 +00:00
|
|
|
unset LINGUAS || true
|
2008-12-15 11:08:23 +00:00
|
|
|
./configure --prefix=%{_prefix} \
|
2003-02-20 20:45:22 +00:00
|
|
|
--mandir=%{_mandir} --bindir=%{_bindir} --datadir=%{_datadir} \
|
2008-12-15 11:08:23 +00:00
|
|
|
--enable-build-type=rel \
|
2004-10-12 06:41:30 +00:00
|
|
|
%{version_suffix}
|
2001-09-21 12:11:24 +00:00
|
|
|
make
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
%install
|
2000-03-15 01:15:13 +00:00
|
|
|
unset LINGUAS || true
|
1999-10-02 14:01:04 +00:00
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
install -d -m 755 ${RPM_BUILD_ROOT}
|
2001-09-20 09:27:22 +00:00
|
|
|
make DESTDIR=${RPM_BUILD_ROOT} install
|
|
|
|
gzip -f9 ${RPM_BUILD_ROOT}%{_mandir}/man?/*
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-10-02 14:01:04 +00:00
|
|
|
#
|
2001-09-20 09:27:22 +00:00
|
|
|
# Set up the lyx-specific class files where TeX can see them
|
1999-10-02 14:01:04 +00:00
|
|
|
#
|
2001-09-20 09:27:22 +00:00
|
|
|
TEXMF=%{_datadir}/texmf
|
1999-10-02 14:01:04 +00:00
|
|
|
mkdir -p ${RPM_BUILD_ROOT}${TEXMF}/tex/latex
|
2003-02-20 20:45:22 +00:00
|
|
|
mv ${RPM_BUILD_ROOT}%{_datadir}/%{name}/tex \
|
|
|
|
${RPM_BUILD_ROOT}/${TEXMF}/tex/latex/%{name}
|
1999-09-27 18:44:28 +00:00
|
|
|
|
1999-10-02 14:01:04 +00:00
|
|
|
#
|
|
|
|
# Miscellaneous files
|
|
|
|
#
|
2007-08-30 20:09:12 +00:00
|
|
|
# Don't use %{name}.png, this will not work with --version-suffix
|
|
|
|
cp -a lib/images/lyx.png ${RPM_BUILD_ROOT}%{_datadir}/%{name}/images/
|
1999-10-02 14:01:04 +00:00
|
|
|
|
|
|
|
%clean
|
|
|
|
rm -rf ${RPM_BUILD_ROOT}
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
%post
|
2001-08-05 22:15:41 +00:00
|
|
|
# Make TeX understand where LyX-specific packages are
|
|
|
|
texhash
|
|
|
|
|
|
|
|
%postun
|
1999-10-02 14:01:04 +00:00
|
|
|
# Fix the TeX file hash
|
|
|
|
#
|
|
|
|
texhash
|
1999-09-27 18:44:28 +00:00
|
|
|
|
|
|
|
%files
|
2001-11-04 07:29:40 +00:00
|
|
|
%defattr(-,root,root)
|
2014-12-08 12:15:06 +00:00
|
|
|
%doc ANNOUNCE COPYING
|
2007-10-01 10:58:20 +00:00
|
|
|
%doc README UPGRADING NEWS
|
2005-07-16 15:18:14 +00:00
|
|
|
%doc lib/CREDITS
|
2001-09-20 09:27:22 +00:00
|
|
|
%{_bindir}/*
|
|
|
|
%{_mandir}/man?/*
|
|
|
|
%{_datadir}/locale/*/LC_MESSAGES/*
|
|
|
|
%{_datadir}/%{name}
|
|
|
|
%{_datadir}/texmf/tex/latex/%{name}
|
2014-12-08 12:15:06 +00:00
|
|
|
%{_datadir}/icons/*
|
|
|
|
%{_datadir}/applications/*
|