texworks-vl.spec 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. %define _qt4_qmake %{_libdir}/qt4/bin/qmake
  2. ## Summary/Description adopted from Debian with modification
  3. Name: texworks
  4. Version: 0.2.3
  5. Release: 2%{?_dist_release}
  6. Summary: An environment for authoring TeX (LaTeX, ConTeXt, etc) documents
  7. Summary(ja): TeX ドキュメント制作のための総合環境
  8. Group: Applications/Editors
  9. License: GPLv2+
  10. URL: http://tug.org/texworks/
  11. Source0: http://texworks.googlecode.com/files/%{name}-%{version}.tar.gz
  12. # Desktop file adopted from Debian with modification
  13. Source1: %{name}.desktop
  14. ## vine
  15. Source100: pdfplatex.sh
  16. Source101: pdfeplatex.sh
  17. # Fix some strange characters in README
  18. # applied in upstream svn629
  19. Patch0: texworks-0.2.3-README-UTF8.patch
  20. # Use qmake mechanism to install files and fix DSO linking problem
  21. # DSO linking related part applied in upstream svn637
  22. Patch1: TeXworks-pro-install.patch
  23. ## vine
  24. Patch100: texworks-0.2.3-ptex-vine.patch
  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 Linux
  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. %patch0 -p0 -b .fix
  47. %patch1 -p1 -b .fix
  48. %patch100 -p1 -b .vine
  49. %build
  50. %_qt4_qmake INSTALL_PREFIX=%{_prefix} DOCS_DIR=%{_docdir}/%{name}-%{version}
  51. %__make %{?_smp_mflags}
  52. %install
  53. %__rm -rf %{buildroot}
  54. %__make install INSTALL_ROOT=%{buildroot}
  55. %__mkdir_p %{buildroot}%{_datadir}/applications
  56. desktop-file-install \
  57. --dir $RPM_BUILD_ROOT%{_datadir}/applications \
  58. %{SOURCE1}
  59. ## support platex/eplatex via dvipdfmx
  60. %__install -m755 -D %{SOURCE100} %{buildroot}%{_bindir}/pdfplatex
  61. %__install -m755 -D %{SOURCE101} %{buildroot}%{_bindir}/pdfeplatex
  62. %clean
  63. %__rm -rf %{buildroot}
  64. %post
  65. update-desktop-database &> /dev/null || :
  66. %postun
  67. update-desktop-database &> /dev/null || :
  68. %files
  69. %defattr(-,root,root,-)
  70. %{_docdir}/%{name}-%{version}/
  71. %{_bindir}/%{name}
  72. %{_bindir}/pdfplatex
  73. %{_bindir}/pdfeplatex
  74. %{_datadir}/%{name}/
  75. %{_datadir}/applications/%{name}.desktop
  76. %{_datadir}/pixmaps/*
  77. %changelog
  78. * Xxx Yyy Zz 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-2
  79. - corrected Summary: and Distribution:
  80. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
  81. - initial build
  82. * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
  83. - Move to menu category 'Office'
  84. - License tag revised to 'GPLv2+'
  85. - Initial import to Fedora repositories
  86. * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
  87. - Fix some strange characters in README
  88. - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
  89. problem
  90. * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
  91. - Initial packaging