[521] | 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 | |
---|
| 5 | %define origver 0.35 |
---|
| 6 | %define origname develock |
---|
| 7 | |
---|
| 8 | Name: %{origname} |
---|
| 9 | Version: %{origver} |
---|
| 10 | Summary: (develock)additional font-lock keywords for the developers |
---|
| 11 | Summary(ja): (develock)開発者のための追加 font-lock キーワード群 |
---|
| 12 | Release: 1%{?_dist_release} |
---|
| 13 | License: GPL |
---|
| 14 | Distribution: Vine Linux |
---|
| 15 | Vendor: Project Vine |
---|
| 16 | Group: Applications/Editors/Emacs |
---|
| 17 | Source0: http://www.jpl.org/elips/%{origname}.el.gz |
---|
| 18 | Source10: %{origname}-install.sh |
---|
| 19 | Source11: %{origname}-remove.sh |
---|
| 20 | Source12: %{origname}-init.el |
---|
| 21 | #Patch: |
---|
| 22 | |
---|
| 23 | Packager: Hiroaki Irokawa <irorin@terra.dti.ne.jp> |
---|
| 24 | URL: http://www.jpl.org/elips/ |
---|
| 25 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
| 26 | BuildArch: noarch |
---|
| 27 | |
---|
| 28 | PreReq: emacsen |
---|
| 29 | %prereq_ge emacsen-common |
---|
| 30 | |
---|
| 31 | |
---|
| 32 | %description |
---|
| 33 | Develock is a minor mode which provides the ability to make font- |
---|
| 34 | lock highlight leading and trailing whitespace, long lines and |
---|
| 35 | oddities in the file buffer for Lisp modes, ChangeLog mode, Texinfo |
---|
| 36 | mode, C modes, Java mode, Jde-mode , CPerl mode, Perl mode, HTML |
---|
| 37 | modes and some Mail modes. |
---|
| 38 | |
---|
| 39 | %description -l ja |
---|
| 40 | Develockは、LISP mode, ChangeLog mode, Texinfo mode, C mode, Java mode, |
---|
| 41 | Jde-mode, CPerl mode, Perl mode, HTML mode, いくつかの Mail mode において |
---|
| 42 | 長過ぎる行、(インデントしてない)スペース等を強調表示するマイナーモードです。 |
---|
| 43 | |
---|
| 44 | %prep |
---|
| 45 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 46 | |
---|
| 47 | #%setup -c %{origname}.%{origver} |
---|
| 48 | rm -rf %{origname}-%{origver} |
---|
| 49 | mkdir -p %{origname}-%{origver} |
---|
| 50 | cd %{origname}-%{origver} |
---|
| 51 | cp %{SOURCE0} . |
---|
| 52 | gunzip develock.el.gz |
---|
| 53 | #%patch -p1 |
---|
| 54 | |
---|
| 55 | |
---|
| 56 | %install |
---|
| 57 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 58 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
---|
| 59 | |
---|
| 60 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 61 | #mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install |
---|
| 62 | #mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove |
---|
| 63 | mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/install |
---|
| 64 | mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/remove |
---|
| 65 | |
---|
| 66 | cp -a %{origname}-%{origver}/develock.el ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{origname} |
---|
| 67 | cp -a %{SOURCE12} ${RPM_BUILD_ROOT}/usr/share/emacs/site-lisp/%{origname} |
---|
| 68 | |
---|
| 69 | |
---|
| 70 | %_installemacsenscript %{origname} %{SOURCE10} |
---|
| 71 | |
---|
| 72 | %_removeemacsenscript %{origname} %{SOURCE11} |
---|
| 73 | |
---|
| 74 | |
---|
| 75 | %clean |
---|
| 76 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
| 77 | |
---|
| 78 | %post |
---|
| 79 | |
---|
| 80 | ## bytecompile el and install elc |
---|
| 81 | |
---|
| 82 | if [ "$1" = 2 ] ; then |
---|
| 83 | |
---|
| 84 | %_emacsenPackageRemove %{origname} |
---|
| 85 | |
---|
| 86 | fi |
---|
| 87 | |
---|
| 88 | %_addemacsenlist %{origname} |
---|
| 89 | |
---|
| 90 | %_emacsenPackageInstall %{origname} |
---|
| 91 | |
---|
| 92 | |
---|
| 93 | |
---|
| 94 | %preun |
---|
| 95 | |
---|
| 96 | if [ "$1" = 0 ] ; then |
---|
| 97 | |
---|
| 98 | %_emacsenPackageRemove %{origname} |
---|
| 99 | |
---|
| 100 | %_removeemacsenlist %{origname} |
---|
| 101 | |
---|
| 102 | fi |
---|
| 103 | |
---|
| 104 | |
---|
| 105 | %files |
---|
| 106 | %defattr(-,root,root) |
---|
| 107 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
| 108 | #%{_libdir}/emacsen-common/packages/install/%{origname} |
---|
| 109 | #%{_libdir}/emacsen-common/packages/remove/%{origname} |
---|
| 110 | %{emacsen_pkgdir}/install/%{origname} |
---|
| 111 | %{emacsen_pkgdir}/remove/%{origname} |
---|
| 112 | |
---|
| 113 | %changelog |
---|
| 114 | * Sun Sep 21 2008 Shu KONNO <owa@bg.wakwak.com> 0.35-1vl5 |
---|
| 115 | - applied new versioning policy, spec in utf-8 |
---|
| 116 | |
---|
| 117 | * Tue Nov 27 2007 IWAI, Masaharu <iwai@alib.jp> 0.35-0vl1 |
---|
| 118 | - new upstream release |
---|
| 119 | |
---|
| 120 | * Wed Sep 13 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 0.26-0vl2 |
---|
| 121 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
| 122 | |
---|
| 123 | * Thu May 19 2005 Hiroaki Irokawa <irorin@terra.dti.ne.jp> 0.26-0vl1 |
---|
| 124 | - 1st built for VineSeed |
---|