texworks-vl.spec 4.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  1. %global svnrevision 1302
  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: 4%{?svnrevision:.svn%svnrevision}%{?_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: http://texworks.googlecode.com/files/%{name}-%{version}%{?svnrevision:.svn%svnrevision}.tar.%{?svnrevision:xz}%{!?svnrevision:gz}
  14. #Source0: http://texworks.googlecode.com/files/%{name}-%{version}-r858.tar.gz
  15. # Desktop file adopted from Debian with modification
  16. Source1: %{name}.desktop
  17. ## vine
  18. Source10: texworks-snapshot.sh
  19. %if %{templates_japanese}
  20. Source50: texworks-templates-japanese-%{templates_japanese_version}.tar.xz
  21. %endif
  22. ## vine
  23. Patch100: texworks-0.5-r1302-ptex2pdf.patch
  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. ## added some Japanese templates
  48. %if %{templates_japanese}
  49. %__tar xf %{SOURCE50}
  50. %__cp -ra "texworks-templates-japanese-%{templates_japanese_version}/Japanese documents" res/resfiles/templates/ || exit 1
  51. patch -p1 -b -z .vine < texworks-templates-japanese-%{templates_japanese_version}/texworks-0.4.1-templates-japanese.patch || exit 1
  52. %endif
  53. %build
  54. %_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
  55. %__make %{?_smp_mflags}
  56. %install
  57. %__rm -rf %{buildroot}
  58. %__make install INSTALL_ROOT=%{buildroot}
  59. %clean
  60. %__rm -rf %{buildroot}
  61. %post
  62. update-desktop-database &> /dev/null || :
  63. %postun
  64. update-desktop-database &> /dev/null || :
  65. %files
  66. %defattr(-,root,root,-)
  67. %{_docdir}/%{name}-%{version}/
  68. %{_bindir}/%{name}
  69. %{_datadir}/applications/%{name}.desktop
  70. %{_datadir}/pixmaps/*
  71. %{_mandir}/man1/texworks.1.gz
  72. %changelog
  73. * Sat Nov 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302
  74. - dropped R/BR: texlive
  75. * Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-3.svn1302
  76. - source snapshot r1302
  77. - added BuildRequires: lua-devel
  78. * Fri Mar 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-2.svn950
  79. - rebuild with hunspell-devel
  80. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950
  81. - source snapshot r950
  82. - updated pdfplatex.sh
  83. - support SyncTeX
  84. - TeX Live 2011
  85. * Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
  86. - new upstream release
  87. - added BuildRequires: texlive-common
  88. - added Requires: texlive-common
  89. * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
  90. - added some Japanese templates
  91. * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
  92. - new upstream release
  93. * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
  94. - new upstream release
  95. * Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
  96. - source snapshot r724
  97. * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
  98. - source snapshot r671
  99. - dropped obsolete/upstreamed patches
  100. - added texworks-snapshot.sh
  101. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
  102. - initial build
  103. * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
  104. - Move to menu category 'Office'
  105. - License tag revised to 'GPLv2+'
  106. - Initial import to Fedora repositories
  107. * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
  108. - Fix some strange characters in README
  109. - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
  110. problem
  111. * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
  112. - Initial packaging