lyx-vl.spec 8.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334
  1. %define _fontdir %{_datadir}/fonts/%{name}
  2. %define texmf %{_datadir}/texmf
  3. %define build_texmf %{buildroot}%{texmf}
  4. %define exec_texhash [ -x %{_bindir}/texhash ] && PATH=%{_bindir}:$PATH %{_bindir}/texhash 2>/dev/null
  5. Summary: WYSIWYM (What You See Is What You Mean) word processor with LaTeX output
  6. Summary(ja): LaTeX 形式で保存できるワードプロセッサ
  7. Name: lyx
  8. Version: 2.0.6
  9. Release: 1%{?_dist_release}
  10. License: GPLv2+
  11. Group: Applications/Editors
  12. URL: http://www.lyx.org/
  13. Source0: ftp://ftp.lyx.org/pub/lyx/stable/lyx-%{version}.tar.xz
  14. Source1: lyxrc.dist
  15. Source10: lyx.desktop
  16. ## upstreamable patches
  17. # submitted, but upstream rejected it. we currently agree to disagree.
  18. Patch50: lyx-2.0.6-xdg_open.patch
  19. ## vine
  20. # reverted checkLatex to lyx-1.6.5
  21. Patch100: lyx-2.0.1-configurepy-vine.patch
  22. # BuildRequires: aiksaurus-devel
  23. # BuildRequires: aspell-devel
  24. BuildRequires: enchant-devel
  25. BuildRequires: hunspell-devel
  26. BuildRequires: libboost-devel
  27. BuildRequires: libboost-filesystem
  28. BuildRequires: libboost-signals
  29. BuildRequires: libboost-regex
  30. BuildRequires: desktop-file-utils
  31. BuildRequires: gettext
  32. BuildRequires: python
  33. BuildRequires: xorg-x11-devel
  34. BuildRequires: qt4-devel
  35. BuildRequires: libpng-devel
  36. BuildRequires: glib2-devel
  37. BuildRequires: zlib-devel
  38. Requires(post): texlive-common
  39. Requires(postun): texlive-common
  40. Requires: ghostscript
  41. Requires: python
  42. # optional minimal qt4 dep
  43. %{?_qt_version:Requires: qt4 >= %{_qt4_version}}
  44. Requires: %{name}-fonts = %{version}-%{release}
  45. Requires: xdg-utils
  46. Requires: rcs
  47. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  48. Vendor: Project Vine
  49. Distribution: Vine Linux
  50. %description
  51. LyX is a modern approach to writing documents which breaks with the
  52. obsolete "typewriter paradigm" of most other document preparation
  53. systems.
  54. It is designed for people who want professional quality output
  55. with a minimum of time and effort, without becoming specialists in
  56. typesetting.
  57. The major innovation in LyX is WYSIWYM (What You See Is What You Mean).
  58. That is, the author focuses on content, not on the details of formatting.
  59. This allows for greater productivity, and leaves the final typesetting
  60. to the backends (like LaTeX) that are specifically designed for the task.
  61. With LyX, the author can concentrate on the contents of his writing,
  62. and let the computer take care of the rest.
  63. This is LyX built with the Qt frontend.
  64. %description -l ja
  65. LaTeX形式で出力もできるワードプロセッサです。数式の入力も簡単にできます。
  66. 特別な知識が無くても、最小限の努力でプロ並の出力を得られるように設計
  67. してあります。
  68. %package fonts
  69. Summary: Lyx/MathML fonts
  70. Group: User Interface/X
  71. # The actual license says "The author of these fonts, Basil K. Malyshev, has
  72. # kindly granted permission to use and modify these fonts."
  73. # One of the font files (wasy10) is separately licensed GPL+.
  74. License: Copyright only and GPL+
  75. Obsoletes: latex-xft-fonts
  76. BuildArch: noarch
  77. %description fonts
  78. A collection of Math symbol fonts for %{name}.
  79. %prep
  80. %setup -q
  81. %patch50 -p1 -b .xdg_open
  82. %patch100 -p1 -b .vine
  83. #./autogen.sh
  84. %build
  85. %configure \
  86. --disable-dependency-tracking \
  87. --disable-rpath \
  88. --enable-build-type=release \
  89. --disable-debug \
  90. --enable-optimization="%{optflags}" \
  91. --without-included-boost \
  92. --disable-stdlib-debug \
  93. --enable-shared \
  94. --disable-static \
  95. \
  96. --with-frontend=qt4 \
  97. --without-aiksaurus \
  98. --with-enchant \
  99. --with-hunspell \
  100. ;
  101. %__make %{?_smp_mflags}
  102. # # make sure all .gmo files are regenerated from .po files
  103. # (cd po; make update-gmo)
  104. %install
  105. %__rm -rf ${RPM_BUILD_ROOT}
  106. %__make DESTDIR=${RPM_BUILD_ROOT} install
  107. # misc/extras
  108. %__install -p -m644 -D %{SOURCE1} %{buildroot}%{_datadir}/lyx/lyxrc.dist
  109. # Set up the lyx-specific class files where TeX can see them
  110. %__mkdir_p %{build_texmf}/tex/latex
  111. %__mv %{buildroot}%{_datadir}/lyx/tex %{build_texmf}/tex/latex/lyx
  112. # desktop & icon
  113. desktop-file-install --vendor="vine" \
  114. --dir="${RPM_BUILD_ROOT}%{_datadir}/applications" %{SOURCE10}
  115. %__install -p -D -m644 lib/images/lyx.png \
  116. %{buildroot}%{_datadir}/icons/hicolor/48x48/apps/lyx.png
  117. # ghost'd files
  118. touch %{buildroot}%{_datadir}/lyx/lyxrc.defaults
  119. touch %{buildroot}%{_datadir}/lyx/{packages,textclass}.lst
  120. # fonts
  121. install -m 0755 -d %{buildroot}%{_fontdir}
  122. mv %{buildroot}%{_datadir}/lyx/fonts/*.ttf %{buildroot}%{_fontdir}/
  123. rm -rf %{buildroot}%{_datadir}/lyx/fonts
  124. %find_lang %{name}
  125. %check
  126. # tests/test_filetools error bogus ( see http://bugzilla.redhat.com/723938 )
  127. %__make -k check ||:
  128. %clean
  129. %__rm -rf ${RPM_BUILD_ROOT}
  130. %post
  131. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  132. %postun
  133. if [ $1 -eq 0 ] ; then
  134. %{exec_texhash} >& /dev/null
  135. update-desktop-database -q &> /dev/null
  136. touch --no-create %{_datadir}/icons/hicolor &> /dev/null
  137. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  138. fi
  139. %posttrans
  140. %{exec_texhash} >& /dev/null
  141. update-desktop-database -q &> /dev/null
  142. touch --no-create %{_datadir}/icons/hicolor &> /dev/null || :
  143. gtk-update-icon-cache %{_datadir}/icons/hicolor &> /dev/null || :
  144. %post fonts
  145. %__font_install_post %{_fontdir}
  146. %postun fonts
  147. %__font_install_postun %{_fontdir}
  148. %files -f %{name}.lang
  149. %defattr(-,root,root,-)
  150. %doc ABOUT-NLS ANNOUNCE COPYING README UPGRADING NEWS lib/CREDITS
  151. %{_bindir}/*
  152. %{_datadir}/lyx/
  153. %{texmf}/tex/latex/lyx/
  154. %{_datadir}/applications/*.desktop
  155. %{_datadir}/icons/hicolor/*/*/*
  156. %{_mandir}/man*/*
  157. %config(noreplace) %{_datadir}/lyx/lyxrc.dist
  158. %ghost %{_datadir}/lyx/lyxrc.defaults
  159. %ghost %{_datadir}/lyx/*.lst
  160. %ghost %{_datadir}/lyx/doc/LaTeXConfig.lyx
  161. %files fonts
  162. %defattr(-,root,root,-)
  163. %dir %{_fontdir}/
  164. %{_fontdir}/*.ttf
  165. %changelog
  166. * Sat Dec 28 2013 Yoji TOYODA <bsyamato@sea.plala.or.jp> 2.0.6-1
  167. - update to 2.0.6
  168. - update Patch50 (lyx-2.0.6-xdg_open.patch)
  169. * Sun Mar 11 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.2-2
  170. - rebuild with hunspell-devel
  171. * Thu Jan 26 2012 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.2-1
  172. - new upstream release
  173. - added subpackage "lyx-fonts"
  174. - added Obsoletes: latex-xft-fonts
  175. * Sat Oct 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.1-2
  176. - applied lyx-2.0.1-configurepy-vine.patch
  177. - reverted checkLatex to lyx-1.6.5
  178. * Fri Sep 09 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.1-1
  179. - new upstream release
  180. * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2.0.0-1
  181. - new upstream release
  182. - dropped BuildRequires: aspell-devel
  183. - added BuildRequires:
  184. - libboost-regex
  185. - enchant-devel
  186. - hunspell-devel
  187. * Thu Dec 23 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.8-1
  188. - new upstream release
  189. * Sun Aug 08 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.7-1
  190. - new upstream release
  191. - TeX Live 2009
  192. - dropped Requires: xdvik, dvipdfmx
  193. * Sun Jan 10 2010 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.5-1
  194. - new upstream release
  195. - updated Patch0: lyx-1.6.5-xdg_open.patch
  196. * Sun Jul 26 2009 Munehiro Yamamoto <munepi@vinelinux.org> 1.6.3-1
  197. - new upstream release
  198. - dropped old source files
  199. - change License: GPLv2+
  200. - added lyx.desktop
  201. - added BuildRequires:
  202. - aspell-devel
  203. - desktop-file-utils
  204. - gettext
  205. - python
  206. - qt4-devel
  207. - zlib-devel
  208. - libboost-devel
  209. - libboost-filesystem
  210. - libboost-signals
  211. - libpng-devel
  212. - glib2-devel
  213. - added Requires:
  214. - ghostscript
  215. - dvipdfmx
  216. - xdvik
  217. - qt4
  218. - xdg-utils
  219. - optimized some configure options
  220. * Fri Oct 03 2008 Shu KONNO <owa@bg.wakwak.com> 1.4.4-1vl5
  221. - applied new versioning policy, spec in utf-8
  222. * Sat Apr 07 2007 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 1.4.4-0vl1
  223. - updated to 1.4.4 with the most recent CJK patch
  224. - updated Patch1
  225. * Sat Dec 30 2006 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.4.2-0vl1
  226. - base spec file : Vine Linux BTS #219
  227. * Mon Nov 6 2006 M.H
  228. - new upstream release
  229. - base spec file CJK-LyX-qt.spec and VinePlus lyx.spec
  230. * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> - 1.3.4-0vl3
  231. - changed Group to Applications/Editors
  232. * Sat Jan 28 2006 Yasumichi Akahoshi <yasumichi@vinelinux.org>
  233. - rebuild with qt-3.3.5
  234. * Sun Jun 13 2004 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.3.4-0vl1
  235. - new upstream version
  236. - change frontend, xforms -> qt
  237. - require tetex, qt, latex-xft-fonts
  238. - change applnk file
  239. - change Group
  240. * Thu Aug 21 2003 USAMI Kosuke <usami-k@yc5.so-net.ne.jp> - 1.1.6fix4-0vl1
  241. - new upstream version
  242. - add mime-info
  243. - minor change in spec file
  244. * Sat Nov 11 2000 Masato Bito <masato@nets.ce.hiroshima-cu.ac.jp>
  245. - 1.0.3_jp-4
  246. - added BuildPrereq:
  247. * Thu Sep 21 2000 Jun Nishii <jun@vinelinux.org>
  248. - 1.0.3_jp-3
  249. - minor change in spec file
  250. - build for Vine Linux 2.1
  251. * Wed Jan 5 2000 Jun Nishii <jun@vinelinux.org>
  252. - change group
  253. * Wed Dec 22 1999 Jun Nishii <jun@vinelinux.org>
  254. - updated to lyx-1.0.3
  255. - rebuild for Vine Linux 2.0
  256. * Wed May 5 1999 Jun Nishii <jun@vinelinux.org>
  257. - merged Japanese Documents
  258. * Tue May 4 1999 Jun Nishii <jun@vinelinux.org>
  259. - first build