2007-01-16 00:24:26 +01:00
|
|
|
#
|
2011-01-18 12:13:12 +01:00
|
|
|
# spec file for package lyx
|
2007-01-16 00:24:26 +01:00
|
|
|
#
|
2011-01-18 12:13:12 +01:00
|
|
|
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
|
2007-01-16 00:24:26 +01:00
|
|
|
#
|
2008-09-24 17:11:38 +02:00
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
# norootforbuild
|
|
|
|
|
2008-03-07 22:54:04 +01:00
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
Name: lyx
|
|
|
|
#!BuildIgnore: lyx
|
2011-05-30 16:15:33 +02:00
|
|
|
BuildRequires: ImageMagick aspell-devel boost-devel fdupes gv hunspell-devel libdrm-devel libjpeg-devel libqt4-devel python sgmltool texlive-devel texlive-latex update-desktop-files
|
2010-07-17 14:44:52 +02:00
|
|
|
License: LGPLv2.1+
|
2007-01-16 00:24:26 +01:00
|
|
|
Group: Productivity/Publishing/TeX/Frontends
|
2010-12-08 12:32:46 +01:00
|
|
|
Requires: texlive-latex ImageMagick
|
2008-01-13 10:57:12 +01:00
|
|
|
AutoReqProv: on
|
2011-09-05 20:12:16 +02:00
|
|
|
Version: 2.0.1
|
|
|
|
Release: 1
|
2007-01-16 00:24:26 +01:00
|
|
|
Summary: LaTeX-Based WYSIWYG Editor
|
2008-01-13 10:57:12 +01:00
|
|
|
Url: http://www.lyx.org/
|
2011-09-05 20:12:16 +02:00
|
|
|
Source: ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/lyx-2.0.1.tar.gz
|
2007-07-05 19:02:24 +02:00
|
|
|
Source1: lyx.desktop
|
|
|
|
Source2: lyx.png
|
2011-05-30 16:15:33 +02:00
|
|
|
Source3: lyxrc.dist
|
2011-08-25 21:16:12 +02:00
|
|
|
# xdg patch
|
2011-06-28 21:54:06 +02:00
|
|
|
# This was rejected by upstream (http://www.mail-archive.com/lyx-devel@lists.lyx.org/msg133878.html)
|
2011-09-05 20:12:16 +02:00
|
|
|
Patch0: lyx-2.0.1-xdg_open.patch
|
2007-01-16 00:24:26 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
2011-05-30 16:15:33 +02:00
|
|
|
Recommends: texlive-xetex xindy
|
2011-02-01 10:06:08 +01:00
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
%description
|
|
|
|
LyX is a front-end for LaTeX under X11. It combines the comfortable use
|
|
|
|
of a word processor with the high quality of LaTeX typesetting.
|
|
|
|
Documents are displayed in a WYSIWYG-like way. User does not choose low
|
|
|
|
level attributes ("large italic") but high level layouts (styles) for
|
|
|
|
each paragraph. Of course, low level formatting is still possible.
|
|
|
|
|
|
|
|
%prep
|
2011-05-30 16:15:33 +02:00
|
|
|
%setup -q -n %{name}-%{version}
|
2011-09-05 20:12:16 +02:00
|
|
|
%patch0
|
2011-08-26 11:16:01 +02:00
|
|
|
# Remove build time references so build-compare can do its work
|
|
|
|
FAKE_BUILDTIME=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%H:%%M')
|
2011-08-25 21:16:12 +02:00
|
|
|
FAKE_BUILDDATE=$(LC_ALL=C date -u -r %{_sourcedir}/%{name}.changes '+%%b %%e %%Y')
|
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/LyX.cpp
|
2011-08-26 11:16:01 +02:00
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/LyX.cpp
|
2011-09-06 15:40:12 +02:00
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
%build
|
2008-07-25 02:28:12 +02:00
|
|
|
#%{?suse_update_config:%{suse_update_config -f config}}
|
2011-05-31 14:10:32 +02:00
|
|
|
./autogen.sh
|
2009-06-09 10:53:20 +02:00
|
|
|
export CFLAGS="$RPM_OPT_FLAGS -DHAVE_STRERROR"
|
|
|
|
export CXXFLAGS="$RPM_OPT_FLAGS -DHAVE_STRERROR"
|
2008-10-09 19:25:00 +02:00
|
|
|
TEXMF=%{_datadir}/texmf
|
|
|
|
%if %suse_version > 1020
|
|
|
|
TEXMF=$(kpsexpand '$TEXMFMAIN')
|
|
|
|
%if %suse_version > 1030
|
|
|
|
TEXMF=$(kpsexpand '$TEXMFDIST')
|
|
|
|
%endif
|
|
|
|
%endif
|
2007-01-16 00:24:26 +01:00
|
|
|
%configure \
|
2009-06-09 10:53:20 +02:00
|
|
|
--without-included-boost \
|
2008-10-09 19:25:00 +02:00
|
|
|
%if %suse_version < 1020
|
2007-01-16 00:24:26 +01:00
|
|
|
--with-extra-inc=/usr/X11R6/include/X11 \
|
2008-10-09 19:25:00 +02:00
|
|
|
%endif
|
2011-05-30 16:15:33 +02:00
|
|
|
--with-aspell --with-hunspell \
|
2009-06-09 10:53:20 +02:00
|
|
|
--with-frontend=qt4
|
2007-01-16 00:24:26 +01:00
|
|
|
make %{?jobs:-j%jobs}
|
|
|
|
|
|
|
|
%install
|
2008-10-09 19:25:00 +02:00
|
|
|
TEXMF=%{_datadir}/texmf
|
|
|
|
%if %suse_version > 1020
|
|
|
|
TEXMF=$(kpsexpand '$TEXMFMAIN')
|
|
|
|
%if %suse_version > 1030
|
|
|
|
TEXMF=$(kpsexpand '$TEXMFDIST')
|
|
|
|
%endif
|
|
|
|
%endif
|
|
|
|
make install DESTDIR=$RPM_BUILD_ROOT TEXMF=$TEXMF
|
2011-05-30 16:15:33 +02:00
|
|
|
|
|
|
|
# some defaults
|
|
|
|
install -p -m644 -D %{SOURCE3} $RPM_BUILD_ROOT%{_datadir}/lyx/lyxrc.dist
|
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
mkdir -p $RPM_BUILD_ROOT%{_defaultdocdir}/%{name}
|
2008-10-09 19:25:00 +02:00
|
|
|
pushd $RPM_BUILD_ROOT%{_datadir}/lyx/doc/
|
2007-01-16 00:24:26 +01:00
|
|
|
for i in *
|
|
|
|
do
|
2008-10-09 19:25:00 +02:00
|
|
|
ln -s %{_datadir}/lyx/doc/$i \
|
2007-01-16 00:24:26 +01:00
|
|
|
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
|
|
|
|
done
|
|
|
|
popd
|
2008-09-24 17:11:38 +02:00
|
|
|
cp ABOUT-NLS ANNOUNCE COPYING INSTALL* NEWS \
|
|
|
|
README README.localization RELEASE-NOTES UPGRADING \
|
2007-01-16 00:24:26 +01:00
|
|
|
$RPM_BUILD_ROOT/%{_defaultdocdir}/%{name}/
|
2008-10-09 19:25:00 +02:00
|
|
|
mkdir -p $RPM_BUILD_ROOT$TEXMF/tex/latex
|
|
|
|
ln -s %{_datadir}/lyx/tex $RPM_BUILD_ROOT$TEXMF/tex/latex/lyx
|
2007-01-16 00:24:26 +01:00
|
|
|
%suse_update_desktop_file -i lyx Office WordProcessor
|
2008-09-24 17:11:38 +02:00
|
|
|
%fdupes -s $RPM_BUILD_ROOT
|
2007-07-05 19:02:24 +02:00
|
|
|
%find_lang %name
|
2007-01-16 00:24:26 +01:00
|
|
|
|
|
|
|
%clean
|
2007-07-05 19:02:24 +02:00
|
|
|
rm -rf $RPM_BUILD_ROOT
|
2007-01-16 00:24:26 +01:00
|
|
|
|
2007-07-05 19:02:24 +02:00
|
|
|
%files -f %name.lang
|
2007-01-16 00:24:26 +01:00
|
|
|
%defattr(-,root,root)
|
2008-10-09 19:25:00 +02:00
|
|
|
%docdir %{_datadir}/lyx/doc
|
2007-01-16 00:24:26 +01:00
|
|
|
%doc %{_defaultdocdir}/lyx
|
|
|
|
/usr/bin/lyx
|
|
|
|
/usr/bin/lyxclient
|
|
|
|
/usr/bin/tex2lyx
|
2008-10-09 19:25:00 +02:00
|
|
|
%{_datadir}/applications/lyx.desktop
|
|
|
|
%{_datadir}/pixmaps/lyx.png
|
|
|
|
%{_datadir}/texmf/tex/latex/lyx
|
|
|
|
%{_datadir}/lyx
|
2007-01-16 00:24:26 +01:00
|
|
|
%doc %{_mandir}/man1/lyx.1.gz
|
|
|
|
%doc %{_mandir}/man1/lyxclient.1.gz
|
|
|
|
%doc %{_mandir}/man1/tex2lyx.1.gz
|
|
|
|
|
2007-04-27 16:48:55 +02:00
|
|
|
%changelog
|