texworks-vl.spec 4.6 KB

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