c-sig-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115
  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 3.8
  5. %define origname c-sig
  6. Name: %{origname}
  7. Version: %{origver}
  8. Summary: c-sig is an emacs lisp aprication to insert signature wisely.
  9. Summary(ja): c-sig とは emacs 上で動く signature の選択挿入プログラムです
  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.threeweb.ad.jp/~kshibata/c-sig/programs/%{name}.%{version}.tar.gz
  16. Source10: %{origname}-install.sh
  17. Source11: %{origname}-remove.sh
  18. #Patch:
  19. Packager: Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  20. URL: http://www.threeweb.ad.jp/~kshibata/c-sig/index.shtml
  21. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  22. BuildArch: noarch
  23. PreReq: emacsen
  24. %prereq_ge emacsen-common
  25. %description
  26. c-sig is an emacs lisp aprication to insert signature wisely.
  27. %description -l ja
  28. c-sig とは emacs 上で動く signature の選択挿入プログラムです。
  29. 最初は普通の「signature の選択挿入す る lisp」でした。しかし
  30. 「あんなこともしたい」、「こんなこともしたい」 といろいろな人の
  31. 意見を採り入れているうちに「ウルトラ・スーパー・デラッ クスな
  32. signature の挿入プログラム」になってしまいました。
  33. %prep
  34. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  35. %setup -c %{origname}.%{origver}
  36. #%patch -p1
  37. %install
  38. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  39. [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
  40. mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname}
  41. #mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/install
  42. #mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/remove
  43. mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/install
  44. mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/remove
  45. cp -a *.el ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{origname}
  46. %_installemacsenscript %{origname} %{SOURCE10}
  47. %_removeemacsenscript %{origname} %{SOURCE11}
  48. %clean
  49. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  50. %post
  51. ## bytecompile el and install elc
  52. if [ "$1" = 2 ] ; then
  53. %_emacsenPackageRemove %{origname}
  54. fi
  55. %_addemacsenlist %{origname}
  56. %_emacsenPackageInstall %{origname}
  57. %preun
  58. if [ "$1" = 0 ] ; then
  59. %_emacsenPackageRemove %{origname}
  60. %_removeemacsenlist %{origname}
  61. fi
  62. %files
  63. %defattr(-,root,root)
  64. %doc c-sig-eng.faq c-sig-eng.man c-sig-jp.faq c-sig-jp.man whats.new
  65. %{_datadir}/emacs/site-lisp/%{origname}
  66. #%{_libdir}/emacsen-common/packages/install/%{origname}
  67. #%{_libdir}/emacsen-common/packages/remove/%{origname}
  68. %{emacsen_pkgdir}/install/%{origname}
  69. %{emacsen_pkgdir}/remove/%{origname}
  70. %changelog
  71. * Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 3.8-1vl5
  72. - applied new versioning policy, spec in utf-8
  73. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.8-0vl3
  74. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  75. - s/Copyright/License/
  76. * Wed Jun 25 2003 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 3.8-0vl2
  77. - rebuild.
  78. * Sun Mar 24 2002 Hiroaki Irokawa <irorin@terra.dti.ne.jp>
  79. - 3.8-0vl1
  80. - 1st for VineSeed.