texworks-vl.spec 3.7 KB

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