texworks-vl.spec 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. %global gitcommit 046b6bb
  2. %global templates_japanese 0
  3. %global templates_japanese_version 20110626
  4. ## Summary/Description adopted from Debian with modification
  5. Name: texworks
  6. Version: 0.5
  7. Release: 5%{?gitcommit:.git%gitcommit}%{?_dist_release}
  8. Summary: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
  9. Summary(ja): TeX ドキュメント制作のための総合環境
  10. Group: Applications/Editors
  11. License: GPLv2+
  12. URL: http://tug.org/texworks/
  13. Source0: %{name}-%{version}%{?gitcommit:.git%gitcommit}.tar.%{?gitcommit:xz}%{!?gitcommit:gz}
  14. # Desktop file adopted from Debian with modification
  15. Source1: %{name}.desktop
  16. ## vine
  17. %if %{templates_japanese}
  18. Source50: texworks-templates-japanese-%{templates_japanese_version}.tar.xz
  19. %endif
  20. ## vine
  21. Patch101: texworks-0.4.6-addDefaultBinPaths.patch
  22. Patch100: texworks-0.4.6-ptex2pdf.patch
  23. BuildRequires: cmake >= 2.8.6
  24. BuildRequires: lua-devel
  25. BuildRequires: hunspell-devel
  26. BuildRequires: dbus-devel
  27. BuildRequires: poppler-qt4-devel
  28. BuildRequires: desktop-file-utils
  29. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  30. Distribution: Vine
  31. Vendor: Project Vine
  32. Packager: munepi
  33. %description
  34. TeXworks is an environment for authoring TeX (LaTeX, ConTeXt, etc) documents,
  35. with a Unicode-based, TeX-aware editor, integrated PDF viewer, and a clean,
  36. simple interface accessible to casual and non-technical users.
  37. You may install the texlive-* packages to make this program useful.
  38. %description -l ja
  39. TeXworks は TeX (LaTeX, ConTeXt, etc) ドキュメント制作のための総合環境です。
  40. ユニコードベースで編集する TeX に特化したエディタに、
  41. PDF プレビュアーが統合されており、不慣れな非技術系のユーザへの
  42. 簡潔で操作しやすいインタフェースを備えています。
  43. TeXworks を利用するためには、TeX 環境が必要です。
  44. %prep
  45. %setup -q
  46. %patch100 -p1 -b .vine
  47. %patch101 -p1 -b .vine
  48. ## added some Japanese templates
  49. %if %{templates_japanese}
  50. %__tar xf %{SOURCE50}
  51. %__cp -ra "texworks-templates-japanese-%{templates_japanese_version}/Japanese documents" res/resfiles/templates/ || exit 1
  52. patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version}/texworks-0.4.1-templates-japanese.patch || exit 1
  53. %endif
  54. %build
  55. %cmake . \
  56. -DWITH_PYTHON=OFF \
  57. -DWITH_LUA=OFF \
  58. ;
  59. %__make %{?_smp_mflags}
  60. %install
  61. %__rm -rf %{buildroot}
  62. %__make install DESTDIR=%{buildroot}
  63. ## install document files
  64. %__mkdir_p %{buildroot}%{_docdir}/%{name}-%{version}
  65. ## drop some files
  66. %__rm -f %{buildroot}/usr/lib/texworks/libTWLuaPlugin.so
  67. %__rm -f %{buildroot}%{_datadir}/doc/texworks/COPYING
  68. %__rm -f %{buildroot}%{_datadir}/doc/texworks/NEWS
  69. %__rm -f %{buildroot}%{_datadir}/doc/texworks/README.md
  70. %clean
  71. %__rm -rf %{buildroot}
  72. %post
  73. update-desktop-database &> /dev/null || :
  74. %postun
  75. update-desktop-database &> /dev/null || :
  76. %files
  77. %defattr(-,root,root,-)
  78. %doc COPYING NEWS README.md
  79. %{_bindir}/%{name}
  80. %{_datadir}/applications/%{name}.desktop
  81. %{_datadir}/appdata/%{name}.appdata.xml
  82. %{_datadir}/pixmaps/*
  83. %{_mandir}/man1/texworks.1.gz
  84. %changelog
  85. * Thu May 28 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-5.git046b6bb
  86. - source snapshot git046b6bb based on 0.4.6
  87. * Sat Nov 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302
  88. - dropped R/BR: texlive
  89. * Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-3.svn1302
  90. - source snapshot r1302
  91. - added BuildRequires: lua-devel
  92. * Fri Mar 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-2.svn950
  93. - rebuild with hunspell-devel
  94. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950
  95. - source snapshot r950
  96. - updated pdfplatex.sh
  97. - support SyncTeX
  98. - TeX Live 2011
  99. * Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
  100. - new upstream release
  101. - added BuildRequires: texlive-common
  102. - added Requires: texlive-common
  103. * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
  104. - added some Japanese templates
  105. * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
  106. - new upstream release
  107. * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
  108. - new upstream release
  109. * Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
  110. - source snapshot r724
  111. * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
  112. - source snapshot r671
  113. - dropped obsolete/upstreamed patches
  114. - added texworks-snapshot.sh
  115. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
  116. - initial build
  117. * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
  118. - Move to menu category 'Office'
  119. - License tag revised to 'GPLv2+'
  120. - Initial import to Fedora repositories
  121. * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
  122. - Fix some strange characters in README
  123. - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
  124. problem
  125. * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
  126. - Initial packaging