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 |
---|
8 | Release: 1%{?_dist_release} |
---|
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 | |
---|
22 | Obsoletes: xdvik-search <= 22.84.14 |
---|
23 | |
---|
24 | BuildArch: noarch |
---|
25 | Buildroot: %{_tmppath}/%{name}-root |
---|
26 | |
---|
27 | Vendor: Project Vine |
---|
28 | Distribution: Vine Linux |
---|
29 | |
---|
30 | %description |
---|
31 | TeX src-special files for emacsen |
---|
32 | [See] |
---|
33 | http://xdvi.sourceforge.net/xdvi-search.el |
---|
34 | |
---|
35 | %description -l ja |
---|
36 | TeX src-special を Emacsen上で使用するための elisp です。 |
---|
37 | [参照] |
---|
38 | http://xdvi.sourceforge.net/xdvi-search.el |
---|
39 | http://www.nn.iij4u.or.jp/~tutimura/tex/src-special.html |
---|
40 | |
---|
41 | |
---|
42 | %prep |
---|
43 | |
---|
44 | %build |
---|
45 | |
---|
46 | %install |
---|
47 | [ -n "$RPM_BUILD_ROOT" -a "$RPM_BUILD_ROOT" != / ] && %__rm -rf $RPM_BUILD_ROOT |
---|
48 | |
---|
49 | %__mkdir_p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname} |
---|
50 | %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/install |
---|
51 | %__mkdir_p ${RPM_BUILD_ROOT}%{_prefix}/lib/emacsen-common/packages/remove |
---|
52 | |
---|
53 | %__install -m 644 %{SOURCE0} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/ |
---|
54 | %__install -m 644 %{SOURCE102} $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{pkgname}/ |
---|
55 | |
---|
56 | # install script( bytecompile el and install elc , remove ) |
---|
57 | |
---|
58 | %_installemacsenscript %{pkgname} %{SOURCE100} |
---|
59 | |
---|
60 | %_removeemacsenscript %{pkgname} %{SOURCE101} |
---|
61 | |
---|
62 | |
---|
63 | %post |
---|
64 | if [ "$1" = 2 ]; then |
---|
65 | |
---|
66 | %_emacsenPackageRemove %{pkgname} |
---|
67 | |
---|
68 | fi |
---|
69 | |
---|
70 | %_addemacsenlist %{pkgname} |
---|
71 | |
---|
72 | %_emacsenPackageInstall %{pkgname} |
---|
73 | |
---|
74 | |
---|
75 | %preun |
---|
76 | if [ "$1" = 0 ]; then |
---|
77 | |
---|
78 | %_emacsenPackageRemove %{pkgname} |
---|
79 | |
---|
80 | %_removeemacsenlist %{pkgname} |
---|
81 | |
---|
82 | fi |
---|
83 | |
---|
84 | |
---|
85 | |
---|
86 | %clean |
---|
87 | %__rm -rf %{buildroot} |
---|
88 | |
---|
89 | %files |
---|
90 | %defattr(-,root,root) |
---|
91 | %{_datadir}/emacs/site-lisp/%{pkgname} |
---|
92 | %{_prefix}/lib/emacsen-common/packages/install/%{pkgname} |
---|
93 | %{_prefix}/lib/emacsen-common/packages/remove/%{pkgname} |
---|
94 | |
---|
95 | |
---|
96 | %changelog |
---|
97 | * Sat Aug 07 2010 Munehiro Yamamoto <munepi@vinelinux.org> 2009-1 |
---|
98 | - ported from xdvik-22.84.14-6 |
---|
99 | - TeX Live 2009 |
---|