lyx-vl.spec 8.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297
  1. %define texmf %{_datadir}/texmf
  2. %define build_texmf %{buildroot}%{texmf}
  3. %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash 2>/dev/null
  4. %define exec_updmap [ -x %{_bindir}/updmap-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/updmap-sys --nostop 2>/dev/null
  5. %define exec_fmtutil [ -x %{_bindir}/fmtutil-sys ] && PATH=%{_bindir}:$PATH %{_bindir}/fmtutil-sys --all >/dev/null
  6. %define vartexfonts %{_var}/lib/texmf
  7. Summary: A WYSIWYM (What You See Is What You Mean) frontend to LaTeX
  8. Summary(ja): LaTeX形式でも保存できる簡易ワープロ
  9. Name: lyx
  10. Version: 1.6.8
  11. Release: 1%{?_dist_release}
  12. License: GPLv2+
  13. Group: Applications/Editors
  14. URL: http://www.lyx.org/
  15. Source: ftp://ftp.lyx.org/pub/lyx/stable/%{name}-%{version}.tar.bz2
  16. #Source1: http://www.ring.gr.jp/pub/text/CTAN/macros/latex/contrib/koma-script/koma-script.tds.zip
  17. Source10: lyx.desktop
  18. Source11: lyxrc.dist
  19. Patch0: lyx-1.6.5-xdg_open.patch
  20. # vine
  21. Patch10: lyx-1.6.3-customize-vine.patch
  22. # BuildRequires: aiksaurus-devel
  23. BuildRequires: aspell-devel
  24. BuildRequires: libboost-devel
  25. BuildRequires: libboost-filesystem
  26. BuildRequires: libboost-signals
  27. BuildRequires: desktop-file-utils
  28. BuildRequires: gettext
  29. BuildRequires: python
  30. BuildRequires: xorg-x11-devel
  31. BuildRequires: qt4-devel
  32. BuildRequires: libpng-devel
  33. BuildRequires: glib2-devel
  34. BuildRequires: zlib-devel
  35. %if %{?_dist_release} == "vl6"
  36. Requires: texlive
  37. Requires(post): texlive
  38. %endif
  39. %if %{?_dist_release} == "vl5"
  40. Requires: tetex
  41. Requires(post): tetex
  42. Requires: dvipdfmx
  43. Requires: xdvik
  44. %endif
  45. Requires: ghostscript
  46. Requires: python
  47. Requires: qt4
  48. Requires: latex-xft-fonts
  49. Requires(hint): xdg-utils
  50. Requires(hint): rcs
  51. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  52. Vendor: Project Vine
  53. Distribution: Vine Linux
  54. %description
  55. LyX is a modern approach to writing documents which breaks with the
  56. obsolete "typewriter paradigm" of most other document preparation
  57. systems.
  58. It is designed for people who want professional quality output
  59. with a minimum of time and effort, without becoming specialists in
  60. typesetting.
  61. The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
  62. That is, the author focuses on content, not on the details of formatting.
  63. This allows for greater productivity, and leaves the final typesetting
  64. to the backends (like LaTeX) that are specifically designed for the task.
  65. With LyX, the author can concentrate on the contents of his writing,
  66. and let the computer take care of the rest.
  67. This is LyX built with the Qt frontend.
  68. %description -l ja
  69. LaTeX形式で出力もできる簡易ワープロです。数式の入力も簡単にできます。
  70. 特別な知識が無くても、最小限の努力でプロ並の出力を得られるように設計
  71. してあります。
  72. %prep
  73. %setup -q
  74. %patch0 -p1 -b .xdg_open
  75. %patch10 -p1 -b .vine
  76. %build
  77. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  78. export QT4DIR=$(echo $QTDIR | %__sed -e "s,/lib$,,")
  79. %configure \
  80. --enable-build-type=release \
  81. --disable-dependency-tracking \
  82. --disable-rpath \
  83. --disable-debug \
  84. --enable-optimization="%{optflags}" \
  85. --enable-shared \
  86. --disable-static \
  87. \
  88. --with-qt4-dir=${QT4DIR} \
  89. --with-frontend=qt4 \
  90. --without-aiksaurus \
  91. --with-aspell \
  92. ;
  93. # --without-included-boost \
  94. %__make %{?_smp_mflags}
  95. # # make sure all .gmo files are regenerated from .po files
  96. # (cd po; make update-gmo)
  97. %install
  98. %__rm -rf ${RPM_BUILD_ROOT}
  99. %__make DESTDIR=${RPM_BUILD_ROOT} install
  100. # for pdf: ps2pdf, pdf3: dvipdfmx
  101. (cd ${RPM_BUILD_ROOT}%{_datadir}/lyx/images
  102. ln -sf buffer-update_pdf2.png buffer-update_pdf.png
  103. ln -sf buffer-update_pdf2.png buffer-update_pdf3.png
  104. ln -sf buffer-view_pdf2.png buffer-view_pdf.png
  105. ln -sf buffer-view_pdf2.png buffer-view_pdf3.png
  106. )
  107. # misc/extras
  108. %__install -p -m644 -D %{SOURCE11} %{buildroot}%{_datadir}/lyx/lyxrc.dist
  109. # latex
  110. %__mkdir_p %{build_texmf}/tex/latex
  111. %__mv -f ${RPM_BUILD_ROOT}%{_datadir}/lyx/tex %{build_texmf}/tex/latex/lyx
  112. ## it semms the newest Japanese translations already included in the upstream...
  113. #%__install -m 644 layouts/* ${RPM_BUILD_ROOT}%{_datadir}/lyx/layouts/
  114. #%__install -m 644 1.3.3/* ${RPM_BUILD_ROOT}%{_datadir}/lyx/doc/
  115. # # it semms the newest Japanese translations already included in the upstream...
  116. # install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/locale/ja/LC_MESSAGES/lyx.mo
  117. # desktop & icon
  118. desktop-file-install --vendor="Vine" \
  119. --dir="${RPM_BUILD_ROOT}%{_datadir}/applications" %{SOURCE10}
  120. %__install -p -D -m644 lib/images/lyx.png \
  121. %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lyx.png
  122. # ghost'd files
  123. touch %{buildroot}%{_datadir}/lyx/lyxrc.defaults
  124. touch %{buildroot}%{_datadir}/lyx/{packages,textclass}.lst
  125. touch %{buildroot}%{_datadir}/lyx/doc/LaTeXConfig.lyx
  126. # unpackaged files
  127. rm -rf %{buildroot}%{_datadir}/lyx/fonts
  128. %find_lang %{name}
  129. %clean
  130. %__rm -rf ${RPM_BUILD_ROOT}
  131. %post
  132. %{exec_texhash} >& /dev/null
  133. if [ -d %{_datadir}/lyx ]; then
  134. cd %{_datadir}/lyx
  135. echo -n " "
  136. echo "Configuring LyX for your system..."
  137. %__python ./configure.py >& /dev/null || :
  138. fi
  139. update-desktop-database -q &> /dev/null
  140. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  141. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  142. %postun
  143. if [ $1 -eq 0 ] ; then
  144. %{exec_texhash} >& /dev/null
  145. update-desktop-database -q &> /dev/null
  146. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  147. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  148. fi
  149. %files -f %{name}.lang
  150. %defattr(-,root,root,-)
  151. %doc ABOUT-NLS ANNOUNCE COPYING README UPGRADING NEWS lib/CREDITS
  152. %{_bindir}/*
  153. %{_datadir}/lyx/
  154. %{texmf}/tex/latex/lyx/
  155. %{_datadir}/applications/*.desktop
  156. %{_datadir}/icons/hicolor/*/*/*
  157. %{_mandir}/man*/*
  158. %config(noreplace) %{_datadir}/lyx/lyxrc.dist
  159. %ghost %{_datadir}/lyx/lyxrc.defaults
  160. %ghost %{_datadir}/lyx/*.lst
  161. %ghost %{_datadir}/lyx/doc/LaTeXConfig.lyx
  162. %changelog
  163. * Thu Dec 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.8-1
  164. - new upstream release
  165. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.7-1
  166. - new upstream release
  167. - TeX Live 2009
  168. - dropped Requires: xdvik, dvipdfmx
  169. * Sun Jan 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.5-1
  170. - new upstream release
  171. - updated Patch0: lyx-1.6.5-xdg_open.patch
  172. * Sun Jul 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.3-1
  173. - new upstream release
  174. - dropped old source files
  175. - change License: GPLv2+
  176. - added lyx.desktop
  177. - added BuildRequires:
  178. - aspell-devel
  179. - desktop-file-utils
  180. - gettext
  181. - python
  182. - qt4-devel
  183. - zlib-devel
  184. - libboost-devel
  185. - libboost-filesystem
  186. - libboost-signals
  187. - libpng-devel
  188. - glib2-devel
  189. - added Requires:
  190. - ghostscript
  191. - dvipdfmx
  192. - xdvik
  193. - qt4
  194. - xdg-utils
  195. - optimized some configure options
  196. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.4-1vl5
  197. - applied new versioning policy, spec in utf-8
  198. * Sat Apr 07 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl1
  199. - updated to 1.4.4 with the most recent CJK patch
  200. - updated Patch1
  201. * Sat Dec 30 2006 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.4.2-0vl1
  202. - base spec file : Vine Linux BTS #219
  203. * Mon Nov 6 2006 M.H
  204. - new upstream release
  205. - base spec file CJK-LyX-qt.spec and VinePlus lyx.spec
  206. * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.4-0vl3
  207. - changed Group to Applications/Editors
  208. * Sat Jan 28 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org>
  209. - rebuild with qt-3.3.5
  210. * Sun Jun 13 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.3.4-0vl1
  211. - new upstream version
  212. - change frontend, xforms -> qt
  213. - require tetex, qt, latex-xft-fonts
  214. - change applnk file
  215. - change Group
  216. * Thu Aug 21 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.1.6fix4-0vl1
  217. - new upstream version
  218. - add mime-info
  219. - minor change in spec file
  220. * Sat Nov 11 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  221. - 1.0.3_jp-4
  222. - added BuildPrereq:
  223. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  224. - 1.0.3_jp-3
  225. - minor change in spec file
  226. - build for Vine Linux 2.1
  227. * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org>
  228. - change group
  229. * Wed Dec 22 1999 Jun Nishii <jun@vinelinux.org>
  230. - updated to lyx-1.0.3
  231. - rebuild for Vine Linux 2.0
  232. * Wed May 5 1999 Jun Nishii <jun@vinelinux.org>
  233. - merged Japanese Documents
  234. * Tue May 4 1999 Jun Nishii <jun@vinelinux.org>
  235. - first build