xdvi-search-el-vl.spec 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  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: 1%{?_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: xdvik-search <= 22.84.14
  18. BuildArch: noarch
  19. Buildroot: %{_tmppath}/%{name}-root
  20. Vendor: Project Vine
  21. Distribution: Vine Linux
  22. %description
  23. TeX src-special files for emacsen
  24. [See]
  25. http://xdvi.sourceforge.net/xdvi-search.el
  26. %description -l ja
  27. TeX src-special を Emacsen上で使用するための elisp です。
  28. [参照]
  29. http://xdvi.sourceforge.net/xdvi-search.el
  30. http://www.nn.iij4u.or.jp/~tutimura/tex/src-special.html
  31. %prep
  32. %build
  33. %install
  34. [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %__rm -rf $RPM_BUILD_ROOT
  35. %__mkdir_p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}
  36. %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/install
  37. %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/remove
  38. %__install -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/
  39. %__install -m 644 %{SOURCE102} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/
  40. # install script( bytecompile el and install elc , remove )
  41. %_installemacsenscript %{pkgname} %{SOURCE100}
  42. %_removeemacsenscript %{pkgname} %{SOURCE101}
  43. %post
  44. if [ "$1" = 2 ]; then
  45. %_emacsenPackageRemove %{pkgname}
  46. fi
  47. %_addemacsenlist %{pkgname}
  48. %_emacsenPackageInstall %{pkgname}
  49. %preun
  50. if [ "$1" = 0 ]; then
  51. %_emacsenPackageRemove %{pkgname}
  52. %_removeemacsenlist %{pkgname}
  53. fi
  54. %clean
  55. %__rm -rf %{buildroot}
  56. %files
  57. %defattr(-,root,root)
  58. %{_datadir}/emacs/site-lisp/%{pkgname}
  59. %{_prefix}/lib/emacsen-common/packages/install/%{pkgname}
  60. %{_prefix}/lib/emacsen-common/packages/remove/%{pkgname}
  61. %changelog
  62. * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1
  63. - ported from xdvik-22.84.14-6
  64. - TeX Live 2009