texworks-vl.spec 4.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164
  1. #% global gitcommit 905382e
  2. ## Summary/Description adopted from Debian with modification
  3. Name: texworks
  4. Version: 0.6.1
  5. Release: 1%{?gitcommit:.git%gitcommit}%{?_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: %{name}-%{version}%{?gitcommit:.git%gitcommit}.tar.%{?gitcommit:xz}%{!?gitcommit:gz}
  12. Source0: texworks-release-%{version}.tar.gz
  13. # Desktop file adopted from Debian with modification
  14. Source1: %{name}.desktop
  15. ## vine
  16. Patch100: texworks-0.5-ptex2pdf.patch
  17. #Patch101: texworks-0.4.6-addDefaultBinPaths.patch
  18. BuildRequires: cmake >= 2.8.6
  19. BuildRequires: lua-devel
  20. BuildRequires: hunspell-devel
  21. BuildRequires: dbus-devel
  22. BuildRequires: poppler-qt4-devel
  23. # BuildRequires: python-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 -qn %{name}-%{version}%{?gitcommit:.git%gitcommit}
  42. %setup -qn %{name}-release-%{version}
  43. %patch100 -p1 -b .vine
  44. #% patch101 -p1 -b .vine
  45. %build
  46. %cmake .
  47. %__make %{?_smp_mflags}
  48. %install
  49. %__rm -rf %{buildroot}
  50. %__make install DESTDIR=%{buildroot}
  51. ## install document files
  52. %__mkdir_p %{buildroot}%{_docdir}/%{name}-%{version}
  53. ## drop some files
  54. %__rm -f %{buildroot}%{_datadir}/doc/texworks/COPYING
  55. %__rm -f %{buildroot}%{_datadir}/doc/texworks/NEWS
  56. %__rm -f %{buildroot}%{_datadir}/doc/texworks/README.md
  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. %doc COPYING NEWS README.md
  66. %{_bindir}/%{name}
  67. %{_usr}/lib/%{name}/lib*.so
  68. %{_datadir}/applications/%{name}.desktop
  69. %{_datadir}/appdata/%{name}.appdata.xml
  70. %{_datadir}/pixmaps/*
  71. %{_mandir}/man1/texworks.1.gz
  72. %changelog
  73. * Tue May 10 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-1
  74. - new upstream release
  75. * Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-7.git905382e
  76. - rebuild with poppler-0.43.0
  77. * Sun Jan 24 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-6.git905382e
  78. - source snapshot git905382e
  79. * Thu May 28 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-5.git046b6bb
  80. - source snapshot git046b6bb based on 0.4.6
  81. * Sat Nov 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302
  82. - dropped R/BR: texlive
  83. * Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-3.svn1302
  84. - source snapshot r1302
  85. - added BuildRequires: lua-devel
  86. * Fri Mar 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-2.svn950
  87. - rebuild with hunspell-devel
  88. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950
  89. - source snapshot r950
  90. - updated pdfplatex.sh
  91. - support SyncTeX
  92. - TeX Live 2011
  93. * Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
  94. - new upstream release
  95. - added BuildRequires: texlive-common
  96. - added Requires: texlive-common
  97. * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
  98. - added some Japanese templates
  99. * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
  100. - new upstream release
  101. * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
  102. - new upstream release
  103. * Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
  104. - source snapshot r724
  105. * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
  106. - source snapshot r671
  107. - dropped obsolete/upstreamed patches
  108. - added texworks-snapshot.sh
  109. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
  110. - initial build
  111. * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
  112. - Move to menu category 'Office'
  113. - License tag revised to 'GPLv2+'
  114. - Initial import to Fedora repositories
  115. * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
  116. - Fix some strange characters in README
  117. - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
  118. problem
  119. * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
  120. - Initial packaging