[778] | 1 | %define origver 0.15 |
---|
[3521] | 2 | %define rel 2 |
---|
[778] | 3 | %define svn_rev 8462 |
---|
| 4 | |
---|
| 5 | %define _noVersionedDependencies 1 |
---|
| 6 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
| 7 | %define origname simple-hatena-mode |
---|
| 8 | |
---|
| 9 | Summary: Emacs interface to Hatena::Diary Writer |
---|
| 10 | Summary(ja): はてなダイアリーライターの Emacs インタフェース |
---|
| 11 | Name: %{origname} |
---|
| 12 | Version: %{origver} |
---|
| 13 | Release: %{rel}.svn%{svn_rev}%{?_dist_release} |
---|
| 14 | |
---|
| 15 | Source0: http://svn.coderepos.org/share/lang/elisp/simple-hatena-mode/trunk/simple-hatena-mode.el |
---|
| 16 | Source1: %{origname}-install.sh |
---|
| 17 | Source2: %{origname}-remove.sh |
---|
| 18 | Source3: vine-default-%{origname}.el |
---|
| 19 | Source4: %{origname}-init.el |
---|
| 20 | Source5: http://www.gnu.org/licenses/gpl-2.0.txt |
---|
| 21 | |
---|
| 22 | License: GPLv2+ |
---|
| 23 | Group: Applications/Editors/Emacs |
---|
| 24 | URL: http://coderepos.org/share/wiki/SimpleHatenaMode |
---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 26 | BuildArch: noarch |
---|
| 27 | |
---|
| 28 | Requires: emacsen |
---|
| 29 | PreReq: emacsen |
---|
| 30 | %prereq_ge emacsen-common |
---|
| 31 | |
---|
| 32 | Requires: hatena-diary-writer |
---|
| 33 | Requires: html-helper-mode |
---|
| 34 | |
---|
| 35 | Distribution: Vine Linux |
---|
| 36 | Vendor: Project Vine |
---|
| 37 | Packager: iwaim |
---|
| 38 | |
---|
| 39 | %description |
---|
| 40 | Emacs interface to Hatena::Diary Writer |
---|
| 41 | |
---|
| 42 | %description -l ja |
---|
| 43 | はてなダイアリーライターの Emacs インタフェース |
---|
| 44 | |
---|
| 45 | %prep |
---|
| 46 | |
---|
| 47 | %setup -q -T -c %{origname}-%{origver} |
---|
| 48 | %{__cp} -a %{SOURCE0} %{SOURCE5} . |
---|
| 49 | |
---|
| 50 | %install |
---|
| 51 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 52 | [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot} |
---|
| 53 | |
---|
| 54 | mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 55 | mkdir -p %{buildroot}%{emacsen_pkgdir}/install |
---|
| 56 | mkdir -p %{buildroot}%{emacsen_pkgdir}/remove |
---|
| 57 | |
---|
| 58 | # |
---|
| 59 | # install el files |
---|
| 60 | # |
---|
| 61 | |
---|
| 62 | %{__cp} -p *.el %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 63 | |
---|
| 64 | |
---|
| 65 | # |
---|
| 66 | # install script (bytecompile el and install elc , remove) |
---|
| 67 | # |
---|
| 68 | |
---|
| 69 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
| 70 | |
---|
| 71 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
| 72 | |
---|
| 73 | |
---|
| 74 | %clean |
---|
| 75 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 76 | |
---|
| 77 | %post |
---|
| 78 | # |
---|
| 79 | # bytecompile and install |
---|
| 80 | # |
---|
| 81 | if [ "$1" = 2 ]; then |
---|
| 82 | |
---|
| 83 | %_emacsenPackageRemove %{origname} |
---|
| 84 | |
---|
| 85 | fi |
---|
| 86 | |
---|
| 87 | %_addemacsenlist %{origname} |
---|
| 88 | |
---|
| 89 | %_emacsenPackageInstall %{origname} |
---|
| 90 | |
---|
| 91 | |
---|
| 92 | %preun |
---|
| 93 | if [ "$1" = 0 ]; then |
---|
| 94 | |
---|
| 95 | %_emacsenPackageRemove %{origname} |
---|
| 96 | |
---|
| 97 | %_removeemacsenlist %{origname} |
---|
| 98 | |
---|
| 99 | fi |
---|
| 100 | |
---|
| 101 | |
---|
| 102 | %files |
---|
| 103 | %defattr(-,root,root) |
---|
| 104 | %doc gpl-2.0.txt |
---|
| 105 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
| 106 | %{emacsen_pkgdir}/install/%{origname} |
---|
| 107 | %{emacsen_pkgdir}/remove/%{origname} |
---|
| 108 | |
---|
| 109 | |
---|
| 110 | %changelog |
---|
[3521] | 111 | * Sun Apr 17 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.15-2.svn8462 |
---|
| 112 | - do not byte-compile simple-hatena-mode.el (simple-hatena-mode-install.sh) |
---|
| 113 | |
---|
[778] | 114 | * Wed Apr 07 2010 IWAI, Masaharu <iwai@alib.jp> 0.15-1.svn8462 |
---|
| 115 | - first release for Vine Linux |
---|