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
|
|
|
#
|
2013-01-02 18:48:12 +01:00
|
|
|
# Copyright (c) 2013 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/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
Name: lyx
|
|
|
|
#!BuildIgnore: lyx
|
2012-02-23 14:00:42 +01:00
|
|
|
BuildRequires: boost-devel
|
|
|
|
BuildRequires: enchant-devel
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: hunspell-devel
|
|
|
|
BuildRequires: libqt4-devel
|
|
|
|
BuildRequires: python
|
|
|
|
BuildRequires: update-desktop-files
|
2012-06-26 09:18:48 +02:00
|
|
|
BuildRequires: xz
|
2013-01-02 18:48:12 +01:00
|
|
|
Version: 2.0.5.1
|
2012-02-23 14:00:42 +01:00
|
|
|
Release: 0
|
2011-10-17 12:36:00 +02:00
|
|
|
Summary: WYSIWYM (What You See Is What You Mean) document processor
|
2012-03-12 15:51:40 +01:00
|
|
|
License: GPL-2.0+
|
2012-02-23 14:00:42 +01:00
|
|
|
Group: Productivity/Publishing/TeX/Frontends
|
2008-01-13 10:57:12 +01:00
|
|
|
Url: http://www.lyx.org/
|
2012-06-26 09:18:48 +02:00
|
|
|
Source: ftp://ftp.lyx.org/pub/lyx/stable/2.0.x/lyx-%{version}.tar.xz
|
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
|
|
|
|
|
2012-02-23 14:00:42 +01:00
|
|
|
Requires: ImageMagick
|
|
|
|
Requires: texlive-latex
|
2012-03-12 15:51:40 +01:00
|
|
|
Recommends: texlive-xetex
|
|
|
|
Recommends: xindy
|
2011-02-01 10:06:08 +01:00
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
%description
|
2011-10-17 12:36:00 +02:00
|
|
|
LyX is a document processor that encourages an approach to writing
|
|
|
|
based on the structure of your documents, not their appearance. The
|
|
|
|
author can concentrate on the content (What You See Is What You Mean).
|
|
|
|
The formatting is done by the backends (like LaTeX) and the output can
|
|
|
|
have different formats, such as DVI, postscript, PDF, html.
|
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
|
|
|
|
%prep
|
2011-09-25 23:48:15 +02:00
|
|
|
%setup -q
|
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
|
2012-09-24 16:21:54 +02:00
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/LyX.cpp
|
|
|
|
sed -i "s/__TIME__/\"$FAKE_BUILDTIME\"/" src/tex2lyx/tex2lyx.cpp
|
|
|
|
sed -i "s/__DATE__/\"$FAKE_BUILDDATE\"/" src/tex2lyx/tex2lyx.cpp
|
2011-09-06 15:40:12 +02:00
|
|
|
|
2007-01-16 00:24:26 +01:00
|
|
|
%build
|
2011-09-08 12:01:20 +02:00
|
|
|
#./autogen.sh
|
2008-10-09 19:25:00 +02:00
|
|
|
TEXMF=%{_datadir}/texmf
|
2007-01-16 00:24:26 +01:00
|
|
|
%configure \
|
2009-06-09 10:53:20 +02:00
|
|
|
--without-included-boost \
|
2011-10-06 11:34:16 +02:00
|
|
|
--without-aspell \
|
|
|
|
--with-hunspell \
|
|
|
|
--with-enchant \
|
2009-06-09 10:53:20 +02:00
|
|
|
--with-frontend=qt4
|
2011-09-19 13:06:15 +02:00
|
|
|
make %{?_smp_mflags}
|
2007-01-16 00:24:26 +01:00
|
|
|
|
|
|
|
%install
|
2008-10-09 19:25:00 +02:00
|
|
|
TEXMF=%{_datadir}/texmf
|
|
|
|
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
|
|
|
|
|
2012-03-12 15:51:40 +01:00
|
|
|
# Add executable to files with shebang as advised by rpmlint
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_datadir}/lyx/scripts/*.py
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_datadir}/lyx/scripts/listerrors
|
|
|
|
chmod +x $RPM_BUILD_ROOT%{_datadir}/lyx/lyx2lyx/profiling.py
|
|
|
|
|
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
|
2012-02-23 14:00:42 +01:00
|
|
|
cp ABOUT-NLS ANNOUNCE COPYING NEWS \
|
2008-09-24 17:11:38 +02:00
|
|
|
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
|
|
|
|
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
|
2011-09-19 13:06:15 +02:00
|
|
|
%dir %{_datadir}/texmf
|
|
|
|
%dir %{_datadir}/texmf/tex
|
|
|
|
%dir %{_datadir}/texmf/tex/latex
|
2008-10-09 19:25:00 +02:00
|
|
|
%{_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
|