develock-vl.spec 3.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  1. %define _noVersionedDependencies 1
  2. %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1 | grep -v "is not")
  3. %define emacsen_pkgdir /usr/lib/emacsen-common/packages
  4. %define origver 0.35
  5. %define origname develock
  6. Name: %{origname}
  7. Version: %{origver}
  8. Summary: (develock)additional font-lock keywords for the developers
  9. Summary(ja): (develock)開発者のための追加 font-lock キーワード群
  10. Release: 1%{?_dist_release}
  11. License: GPL
  12. Distribution: Vine Linux
  13. Vendor: Project Vine
  14. Group: Applications/Editors/Emacs
  15. Source0: http://www.jpl.org/elips/%{origname}.el.gz
  16. Source10: %{origname}-install.sh
  17. Source11: %{origname}-remove.sh
  18. Source12: %{origname}-init.el
  19. #Patch:
  20. Packager: Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  21. URL: http://www.jpl.org/elips/
  22. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  23. BuildArch: noarch
  24. PreReq: emacsen
  25. %prereq_ge emacsen-common
  26. %description
  27. Develock is a minor mode which provides the ability to make font-
  28. lock highlight leading and trailing whitespace, long lines and
  29. oddities in the file buffer for Lisp modes, ChangeLog mode, Texinfo
  30. mode, C modes, Java mode, Jde-mode , CPerl mode, Perl mode, HTML
  31. modes and some Mail modes.
  32. %description -l ja
  33. Develockは、LISP mode, ChangeLog mode, Texinfo mode, C mode, Java mode,
  34. Jde-mode, CPerl mode, Perl mode, HTML mode, いくつかの Mail mode において
  35. 長過ぎる行、(インデントしてない)スペース等を強調表示するマイナーモードです。
  36. %prep
  37. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  38. #%setup -c %{origname}.%{origver}
  39. rm -rf %{origname}-%{origver}
  40. mkdir -p %{origname}-%{origver}
  41. cd %{origname}-%{origver}
  42. cp %{SOURCE0} .
  43. gunzip develock.el.gz
  44. #%patch -p1
  45. %install
  46. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  47. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  48. mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  49. #mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install
  50. #mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove
  51. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
  52. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
  53. cp -a %{origname}-%{origver}/develock.el ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname}
  54. cp -a %{SOURCE12} ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname}
  55. %_installemacsenscript %{origname} %{SOURCE10}
  56. %_removeemacsenscript %{origname} %{SOURCE11}
  57. %clean
  58. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  59. %post
  60. ## bytecompile el and install elc
  61. if [ "$1" = 2 ] ; then
  62. %_emacsenPackageRemove %{origname}
  63. fi
  64. %_addemacsenlist %{origname}
  65. %_emacsenPackageInstall %{origname}
  66. %preun
  67. if [ "$1" = 0 ] ; then
  68. %_emacsenPackageRemove %{origname}
  69. %_removeemacsenlist %{origname}
  70. fi
  71. %files
  72. %defattr(-,root,root)
  73. %{_datadir}/emacs/site-lisp/%{origname}
  74. #%{_libdir}/emacsen-common/packages/install/%{origname}
  75. #%{_libdir}/emacsen-common/packages/remove/%{origname}
  76. %{emacsen_pkgdir}/install/%{origname}
  77. %{emacsen_pkgdir}/remove/%{origname}
  78. %changelog
  79. * Sun Sep 21 2008 Shu KONNO <owa@bg.wakwak.com> 0.35-1vl5
  80. - applied new versioning policy, spec in utf-8
  81. * Tue Nov 27 2007 IWAI, Masaharu <iwai@alib.jp> 0.35-0vl1
  82. - new upstream release
  83. * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.26-0vl2
  84. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  85. * Thu May 19 2005 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.26-0vl1
  86. - 1st built for VineSeed