starttls-vl.spec 3.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132
  1. # ----------------------------------------------------------
  2. # (1) Data definition
  3. # ----------------------------------------------------------
  4. Summary: The starttls provides STARTTLS extensions for emacs.
  5. Summary(ja): emacs 用の STARTTLS 拡張パッケージ
  6. Name: starttls
  7. Version: 0.10
  8. Release: 1%{?_dist_release}
  9. Source0: ftp://ftp.opaopa.org/pub/elisp/starttls-%{version}.tar.gz
  10. Source1: %{name}-install.sh
  11. Source2: %{name}-remove.sh
  12. Source3: %{name}-init.el
  13. URL: ftp://ftp.opaopa.org/pub/elisp/
  14. License: GPL
  15. Group: Applications/Editors/Emacs
  16. BuildRoot: %{_tmppath}/%{name}-%{version}-root
  17. Prefix: %{_prefix}
  18. Provides: starttls-el = %{version}-%{release}
  19. Requires: emacsen
  20. Requires(post,preun): emacsen, emacsen-common
  21. BuildRequires: openssl-devel
  22. Vendor: Project Vine
  23. Distribution: Vine Linux
  24. Packager: shaolin
  25. #Packager: Takashi `Muneharu' SUGIMOTO <mailto:muneharu@raug.net>
  26. %description
  27. The starttls provides STARTTLS extensitons for emacs.
  28. Several elisp applications can use secure connection with openssl.
  29. %description -l ja
  30. starttls は emacs 用の STARTTLS 拡張を提供します。
  31. いくつかの elisp アプリケーションで openssl を利用した
  32. 安全な接続を使うことができるようになります。
  33. # ----------------------------------------------------------
  34. # (2) Scripts
  35. # ----------------------------------------------------------
  36. %prep
  37. %setup -q -n %{name}-%{version}
  38. %build
  39. ./configure --prefix=${RPM_BUILD_ROOT}/usr
  40. # compile binary only
  41. make starttls
  42. %install
  43. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  44. # install binary only
  45. make install-exec
  46. mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
  47. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
  48. mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
  49. cp starttls.el %{SOURCE3} \
  50. ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
  51. %_installemacsenscript %{name} %{SOURCE1}
  52. %_removeemacsenscript %{name} %{SOURCE2}
  53. %clean
  54. [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
  55. %post
  56. if [ "$1" = 2 ]; then
  57. %_emacsenPackageRemove %{name}
  58. fi
  59. %_addemacsenlist %{name}
  60. %_emacsenPackageInstall %{name}
  61. %preun
  62. if [ "$1" = 0 ]; then
  63. %_emacsenPackageRemove %{name}
  64. %_removeemacsenlist %{name}
  65. fi
  66. # ----------------------------------------------------------
  67. # (3) File Lists
  68. # ----------------------------------------------------------
  69. %files
  70. %defattr(-,root,root)
  71. %doc AUTHORS COPYING ChangeLog INSTALL NEWS README
  72. %{_bindir}/starttls
  73. %{_datadir}/emacs/site-lisp/%{name}/
  74. %{emacsen_pkgdir}/install/%{name}
  75. %{emacsen_pkgdir}/remove/%{name}
  76. # ----------------------------------------------------------
  77. # (4) Change Log
  78. # ----------------------------------------------------------
  79. %changelog
  80. * Wed Aug 24 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.10-1
  81. - updated to the newest release
  82. - emacsenize
  83. * Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-2
  84. - rebuild with openssl-1.0.0c
  85. * Sat Oct 11 2008 Shu KONNO <owa@bg.wakwak.com> 0.9-1vl5
  86. - applied new versioning policy, spec in utf-8
  87. * Sun Jun 3 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl3
  88. - rebuilt with openssl-0.9.8e
  89. * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.9-0vl2
  90. - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163>
  91. - s/Copyright/License/
  92. * Mon Aug 19 2002 Takashi `Muneharu' Sugimoto
  93. - 0.9-0vl1