source: projects/specs/trunk/i/initz/initz-vl.spec @ 521

Revision 521, 2.4 KB checked in by daisuke, 12 years ago (diff)

import VineSeed package specs

Line 
1%define emacsen_pkgdir /usr/lib/emacsen-common/packages
2Summary: Handles the switching of various initialization files of emacsen
3Name: initz
4Version: 0.0.9
5Release: 1%{?_dist_release}
6License: GPL
7Group: Applications/Editors
8Source: http://www.koka-in.org/~bg66/%{name}-%{version}.tar.gz
9Source1: %{name}-install.sh
10Source2: %{name}-remove.sh
11URL: http://www.koka-in.org/~bg66/index.cgi?cmd=view;name=Initz
12Prefix: /usr
13BuildRoot: %{_tmppath}/%{name}-%{version}-root
14BuildArch: noarch
15PreReq: emacsen, emacsen-common >= 0.1
16
17%description
18Initz handles the switching of various startup initialization files of
19emacsen provided for various environment. According to the environment
20(maybe emacs version, OS type or OS versions) Initz reads appropriate init
21files 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
33mkdir -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
36mkdir -p ${RPM_BUILD_ROOT}/%{emacsen_pkgdir}/install
37mkdir -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
47if [ "$1" = 2 ]; then
48  %_emacsenPackageRemove initz
49
50fi
51
52%_addemacsenlist initz
53
54%_emacsenPackageInstall initz
55
56%preun
57if [ "$1" = 0 ]; then
58  %_emacsenPackageRemove initz
59
60  %_removeemacsenlist initz
61
62fi
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.
Note: See TracBrowser for help on using the repository browser.