texworks-vl.spec 4.3 KB

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