lyx-vl.spec 7.8 KB

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