lyx-vl.spec 8.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288
  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.7
  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: texlive
  36. Requires(post): texlive
  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. unset QTDIR || : ; . /etc/profile.d/qt4.sh
  72. export QT4DIR=$(echo $QTDIR | %__sed -e "s,/lib$,,")
  73. %configure \
  74. --enable-build-type=release \
  75. --disable-dependency-tracking \
  76. --disable-rpath \
  77. --disable-debug \
  78. --enable-optimization="%{optflags}" \
  79. --enable-shared \
  80. --disable-static \
  81. \
  82. --with-qt4-dir=${QT4DIR} \
  83. --with-frontend=qt4 \
  84. --without-aiksaurus \
  85. --with-aspell \
  86. ;
  87. # --without-included-boost \
  88. %__make %{?_smp_mflags}
  89. # # make sure all .gmo files are regenerated from .po files
  90. # (cd po; make update-gmo)
  91. %install
  92. %__rm -rf ${RPM_BUILD_ROOT}
  93. %__make DESTDIR=${RPM_BUILD_ROOT} install
  94. # for pdf: ps2pdf, pdf3: dvipdfmx
  95. (cd ${RPM_BUILD_ROOT}%{_datadir}/lyx/images
  96. ln -sf buffer-update_pdf2.png buffer-update_pdf.png
  97. ln -sf buffer-update_pdf2.png buffer-update_pdf3.png
  98. ln -sf buffer-view_pdf2.png buffer-view_pdf.png
  99. ln -sf buffer-view_pdf2.png buffer-view_pdf3.png
  100. )
  101. # misc/extras
  102. %__install -p -m644 -D %{SOURCE11} %{buildroot}%{_datadir}/lyx/lyxrc.dist
  103. # latex
  104. %__mkdir_p %{build_texmf}/tex/latex
  105. %__mv -f ${RPM_BUILD_ROOT}%{_datadir}/lyx/tex %{build_texmf}/tex/latex/lyx
  106. ## it semms the newest Japanese translations already included in the upstream...
  107. #%__install -m 644 layouts/* ${RPM_BUILD_ROOT}%{_datadir}/lyx/layouts/
  108. #%__install -m 644 1.3.3/* ${RPM_BUILD_ROOT}%{_datadir}/lyx/doc/
  109. # # it semms the newest Japanese translations already included in the upstream...
  110. # install -m 644 %{SOURCE3} ${RPM_BUILD_ROOT}%{_datadir}/locale/ja/LC_MESSAGES/lyx.mo
  111. # desktop & icon
  112. desktop-file-install --vendor="Vine" \
  113. --dir="${RPM_BUILD_ROOT}%{_datadir}/applications" %{SOURCE10}
  114. %__install -p -D -m644 lib/images/lyx.png \
  115. %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lyx.png
  116. # ghost'd files
  117. touch %{buildroot}%{_datadir}/lyx/lyxrc.defaults
  118. touch %{buildroot}%{_datadir}/lyx/{packages,textclass}.lst
  119. touch %{buildroot}%{_datadir}/lyx/doc/LaTeXConfig.lyx
  120. # unpackaged files
  121. rm -rf %{buildroot}%{_datadir}/lyx/fonts
  122. %find_lang %{name}
  123. %clean
  124. %__rm -rf ${RPM_BUILD_ROOT}
  125. %post
  126. %{exec_texhash} >& /dev/null
  127. if [ -d %{_datadir}/lyx ]; then
  128. cd %{_datadir}/lyx
  129. echo -n " "
  130. echo "Configuring LyX for your system..."
  131. %__python ./configure.py >& /dev/null || :
  132. fi
  133. update-desktop-database -q &> /dev/null
  134. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  135. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  136. %postun
  137. if [ $1 -eq 0 ] ; then
  138. %{exec_texhash} >& /dev/null
  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. fi
  143. %files -f %{name}.lang
  144. %defattr(-,root,root,-)
  145. %doc ABOUT-NLS ANNOUNCE COPYING README UPGRADING NEWS lib/CREDITS
  146. %{_bindir}/*
  147. %{_datadir}/lyx/
  148. %{texmf}/tex/latex/lyx/
  149. %{_datadir}/applications/*.desktop
  150. %{_datadir}/icons/hicolor/*/*/*
  151. %{_mandir}/man*/*
  152. %config(noreplace) %{_datadir}/lyx/lyxrc.dist
  153. %ghost %{_datadir}/lyx/lyxrc.defaults
  154. %ghost %{_datadir}/lyx/*.lst
  155. %ghost %{_datadir}/lyx/doc/LaTeXConfig.lyx
  156. %changelog
  157. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.7-1
  158. - new upstream release
  159. - TeX Live 2009
  160. - dropped Requires: xdvik, dvipdfmx
  161. * Sun Jan 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.5-1
  162. - new upstream release
  163. - updated Patch0: lyx-1.6.5-xdg_open.patch
  164. * Sun Jul 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.3-1
  165. - new upstream release
  166. - dropped old source files
  167. - change License: GPLv2+
  168. - added lyx.desktop
  169. - added BuildRequires:
  170. - aspell-devel
  171. - desktop-file-utils
  172. - gettext
  173. - python
  174. - qt4-devel
  175. - zlib-devel
  176. - libboost-devel
  177. - libboost-filesystem
  178. - libboost-signals
  179. - libpng-devel
  180. - glib2-devel
  181. - added Requires:
  182. - ghostscript
  183. - dvipdfmx
  184. - xdvik
  185. - qt4
  186. - xdg-utils
  187. - optimized some configure options
  188. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.4-1vl5
  189. - applied new versioning policy, spec in utf-8
  190. * Sat Apr 07 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl1
  191. - updated to 1.4.4 with the most recent CJK patch
  192. - updated Patch1
  193. * Sat Dec 30 2006 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.4.2-0vl1
  194. - base spec file : Vine Linux BTS #219
  195. * Mon Nov 6 2006 M.H
  196. - new upstream release
  197. - base spec file CJK-LyX-qt.spec and VinePlus lyx.spec
  198. * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.4-0vl3
  199. - changed Group to Applications/Editors
  200. * Sat Jan 28 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org>
  201. - rebuild with qt-3.3.5
  202. * Sun Jun 13 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.3.4-0vl1
  203. - new upstream version
  204. - change frontend, xforms -> qt
  205. - require tetex, qt, latex-xft-fonts
  206. - change applnk file
  207. - change Group
  208. * Thu Aug 21 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.1.6fix4-0vl1
  209. - new upstream version
  210. - add mime-info
  211. - minor change in spec file
  212. * Sat Nov 11 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  213. - 1.0.3_jp-4
  214. - added BuildPrereq:
  215. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  216. - 1.0.3_jp-3
  217. - minor change in spec file
  218. - build for Vine Linux 2.1
  219. * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org>
  220. - change group
  221. * Wed Dec 22 1999 Jun Nishii <jun@vinelinux.org>
  222. - updated to lyx-1.0.3
  223. - rebuild for Vine Linux 2.0
  224. * Wed May 5 1999 Jun Nishii <jun@vinelinux.org>
  225. - merged Japanese Documents
  226. * Tue May 4 1999 Jun Nishii <jun@vinelinux.org>
  227. - first build