texworks-vl.spec 4.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167
  1. #% global gitcommit 905382e
  2. ## Summary/Description adopted from Debian with modification
  3. Name: texworks
  4. Version: 0.6.1
  5. Release: 2%{?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 Jun 28 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-2
  74. - rebuilt with new toolchain
  75. * Tue May 10 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.6.1-1
  76. - new upstream release
  77. * Mon May 09 2016 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-7.git905382e
  78. - rebuild with poppler-0.43.0
  79. * Sun Jan 24 2016 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-6.git905382e
  80. - source snapshot git905382e
  81. * Thu May 28 2015 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-5.git046b6bb
  82. - source snapshot git046b6bb based on 0.4.6
  83. * Sat Nov 2 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-4.svn1302
  84. - dropped R/BR: texlive
  85. * Thu Sep 19 2013 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-3.svn1302
  86. - source snapshot r1302
  87. - added BuildRequires: lua-devel
  88. * Fri Mar 9 2012 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-2.svn950
  89. - rebuild with hunspell-devel
  90. * Sun Dec 4 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.5-1.svn950
  91. - source snapshot r950
  92. - updated pdfplatex.sh
  93. - support SyncTeX
  94. - TeX Live 2011
  95. * Fri Jul 01 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.3-1
  96. - new upstream release
  97. - added BuildRequires: texlive-common
  98. - added Requires: texlive-common
  99. * Sat Jun 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-2
  100. - added some Japanese templates
  101. * Sat Jun 18 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.1-1
  102. - new upstream release
  103. * Wed Mar 30 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4.0-1
  104. - new upstream release
  105. * Fri Dec 17 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn724
  106. - source snapshot r724
  107. * Sat Oct 02 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.3-1.svn671
  108. - source snapshot r671
  109. - dropped obsolete/upstreamed patches
  110. - added texworks-snapshot.sh
  111. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.2.3-1
  112. - initial build
  113. * Sat Apr 24 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-3
  114. - Move to menu category 'Office'
  115. - License tag revised to 'GPLv2+'
  116. - Initial import to Fedora repositories
  117. * Thu Apr 22 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-2
  118. - Fix some strange characters in README
  119. - Patch TeXworks.pro to use qmake mechanism to install files and fix DSO linking
  120. problem
  121. * Sun Apr 11 2010 Robin Lee <robinlee.sysu@gmail.com> - 0.2.3-1
  122. - Initial packaging