source: projects/emacsen-common/trunk/emacsen-common-vl.spec @ 7247

Revision 7247, 7.0 KB checked in by daisuke, 9 years ago (diff)

fix spec again.

Line 
1%define name emacsen-common
2%define origname emacsen-common
3%define version 0.5
4%define prereq_ge()  %(LC_ALL="C" rpm -q --queryformat 'Requires(post):%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
5%define _libdir %{_prefix}/lib
6
7Summary: Common facilities for all emacsen.
8Name: %{name}
9Version: %{version}
10Release: 1%{?_dist_release}
11License: GPL
12Group: Development/Languages
13# archive created from git-svn local repos.
14# git archive --format=tar --prefix=emacsen-common-0.5/ HEAD |\
15#   xz > ~/rpm/SOURCES/emacsen-common/emacsen-common-0.5.tar.xz
16Source0: %{origname}-%{version}.tar.xz
17
18Distribution: Vine Liunx
19Vendor: Project Vine
20Packager: daisuke
21
22URL: http://trac.vinelinux.org/browser/projects/emacsen-common
23BuildRoot: %{_tmppath}/%{name}-root
24BuildArch: noarch
25Requires: rpm
26Requires: gzip
27Requires: ruby
28%prereq_ge alternatives
29BuildRequires: alternatives
30
31%description
32This package contains code that is needed by all the (x)emacs packages.
33
34
35
36%prep
37
38%setup -q
39
40
41%build
42
43
44%install
45%__rm -rf $RPM_BUILD_ROOT
46
47%__mkdir_p $RPM_BUILD_ROOT/%{_sysconfdir}/emacs
48%__mkdir_p $RPM_BUILD_ROOT/%{_var}/lib/%{origname}
49%__mkdir_p $RPM_BUILD_ROOT/%{_libdir}/%{origname}/packages/remove
50%__mkdir_p $RPM_BUILD_ROOT/%{_libdir}/%{origname}/packages/install
51%__mkdir_p $RPM_BUILD_ROOT/%{_datadir}/%{origname}/site-list
52%__mkdir_p $RPM_BUILD_ROOT/%{_var}/lib/emacs
53
54echo "/usr/bin/b2m
55/usr/bin/ctags
56/usr/bin/ebrowse
57/usr/bin/emacsclient
58/usr/bin/etags
59/usr/bin/gctags
60/usr/bin/gnuclient
61/usr/bin/grep-changelog
62/usr/bin/ootags
63/usr/bin/rcs-checkin
64/usr/share/icons/hicolor/scalable/apps/emacs.svg
65/usr/share/icons/hicolor/scalable/mimetypes/emacs-document.svg" > $RPM_BUILD_ROOT%{_var}/lib/emacs/alternative-filelist
66
67%__cp show-vine-default.sh $RPM_BUILD_ROOT/%{_libdir}/%{origname}/
68
69%__cp scripts/emacs-install.rb $RPM_BUILD_ROOT/%{_libdir}/%{origname}/.
70%__cp scripts/emacs-package-install.rb $RPM_BUILD_ROOT/%{_libdir}/%{origname}/.
71%__cp scripts/generate-package-list.rb $RPM_BUILD_ROOT/%{_libdir}/%{origname}/.
72%__cp scripts/installed-flavors $RPM_BUILD_ROOT/%{_var}/lib/emacsen-common/installed-flavors
73%__cp scripts/installed-elisp $RPM_BUILD_ROOT/%{_var}/lib/emacsen-common/installed-elisp
74
75%__cp scripts/change-default-flavors.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/.
76
77%__ln_s -f emacs-package-install.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/emacs-package-install
78
79%__ln_s -f emacs-package-install.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/emacs-package-remove
80
81%__ln_s -f emacs-install.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/emacs-install
82
83%__ln_s -f emacs-install.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/emacs-remove
84
85
86%__ln_s -f generate-package-list.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/generate-package-list
87
88%__ln_s -f generate-package-list.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/remove-package-list
89
90%__ln_s -f generate-package-list.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/generate-flavors-list
91
92%__ln_s -f generate-package-list.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/remove-flavors-list
93
94#%__ln_s -f change-default-flavors.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/change-default-flavor
95
96#%__ln_s -f change-default-flavors.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/reverse-default-flavor
97
98#%__ln_s -f change-default-flavors.rb  $RPM_BUILD_ROOT/%{_libdir}/%{origname}/change-temporary-flavor 
99
100
101
102#%__make install prefix=$RPM_BUILD_ROOT/%{_prefix}
103
104
105
106 
107
108
109%clean
110%__rm -rf ${RPM_BUILD_ROOT}
111
112%triggerpostun -- emacs < 20.7-0vl7.3
113
114if [ -f %{_var}/lib/emacsen-common/doinstaflavor-emacs ]; then
115
116NEWFLAVOR=$(cat %{_var}/lib/emacsen-common/doinstaflavor-emacs)
117
118%_addflavorslist $NEWFLAVOR
119
120export PRIORITY=10
121
122%_installemacs $NEWFLAVOR
123
124unset PRIORITY
125
126%__rm -rf %{_var}/lib/emacsen-common/doinstaflavor-emacs
127
128fi
129
130%triggerpostun -- xemacs < 21.1.14-0vl6
131
132if [ -f %{_var}/lib/emacsen-common/doinstaflavor-xemacs ]; then
133
134NEWFLAVOR=$(cat %{_var}/lib/emacsen-common/doinstaflavor-xemacs)
135
136%_addflavorslist $NEWFLAVOR
137
138export PRIORITY=15
139
140%_installemacs $NEWFLAVOR
141
142unset PRIORITY
143
144%__rm -rf %{_var}/lib/emacsen-common/doinstaflavor-xemacs
145
146fi
147
148%files
149%defattr(-, root, root)
150%attr(755,root,root) %{_libdir}/emacsen-common/show-vine-default.sh
151%attr(755,root,root) %{_libdir}/emacsen-common/emacs-*
152%attr(755,root,root) %{_libdir}/emacsen-common/generate-*
153%attr(755,root,root) %{_libdir}/emacsen-common/remove-*
154%dir %{_libdir}/emacsen-common/packages/remove
155%dir %{_libdir}/emacsen-common/packages/install
156%dir %{_sysconfdir}/emacs
157%dir %{_libdir}/emacsen-common
158%dir %{_var}/lib/emacs
159%{_var}/lib/emacs/alternative-filelist
160%config(noreplace) %{_var}/lib/emacsen-common/installed-flavors
161%config(noreplace) %{_var}/lib/emacsen-common/installed-elisp
162
163
164%changelog
165* Sat Dec 15 2012 Daisuke SUZUKI <daisuke@linux.or.jp> 0.5-1
166- import emacsen-common to vine svn repository
167- support ruby-1.9.3
168
169* Sun Mar 03 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4-6
170- fixed show-vine-default.sh
171
172* Sat Jan 29 2011 Munehiro Yamamoto <munepi@vinelinux.org> 0.4-5
173- added grep-changelog, emacs{,-document}.svg to emacs's slave
174
175* Sun Dec 05 2010 Munehiro Yamamoto <munepi@vinelinux.org> 0.4-4
176- added show-vine-default.sh
177
178* Sun Apr 26 2009 Munehiro Yamamoto <munepi@cg8.so-net.ne.jp> 0.4-3
179- created %%{_sysconfdir}/emacs for vine-default
180- added in %%files section:
181  - %%dir %%{_sysconfdir}/emacs
182  - %%dir %%{_libdir}/emacsen-common
183  - %%dir %%{_var}/lib/emacs
184
185* Sat Aug 16 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-2vl5
186- added %%define _libdir %%{_prefix}/lib
187
188* Fri Aug 15 2008 Shu KONNO <owa@bg.wakwak.com> 0.4-1vl5
189- applied new versioning policy
190
191* Thu Mar 23 2006 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl23
192- use %%{_var}/lib instead of %%{_localstatedir}
193
194* Wed Jul 28 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl22
195- add b2m, gnuclient, ootags to emacs's slave
196
197* Wed Jul 28 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl21
198- fix emacsen-install to add emacsclient as emacs's slave
199
200* Thu Mar  4 2004 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl20
201- add PreReq: gzip
202
203* Wed Apr  3 2002 Jun Nishii <jun@vinelinux.org> 0.4-0vl19
204- fix typo in xemacs handling of emacs-install
205
206* Sat Mar 23 2002 Kazuhisa TAKEI <takei@vinelinux.org> 0.4-0vl18
207- fixed emacs-install.rb
208  ( don't  remove  xemacs-alternatives)   
209
210* Sat Mar 23 2002 Kazuhisa TAKEI <takei@vinelinux.org> 0.4-0vl17
211- add /usr/bin/xemacs to alternatives.
212
213* Thu Mar  7 2002 Kazuhisa TAKEI <takei@vinelinux.org> 0.4-0vl16
214- %triggerin -> %triggerpostun
215
216* Wed Mar  6 2002 Daisuke SUZUKI <daisuke@linux.or.jp> 0.4-0vl15
217- add prereq rpm >= 3.0.6-0vl16 for emacsen macros
218
219* Thu Dec  6 2001 Kazuhisa TAKEI <takei@vinelinux.org> 0.4-0vl14
220- fixed %triggerin 
221
222* Thu Nov  8 2001 Kazuhisa TAKEI <takei@vinelinux.org> 0.4-0vl13
223- move /tmp -> /var/lib/emacsen-common (IP(package)C file)
224- add %triggerin xemacs
225
226* Sat Oct  6 2001 Kazuhisa TAKEI <takei@vinelinux.org> 0.4-0vl1
227- fixed emacs-install.rb ( lacking run update-alternatives when emacsen install) 
228* Sun Aug 12 2001 Kazuhisa TAKEI <takei@vinelinux.org> 0.2-0vl1
229- add routine when install and remove .
230
231* Wed Jul 18 2001 Kazuhisa TAKEI <takei@vinelinux.org> 0.1-0vl1
232- initial package
233
234
235
Note: See TracBrowser for help on using the repository browser.