xdvi-search-el-vl.spec 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104
  1. %define pkgname xdvik
  2. %define revision 1.37
  3. Summary: TeX src-special files for emacsen
  4. Summary(ja): TeX src-special を Emacsen 上で使用するための elisp
  5. Name: xdvi-search-el
  6. Version: 2009
  7. Release: 2%{?_dist_release}
  8. ## This file xdvi-search.el is contained in TeX Live 2009
  9. Source0: xdvi-search.el
  10. Source100: %{pkgname}-install.sh
  11. Source101: %{pkgname}-remove.sh
  12. Source102: %{pkgname}-init.el
  13. URL: http://xdvi.sourceforge.jp/
  14. License: GPL
  15. Group: Applications/Editors/Emacs
  16. Requires(post,preun): emacsen-common
  17. Obsoletes: texlive-xdvi-search-el <= 2009
  18. Obsoletes: xdvik-search <= 22.84.14
  19. BuildArch: noarch
  20. Buildroot: %{_tmppath}/%{name}-root
  21. Vendor: Project Vine
  22. Distribution: Vine Linux
  23. %description
  24. TeX src-special files for emacsen
  25. [See]
  26. http://xdvi.sourceforge.net/xdvi-search.el
  27. %description -l ja
  28. TeX src-special を Emacsen上で使用するための elisp です。
  29. [参照]
  30. http://xdvi.sourceforge.net/xdvi-search.el
  31. http://www.nn.iij4u.or.jp/~tutimura/tex/src-special.html
  32. %prep
  33. %build
  34. %install
  35. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %__rm -rf $RPM_BUILD_ROOT
  36. %__mkdir_p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}
  37. %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/install
  38. %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/remove
  39. %__install -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/
  40. %__install -m 644 %{SOURCE102} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/
  41. # install script( bytecompile el and install elc , remove )
  42. %_installemacsenscript %{pkgname} %{SOURCE100}
  43. %_removeemacsenscript %{pkgname} %{SOURCE101}
  44. %post
  45. if [ "$1" = 2 ]; then
  46. %_emacsenPackageRemove %{pkgname}
  47. fi
  48. %_addemacsenlist %{pkgname}
  49. %_emacsenPackageInstall %{pkgname}
  50. %preun
  51. if [ "$1" = 0 ]; then
  52. %_emacsenPackageRemove %{pkgname}
  53. %_removeemacsenlist %{pkgname}
  54. fi
  55. %clean
  56. %__rm -rf %{buildroot}
  57. %files
  58. %defattr(-,root,root)
  59. %{_datadir}/emacs/site-lisp/%{pkgname}
  60. %{_prefix}/lib/emacsen-common/packages/install/%{pkgname}
  61. %{_prefix}/lib/emacsen-common/packages/remove/%{pkgname}
  62. %changelog
  63. * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2
  64. - added Obsoletes: texlive-xdvi-search-el <= 2009
  65. - for TeX Live 2009 of VinePlus/5, supported texlive-xdvi-search-el
  66. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  67. - ported from xdvik-22.84.14-6
  68. - TeX Live 2009