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

Revision 521, 3.3 KB checked in by daisuke, 13 years ago (diff)

import VineSeed package specs

Line 
1%define _noVersionedDependencies        1
2%define prereq_ge()  %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not")
3
4Summary:      IRC Client for emacsen
5Summary(ja):  emacsen ÍѤÎIRC¥¯¥é¥¤¥¢¥ó¥È
6
7Name:         irchat-pj
8Version:      2.4.24.20
9Release:      0vl2
10Source0:      http://irc.fan.gr.jp/pj/%{name}-%{version}.tar.bz2
11Source1:      %{name}-install.sh
12Source2:      %{name}-remove.sh
13
14Copyright:    GPL
15Group:        Applications/Internet
16BuildRoot:    %{_tmppath}/%{name}-%{version}-root
17
18PreReq:       emacsen
19BuildPreReq:  emacsen-common
20%prereq_ge    emacsen-common
21Obsoletes:    irchat
22Obsoletes:    irchat-pj-xemacs
23
24Vendor:       Project Vine
25Distribution: Vine Linux
26Packager:     MATSUBAYASHI 'Shaolin' Kohji <shaolin@vinelinux.org>
27
28
29%description
30irchat-pj package includes Japanse IRC Client.
31
32%description -l ja
33irchat-pj ¥Ñ¥Ã¥±¡¼¥¸¤Ï¡¢¤è¤ê´°àú¤ËÆüËܤò°·¤¦¤¿¤á¤Ë,
34irchat-jp ¤ò²þ¤¤·¤¿ IRC ¥¯¥é¥¤¥¢¥ó¥È irchat-pj ¤ò´Þ¤ß¤Þ¤¹¡£
35
36
37%prep
38%setup
39
40
41%build
42
43make dcc
44
45
46%install
47[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
48[ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT}
49
50mkdir -p ${RPM_BUILD_ROOT}%{_bindir}
51mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
52mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/install
53mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/remove
54
55#
56# install dcc binary
57#
58
59make EMACS=emacs \
60   DCCDIR=${RPM_BUILD_ROOT}%{_bindir} install-dcc
61
62#
63# install el files
64#
65
66cp -a Makefile *.el contrib ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}
67
68
69#
70# install script (bytecompile el and install elc, remove)
71#
72
73%_installemacsenscript %{name} %{SOURCE1}
74
75%_removeemacsenscript  %{name} %{SOURCE2}
76
77
78%post
79
80#
81# byte-compile and install
82#
83
84if [ "$1" = 2 ] ; then
85
86%_emacsenPackageRemove %{name}
87
88fi
89
90%_addemacsenlist %{name}
91
92%_emacsenPackageInstall %{name}
93
94
95%preun
96
97if [ "$1" = 0 ] ; then
98
99%_emacsenPackageRemove %{name}
100
101%_removeemacsenlist %{name}
102
103fi
104
105
106%clean
107[ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT}
108
109
110%files
111%defattr(-,root,root)
112%doc doc contrib
113%{_bindir}/dcc
114%{_datadir}/emacs/site-lisp/%{name}
115%{_libdir}/emacsen-common/packages/install/%{name}
116%{_libdir}/emacsen-common/packages/remove/%{name}
117
118
119%changelog
120* Mon Dec 31 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.24.20-0vl2
121- added missing BuildPreReqs/PreReqs
122
123* Sat Dec 29 2001 MATSUBAYASHI Kohji <shaolin@vinelinux.org> 2.4.24.20-0vl1
124- updated to newest 2.4.24.20 stable release
125- now emacsen-common aware
126
127* Thu Jan 24 2001 Tomoya TAKA <tomoya@olive.plala.or.jp> 2.4.24.07-4
128- a small fix in the spec file
129
130* Sun Jan  9 2000 Jun Nishii <jun@vinelinux.org>
131[2.4.24.07-3]
132- added %defattr
133- change release to 0vl1
134
135* Fri Jan  7 2000 Jun Nishii <jun@vinelinux.org>
136[2.4.24.07-2]
137- change group
138- strip bin
139
140* Tue Sep 7 1999 Norihito Ohmori <ohmori@flatout.org>
141- modified irchat-pj-2.4.24.7 for emacs
142
143* Mon Aug 31 1999 Yasushi karino <kari-p@bk.iij4u.or.jp>
144 - irchat-pj-xemacs-2.4.24.8-3
145 - It changed to XEmacs21.1.6 correspondence.
146
147* Tue Aug 10 1999 Yasushi Karino <kari-p@bk.iij4u.or.jp>
148 - ircaht-pj-2.4.24.08pl1-xemacs-2
149 - Changed DCCDIR from /usr/local/bin to /usr/bin
150 - Added '%changelog' tag.
151
152* Sun Aug 8 1999 Yasushi Karino <kari-p@bk.iij4u.or.jp>
153 - ircaht-pj-2.4.24.08pl1-xemacs-1
154 - Applied patch 'irchat-pj-2.4.24.08pl1.diff.gz'
155 - first Release
Note: See TracBrowser for help on using the repository browser.