123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290 |
- %define texmf %{_datadir}/texmf
- %define build_texmf %{buildroot}%{texmf}
- %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash 2>/dev/null
- Summary: WYSIWYM (What You See Is What You Mean) word processor with LaTeX output
- Summary(ja): LaTeX 形式で保存できるワードプロセッサ
- Name: lyx
- Version: 2.0.1
- Release: 2%{?_dist_release}
- License: GPLv2+
- Group: Applications/Editors
- URL: http://www.lyx.org/
- Source0: ftp://ftp.lyx.org/pub/lyx/stable/lyx-%{version}.tar.xz
- Source1: lyxrc.dist
- Source10: lyx.desktop
- ## upstreamable patches
- # submitted, but upstream rejected it. we currently agree to disagree.
- Patch50: lyx-2.0.1-xdg_open.patch
- ## vine
- # reverted checkLatex to lyx-1.6.5
- Patch100: lyx-2.0.1-configurepy-vine.patch
- # BuildRequires: aiksaurus-devel
- # BuildRequires: aspell-devel
- BuildRequires: enchant-devel
- BuildRequires: hunspell-devel
- BuildRequires: libboost-devel
- BuildRequires: libboost-filesystem
- BuildRequires: libboost-signals
- BuildRequires: libboost-regex
- BuildRequires: desktop-file-utils
- BuildRequires: gettext
- BuildRequires: python
- BuildRequires: xorg-x11-devel
- BuildRequires: qt4-devel
- BuildRequires: libpng-devel
- BuildRequires: glib2-devel
- BuildRequires: zlib-devel
- Requires(post): texlive-common
- Requires(postun): texlive-common
- Requires: ghostscript
- Requires: python
- Requires: qt4
- Requires: latex-xft-fonts
- Requires: xdg-utils
- Requires: rcs
- BuildRoot: %{_tmppath}/%{name}-%{version}-root
- Vendor: Project Vine
- Distribution: Vine Linux
- %description
- LyX is a modern approach to writing documents which breaks with the
- obsolete "typewriter paradigm" of most other document preparation
- systems.
- It is designed for people who want professional quality output
- with a minimum of time and effort, without becoming specialists in
- typesetting.
- The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
- That is, the author focuses on content, not on the details of formatting.
- This allows for greater productivity, and leaves the final typesetting
- to the backends (like LaTeX) that are specifically designed for the task.
- With LyX, the author can concentrate on the contents of his writing,
- and let the computer take care of the rest.
- This is LyX built with the Qt frontend.
- %description -l ja
- LaTeX形式で出力もできるワードプロセッサです。数式の入力も簡単にできます。
- 特別な知識が無くても、最小限の努力でプロ並の出力を得られるように設計
- してあります。
- %prep
- %setup -q
- %patch50 -p1 -b .xdg_open
- %patch100 -p1 -b .vine
- #./autogen.sh
- %build
- %configure \
- --disable-dependency-tracking \
- --disable-rpath \
- --enable-build-type=release \
- --disable-debug \
- --enable-optimization="%{optflags}" \
- --without-included-boost \
- --enable-shared \
- --disable-static \
- \
- --with-frontend=qt4 \
- --without-aiksaurus \
- --with-enchant \
- --with-hunspell \
- ;
- %__make %{?_smp_mflags}
- # # make sure all .gmo files are regenerated from .po files
- # (cd po; make update-gmo)
- %install
- %__rm -rf ${RPM_BUILD_ROOT}
- %__make DESTDIR=${RPM_BUILD_ROOT} install
- # misc/extras
- %__install -p -m644 -D %{SOURCE1} %{buildroot}%{_datadir}/lyx/lyxrc.dist
- # Set up the lyx-specific class files where TeX can see them
- %__mkdir_p %{build_texmf}/tex/latex
- %__mv %{buildroot}%{_datadir}/lyx/tex %{build_texmf}/tex/latex/lyx
- # desktop & icon
- desktop-file-install --vendor="vine" \
- --dir="${RPM_BUILD_ROOT}%{_datadir}/applications" %{SOURCE10}
- %__install -p -D -m644 lib/images/lyx.png \
- %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lyx.png
- # ghost'd files
- touch %{buildroot}%{_datadir}/lyx/lyxrc.defaults
- touch %{buildroot}%{_datadir}/lyx/{packages,textclass}.lst
- # unpackaged files
- %__rm -rf %{buildroot}%{_datadir}/lyx/fonts
- %find_lang %{name}
- %check
- # tests/test_filetools error bogus ( see http://bugzilla.redhat.com/723938 )
- %__make -k check ||:
- %clean
- %__rm -rf ${RPM_BUILD_ROOT}
- %post
- touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
- %postun
- if [ $1 -eq 0 ] ; then
- %{exec_texhash} >& /dev/null
- update-desktop-database -q &> /dev/null
- touch --no-create %{_datadir}/icons/hicolor &> /dev/null
- gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
- fi
- %posttrans
- %{exec_texhash} >& /dev/null
- update-desktop-database -q &> /dev/null
- touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
- gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
- %files -f %{name}.lang
- %defattr(-,root,root,-)
- %doc ABOUT-NLS ANNOUNCE COPYING README UPGRADING NEWS lib/CREDITS
- %{_bindir}/*
- %{_datadir}/lyx/
- %{texmf}/tex/latex/lyx/
- %{_datadir}/applications/*.desktop
- %{_datadir}/icons/hicolor/*/*/*
- %{_mandir}/man*/*
- %config(noreplace) %{_datadir}/lyx/lyxrc.dist
- %ghost %{_datadir}/lyx/lyxrc.defaults
- %ghost %{_datadir}/lyx/*.lst
- %ghost %{_datadir}/lyx/doc/LaTeXConfig.lyx
- %changelog
- * Sat Oct 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.1-2
- - applied lyx-2.0.1-configurepy-vine.patch
- - reverted checkLatex to lyx-1.6.5
- * Fri Sep 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.1-1
- - new upstream release
- * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.0-1
- - new upstream release
- - dropped BuildRequires: aspell-devel
- - added BuildRequires:
- - libboost-regex
- - enchant-devel
- - hunspell-devel
- * Thu Dec 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.8-1
- - new upstream release
- * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.7-1
- - new upstream release
- - TeX Live 2009
- - dropped Requires: xdvik, dvipdfmx
- * Sun Jan 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.5-1
- - new upstream release
- - updated Patch0: lyx-1.6.5-xdg_open.patch
- * Sun Jul 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.3-1
- - new upstream release
- - dropped old source files
- - change License: GPLv2+
- - added lyx.desktop
- - added BuildRequires:
- - aspell-devel
- - desktop-file-utils
- - gettext
- - python
- - qt4-devel
- - zlib-devel
- - libboost-devel
- - libboost-filesystem
- - libboost-signals
- - libpng-devel
- - glib2-devel
- - added Requires:
- - ghostscript
- - dvipdfmx
- - xdvik
- - qt4
- - xdg-utils
- - optimized some configure options
- * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.4-1vl5
- - applied new versioning policy, spec in utf-8
- * Sat Apr 07 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl1
- - updated to 1.4.4 with the most recent CJK patch
- - updated Patch1
- * Sat Dec 30 2006 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.4.2-0vl1
- - base spec file : Vine Linux BTS #219
- * Mon Nov 6 2006 M.H
- - new upstream release
- - base spec file CJK-LyX-qt.spec and VinePlus lyx.spec
- * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.4-0vl3
- - changed Group to Applications/Editors
- * Sat Jan 28 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org>
- - rebuild with qt-3.3.5
- * Sun Jun 13 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.3.4-0vl1
- - new upstream version
- - change frontend, xforms -> qt
- - require tetex, qt, latex-xft-fonts
- - change applnk file
- - change Group
- * Thu Aug 21 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.1.6fix4-0vl1
- - new upstream version
- - add mime-info
- - minor change in spec file
- * Sat Nov 11 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
- - 1.0.3_jp-4
- - added BuildPrereq:
- * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
- - 1.0.3_jp-3
- - minor change in spec file
- - build for Vine Linux 2.1
- * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org>
- - change group
- * Wed Dec 22 1999 Jun Nishii <jun@vinelinux.org>
- - updated to lyx-1.0.3
- - rebuild for Vine Linux 2.0
- * Wed May 5 1999 Jun Nishii <jun@vinelinux.org>
- - merged Japanese Documents
- * Tue May 4 1999 Jun Nishii <jun@vinelinux.org>
- - first build
|