texworks-vl.spec 3.4 KB

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