texworks-vl.spec 4.6 KB

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