1 | %define emacsen_pkgdir /usr/lib/emacsen-common/packages |
---|
2 | Summary: Handles the switching of various initialization files of emacsen |
---|
3 | Name: initz |
---|
4 | Version: 0.0.9 |
---|
5 | Release: 1%{?_dist_release} |
---|
6 | License: GPL |
---|
7 | Group: Applications/Editors |
---|
8 | Source: http://www.koka-in.org/~bg66/%{name}-%{version}.tar.gz |
---|
9 | Source1: %{name}-install.sh |
---|
10 | Source2: %{name}-remove.sh |
---|
11 | URL: http://www.koka-in.org/~bg66/index.cgi?cmd=view;name=Initz |
---|
12 | Prefix: /usr |
---|
13 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
14 | BuildArch: noarch |
---|
15 | PreReq: emacsen, emacsen-common >= 0.1 |
---|
16 | |
---|
17 | %description |
---|
18 | Initz handles the switching of various startup initialization files of |
---|
19 | emacsen provided for various environment. According to the environment |
---|
20 | (maybe emacs version, OS type or OS versions) Initz reads appropriate init |
---|
21 | files provided by the user in several directories, one for one environment. |
---|
22 | |
---|
23 | %prep |
---|
24 | |
---|
25 | %setup -q |
---|
26 | |
---|
27 | %build |
---|
28 | |
---|
29 | %install |
---|
30 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
31 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
---|
32 | |
---|
33 | mkdir -p ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name} |
---|
34 | #mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/install |
---|
35 | #mkdir -p ${RPM_BUILD_ROOT}/%{_libdir}/emacsen-common/packages/remove |
---|
36 | mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/install |
---|
37 | mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/remove |
---|
38 | |
---|
39 | (cd lisp && \ |
---|
40 | install -m 644 *.el ${RPM_BUILD_ROOT}/%{_datadir}/emacs/site-lisp/%{name}) |
---|
41 | |
---|
42 | %_installemacsenscript %{name} %{SOURCE1} |
---|
43 | |
---|
44 | %_removeemacsenscript %{name} %{SOURCE2} |
---|
45 | |
---|
46 | %post |
---|
47 | if [ "$1" = 2 ]; then |
---|
48 | %_emacsenPackageRemove initz |
---|
49 | |
---|
50 | fi |
---|
51 | |
---|
52 | %_addemacsenlist initz |
---|
53 | |
---|
54 | %_emacsenPackageInstall initz |
---|
55 | |
---|
56 | %preun |
---|
57 | if [ "$1" = 0 ]; then |
---|
58 | %_emacsenPackageRemove initz |
---|
59 | |
---|
60 | %_removeemacsenlist initz |
---|
61 | |
---|
62 | fi |
---|
63 | |
---|
64 | |
---|
65 | |
---|
66 | %clean |
---|
67 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
68 | |
---|
69 | %files |
---|
70 | %defattr(-, root, root) |
---|
71 | %{_datadir}/emacs/site-lisp/%{name}/ |
---|
72 | #%{_libdir}/emacsen-common/packages/install/%{name} |
---|
73 | #%{_libdir}/emacsen-common/packages/remove/%{name} |
---|
74 | %{emacsen_pkgdir}/install/%{name} |
---|
75 | %{emacsen_pkgdir}/remove/%{name} |
---|
76 | %doc AUTHORS |
---|
77 | %doc COPYING |
---|
78 | %doc ChangeLog |
---|
79 | %doc NEWS |
---|
80 | %doc README |
---|
81 | %doc TODO |
---|
82 | %doc sample |
---|
83 | |
---|
84 | %changelog |
---|
85 | * Sun Sep 28 2008 Shu KONNO <owa@bg.wakwak.com> 0.0.9-1vl5 |
---|
86 | - applied new versioning policy, spec in utf-8 |
---|
87 | - added macro %%emacsen_pkgdir |
---|
88 | |
---|
89 | * Mon Feb 04 2002 akira yamada <akira@vinelinux.org> 0.0.9-0vl1 |
---|
90 | - new upstream version. |
---|
91 | - putted emacsen-common into PreReq. |
---|
92 | |
---|
93 | * Thu Dec 06 2001 akira yamada <akira@vinelinux.org> 0.0.2-0vl1 |
---|
94 | - Initial packaging. |
---|