[1534] | 1 | %define pkgname xdvik |
---|
| 2 | %define revision 1.37 |
---|
| 3 | |
---|
| 4 | Summary: TeX src-special files for emacsen |
---|
| 5 | Summary(ja): TeX src-special を Emacsen 上で使用するための elisp |
---|
| 6 | Name: xdvi-search-el |
---|
| 7 | Version: 2009 |
---|
[2503] | 8 | Release: 2%{?_dist_release} |
---|
[1534] | 9 | ## This file xdvi-search.el is contained in TeX Live 2009 |
---|
| 10 | Source0: xdvi-search.el |
---|
| 11 | |
---|
| 12 | Source100: %{pkgname}-install.sh |
---|
| 13 | Source101: %{pkgname}-remove.sh |
---|
| 14 | Source102: %{pkgname}-init.el |
---|
| 15 | |
---|
| 16 | URL: http://xdvi.sourceforge.jp/ |
---|
| 17 | |
---|
| 18 | License: GPL |
---|
| 19 | Group: Applications/Editors/Emacs |
---|
| 20 | Requires(post,preun): emacsen-common |
---|
| 21 | |
---|
[2503] | 22 | Obsoletes: texlive-xdvi-search-el <= 2009 |
---|
[1534] | 23 | Obsoletes: xdvik-search <= 22.84.14 |
---|
| 24 | |
---|
| 25 | BuildArch: noarch |
---|
| 26 | Buildroot: %{_tmppath}/%{name}-root |
---|
| 27 | |
---|
| 28 | Vendor: Project Vine |
---|
| 29 | Distribution: Vine Linux |
---|
| 30 | |
---|
| 31 | %description |
---|
| 32 | TeX src-special files for emacsen |
---|
| 33 | [See] |
---|
| 34 | http://xdvi.sourceforge.net/xdvi-search.el |
---|
| 35 | |
---|
| 36 | %description -l ja |
---|
| 37 | TeX src-special を Emacsen上で使用するための elisp です。 |
---|
| 38 | [参照] |
---|
| 39 | http://xdvi.sourceforge.net/xdvi-search.el |
---|
| 40 | http://www.nn.iij4u.or.jp/~tutimura/tex/src-special.html |
---|
| 41 | |
---|
| 42 | |
---|
| 43 | %prep |
---|
| 44 | |
---|
| 45 | %build |
---|
| 46 | |
---|
| 47 | %install |
---|
| 48 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %__rm -rf $RPM_BUILD_ROOT |
---|
| 49 | |
---|
| 50 | %__mkdir_p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname} |
---|
| 51 | %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/install |
---|
| 52 | %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/remove |
---|
| 53 | |
---|
| 54 | %__install -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/ |
---|
| 55 | %__install -m 644 %{SOURCE102} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/ |
---|
| 56 | |
---|
| 57 | # install script( bytecompile el and install elc , remove ) |
---|
| 58 | |
---|
| 59 | %_installemacsenscript %{pkgname} %{SOURCE100} |
---|
| 60 | |
---|
| 61 | %_removeemacsenscript %{pkgname} %{SOURCE101} |
---|
| 62 | |
---|
| 63 | |
---|
| 64 | %post |
---|
| 65 | if [ "$1" = 2 ]; then |
---|
| 66 | |
---|
| 67 | %_emacsenPackageRemove %{pkgname} |
---|
| 68 | |
---|
| 69 | fi |
---|
| 70 | |
---|
| 71 | %_addemacsenlist %{pkgname} |
---|
| 72 | |
---|
| 73 | %_emacsenPackageInstall %{pkgname} |
---|
| 74 | |
---|
| 75 | |
---|
| 76 | %preun |
---|
| 77 | if [ "$1" = 0 ]; then |
---|
| 78 | |
---|
| 79 | %_emacsenPackageRemove %{pkgname} |
---|
| 80 | |
---|
| 81 | %_removeemacsenlist %{pkgname} |
---|
| 82 | |
---|
| 83 | fi |
---|
| 84 | |
---|
| 85 | |
---|
| 86 | |
---|
| 87 | %clean |
---|
| 88 | %__rm -rf %{buildroot} |
---|
| 89 | |
---|
| 90 | %files |
---|
| 91 | %defattr(-,root,root) |
---|
| 92 | %{_datadir}/emacs/site-lisp/%{pkgname} |
---|
| 93 | %{_prefix}/lib/emacsen-common/packages/install/%{pkgname} |
---|
| 94 | %{_prefix}/lib/emacsen-common/packages/remove/%{pkgname} |
---|
| 95 | |
---|
| 96 | |
---|
| 97 | %changelog |
---|
[2503] | 98 | * Sat Jan 15 2011 Munehiro Yamamoto <munepi@vinelinux.org> 2009-2 |
---|
| 99 | - added Obsoletes: texlive-xdvi-search-el <= 2009 |
---|
| 100 | - for TeX Live 2009 of VinePlus/5, supported texlive-xdvi-search-el |
---|
| 101 | |
---|
[1534] | 102 | * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1 |
---|
| 103 | - ported from xdvik-22.84.14-6 |
---|
| 104 | - TeX Live 2009 |
---|