|
@@ -2,22 +2,31 @@
|
|
# (1) Data definition
|
|
# (1) Data definition
|
|
# ----------------------------------------------------------
|
|
# ----------------------------------------------------------
|
|
|
|
|
|
-Summary: The starttls provides STARTTLS extensions for emacs.
|
|
+Summary: The starttls provides STARTTLS extensions for emacs.
|
|
-Summary(ja): emacs 用の STARTTLS 拡張パッケージ
|
|
+Summary(ja): emacs 用の STARTTLS 拡張パッケージ
|
|
-Name: starttls
|
|
+Name: starttls
|
|
-Version: 0.9
|
|
+Version: 0.10
|
|
-Release: 2%{?_dist_release}
|
|
+Release: 1%{?_dist_release}
|
|
-Source: starttls-%{version}.tar.gz
|
|
+Source0: ftp://ftp.opaopa.org/pub/elisp/starttls-%{version}.tar.gz
|
|
-URL: ftp://ftp.opaopa.org/pub/elisp/
|
|
+Source1: %{name}-install.sh
|
|
-License: GPL
|
|
+Source2: %{name}-remove.sh
|
|
-Group: Applications/Editors/Emacs
|
|
+Source3: %{name}-init.el
|
|
-Packager: Takashi `Muneharu' SUGIMOTO <mailto:muneharu@raug.net>
|
|
+URL: ftp://ftp.opaopa.org/pub/elisp/
|
|
-
|
|
+License: GPL
|
|
-BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
+Group: Applications/Editors/Emacs
|
|
-Prefix: %{_prefix}
|
|
+
|
|
-
|
|
+BuildRoot: %{_tmppath}/%{name}-%{version}-root
|
|
-Requires: emacs, openssl
|
|
+Prefix: %{_prefix}
|
|
-BuildRequires: emacs, openssl-devel
|
|
+
|
|
|
|
+Provides: starttls-el = %{version}-%{release}
|
|
|
|
+Requires: emacsen
|
|
|
|
+Requires(post,preun): emacsen, emacsen-common
|
|
|
|
+BuildRequires: openssl-devel
|
|
|
|
+
|
|
|
|
+Vendor: Project Vine
|
|
|
|
+Distribution: Vine Linux
|
|
|
|
+Packager: shaolin
|
|
|
|
+#Packager: Takashi `Muneharu' SUGIMOTO <mailto:muneharu@raug.net>
|
|
|
|
|
|
|
|
|
|
%description
|
|
%description
|
|
@@ -35,22 +44,53 @@ starttls は emacs 用の STARTTLS 拡張を提供します。
|
|
# (2) Scripts
|
|
# (2) Scripts
|
|
# ----------------------------------------------------------
|
|
# ----------------------------------------------------------
|
|
|
|
|
|
-%prep -q
|
|
+%prep
|
|
-#%setup -n ${RPM_PACKAGE_NAME}-${RPM_PACKAGE_VERSION}
|
|
+%setup -q -n %{name}-%{version}
|
|
-%setup -n %{name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
%build
|
|
./configure --prefix=${RPM_BUILD_ROOT}/usr
|
|
./configure --prefix=${RPM_BUILD_ROOT}/usr
|
|
-make
|
|
+# compile binary only
|
|
-make check
|
|
+make starttls
|
|
|
|
|
|
%install
|
|
%install
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
+[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
-make install
|
|
+
|
|
|
|
+# install binary only
|
|
|
|
+make install-exec
|
|
|
|
+
|
|
|
|
+mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}
|
|
|
|
+mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install
|
|
|
|
+mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove
|
|
|
|
+
|
|
|
|
+cp starttls.el %{SOURCE3} \
|
|
|
|
+ ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
|
|
|
|
+
|
|
|
|
+%_installemacsenscript %{name} %{SOURCE1}
|
|
|
|
+
|
|
|
|
+%_removeemacsenscript %{name} %{SOURCE2}
|
|
|
|
|
|
%clean
|
|
%clean
|
|
-rm -rf ${RPM_BUILD_ROOT}
|
|
+[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
+
|
|
|
|
+%post
|
|
|
|
+if [ "$1" = 2 ]; then
|
|
|
|
|
|
|
|
+%_emacsenPackageRemove %{name}
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
+
|
|
|
|
+%_addemacsenlist %{name}
|
|
|
|
+
|
|
|
|
+%_emacsenPackageInstall %{name}
|
|
|
|
+
|
|
|
|
+%preun
|
|
|
|
+if [ "$1" = 0 ]; then
|
|
|
|
+
|
|
|
|
+%_emacsenPackageRemove %{name}
|
|
|
|
+
|
|
|
|
+%_removeemacsenlist %{name}
|
|
|
|
+
|
|
|
|
+fi
|
|
|
|
|
|
# ----------------------------------------------------------
|
|
# ----------------------------------------------------------
|
|
# (3) File Lists
|
|
# (3) File Lists
|
|
@@ -58,15 +98,11 @@ rm -rf ${RPM_BUILD_ROOT}
|
|
|
|
|
|
%files
|
|
%files
|
|
%defattr(-,root,root)
|
|
%defattr(-,root,root)
|
|
-%doc README AUTHORS COPYING INSTALL ChangeLog NEWS
|
|
+%doc AUTHORS COPYING ChangeLog INSTALL NEWS README
|
|
-#%dir /usr/bin/
|
|
|
|
-#%dir /usr/share/emacs/site-lisp/
|
|
|
|
%{_bindir}/starttls
|
|
%{_bindir}/starttls
|
|
-%{_datadir}/emacs/site-lisp/starttls.el
|
|
+%{_datadir}/emacs/site-lisp/%{name}/
|
|
-%{_datadir}/emacs/site-lisp/starttls.elc
|
|
+%{emacsen_pkgdir}/install/%{name}
|
|
-#/usr/bin/starttls
|
|
+%{emacsen_pkgdir}/remove/%{name}
|
|
-#/usr/share/emacs/site-lisp/starttls.el
|
|
|
|
-#/usr/share/emacs/site-lisp/starttls.elc
|
|
|
|
|
|
|
|
|
|
|
|
# ----------------------------------------------------------
|
|
# ----------------------------------------------------------
|
|
@@ -74,6 +110,10 @@ rm -rf ${RPM_BUILD_ROOT}
|
|
# ----------------------------------------------------------
|
|
# ----------------------------------------------------------
|
|
|
|
|
|
%changelog
|
|
%changelog
|
|
|
|
+* Wed Aug 24 2011 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 0.10-1
|
|
|
|
+- updated to the newest release
|
|
|
|
+- emacsenize
|
|
|
|
+
|
|
* Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-2
|
|
* Sun Feb 06 2011 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.9-2
|
|
- rebuild with openssl-1.0.0c
|
|
- rebuild with openssl-1.0.0c
|
|
|
|
|