[521] | 1 | %define _noVersionedDependencies 1 |
---|
[6392] | 2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'Requires(pre):%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
[521] | 3 | %define emacsen_pkgdir /usr/lib/emacsen-common/packages |
---|
| 4 | %define origname pod-mode |
---|
| 5 | %define origver 0.5 |
---|
| 6 | |
---|
| 7 | Summary: A major mode for editing .pod-files in (X)Emacs |
---|
| 8 | Summary(ja): (X)Emacs で POD ファイルを編集するためのメジャーモード |
---|
| 9 | Name: %{origname} |
---|
| 10 | Version: %{origver} |
---|
[6392] | 11 | Release: 3%{?_dist_release} |
---|
[521] | 12 | |
---|
| 13 | Source0: http://search.cpan.org/CPAN/authors/id/S/SC/SCHWIGON/pod-mode/pod-mode-%{version}.tgz |
---|
| 14 | Source1: %{origname}-install.sh |
---|
| 15 | Source2: %{origname}-remove.sh |
---|
| 16 | Source3: vine-default-pod-mode.el |
---|
| 17 | Source4: pod-mode-init.el |
---|
| 18 | |
---|
| 19 | License: GPL |
---|
| 20 | Group: Applications/Editors/Emacs |
---|
| 21 | URL: http://search.cpan.org/author/SCHWIGON/pod-mode/ |
---|
| 22 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 23 | BuildArch: noarch |
---|
| 24 | |
---|
| 25 | Requires: emacsen |
---|
[6392] | 26 | Requires(pre): emacsen |
---|
[521] | 27 | %prereq_ge emacsen-common |
---|
| 28 | |
---|
| 29 | Distribution: Vine Linux |
---|
| 30 | Vendor: Project Vine |
---|
| 31 | |
---|
| 32 | |
---|
| 33 | %description |
---|
| 34 | pod-mode.el - A major mode for editing .pod-files in (X)Emacs |
---|
| 35 | |
---|
| 36 | POD is the Plain Old Documentation format of Perl. |
---|
| 37 | This mode mainly defines a grammar for syntax highlighting. |
---|
| 38 | |
---|
| 39 | %description -l ja |
---|
| 40 | pod-mode.el - (X)Emacs で POD ファイルを編集するためのメジャー |
---|
| 41 | モード |
---|
| 42 | |
---|
| 43 | POD は Plain Old Documentation format of Perl という意味です。 |
---|
| 44 | このモードは、構文ハイライトのための文法を定義している程度です。 |
---|
| 45 | |
---|
| 46 | %prep |
---|
| 47 | |
---|
| 48 | %setup -q -n %{origname}-%{origver} |
---|
| 49 | |
---|
| 50 | %build |
---|
| 51 | |
---|
| 52 | %install |
---|
| 53 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 54 | [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot} |
---|
| 55 | |
---|
| 56 | mkdir -p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/packages |
---|
| 57 | mkdir -p %{buildroot}%{emacsen_pkgdir}/install |
---|
| 58 | mkdir -p %{buildroot}%{emacsen_pkgdir}/remove |
---|
| 59 | |
---|
| 60 | # |
---|
| 61 | # install el files |
---|
| 62 | # |
---|
| 63 | |
---|
| 64 | cp -p *.el %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 65 | |
---|
| 66 | |
---|
| 67 | # |
---|
| 68 | # install script (bytecompile el and install elc , remove) |
---|
| 69 | # |
---|
| 70 | |
---|
| 71 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
| 72 | |
---|
| 73 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %clean |
---|
| 77 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
| 78 | |
---|
| 79 | %post |
---|
| 80 | # |
---|
| 81 | # bytecompile and install |
---|
| 82 | # |
---|
| 83 | if [ "$1" = 2 ]; then |
---|
| 84 | |
---|
| 85 | %_emacsenPackageRemove %{origname} |
---|
| 86 | |
---|
| 87 | fi |
---|
| 88 | |
---|
| 89 | %_addemacsenlist %{origname} |
---|
| 90 | |
---|
| 91 | %_emacsenPackageInstall %{origname} |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %preun |
---|
| 95 | if [ "$1" = 0 ]; then |
---|
| 96 | |
---|
| 97 | %_emacsenPackageRemove %{origname} |
---|
| 98 | |
---|
| 99 | %_removeemacsenlist %{origname} |
---|
| 100 | |
---|
| 101 | fi |
---|
| 102 | |
---|
| 103 | |
---|
| 104 | %files |
---|
| 105 | %defattr(-,root,root) |
---|
| 106 | %doc README ChangeLog |
---|
| 107 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
| 108 | %{emacsen_pkgdir}/install/%{origname} |
---|
| 109 | %{emacsen_pkgdir}/remove/%{origname} |
---|
| 110 | |
---|
| 111 | |
---|
| 112 | %changelog |
---|
[6392] | 113 | * Wed Jun 20 2012 Yoji TOYODA <bsyamato@sea.plala.or.jp> 0.5-3 |
---|
| 114 | - rebuild with Vine6 environment |
---|
| 115 | |
---|
[750] | 116 | * Tue Apr 6 2010 IWAI, Masaharu <iwai@alib.jp> 0.5-2 |
---|
| 117 | - correct output message on js2-mode-install.sh (SOURCE1) |
---|
| 118 | |
---|
[521] | 119 | * Mon Dec 21 2009 IWAI, Masaharu <iwai@alib.jp> 0.5-1 |
---|
| 120 | - new upstream release |
---|
| 121 | - apply vine-default |
---|
| 122 | - add vine-default-pod-mode.el (Source3) |
---|
| 123 | - add pod-mode-init.el (Source4) |
---|
| 124 | - update pod-mode-{install,remove}.sh |
---|
| 125 | |
---|
| 126 | * Thu Oct 09 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-1vl5 |
---|
| 127 | - applied new versioning policy, spec in utf-8 |
---|
| 128 | - added macro %%emacsen_pkgdir |
---|
| 129 | |
---|
| 130 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.4-0vl1 |
---|
| 131 | - updated to 0.4 |
---|
| 132 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
| 133 | - s/Copyright/License/ |
---|
| 134 | |
---|
| 135 | * Fri Oct 22 2004 IWAI, Masaharu <iwai@alib.jp> 0.2-0vl2 |
---|
| 136 | - add Japanese description |
---|
| 137 | |
---|
| 138 | * Sat May 24 2003 IWAI Masaharu <iwai@alib.jp> 0.2-0vl1 |
---|
| 139 | - first release for Vine Linux |
---|