1 | %define _noVersionedDependencies 1 |
---|
2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'PreReq:%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
3 | %define emacsen_pkgdir /usr/lib/emacsen-common/packages |
---|
4 | Summary: Rolodex-like database program for GNU Emacs |
---|
5 | Summary(ja): Emacs 用のローロデックス風データベースプログラム |
---|
6 | Name: bbdb |
---|
7 | Version: 2.32 |
---|
8 | Release: 1%{?_dist_release} |
---|
9 | |
---|
10 | Source0: ftp://ftp.win.or.jp/pub/word/elisp/%{name}-%{version}.tar.gz |
---|
11 | Source1: %{name}-install.sh |
---|
12 | Source2: %{name}-remove.sh |
---|
13 | Source3: emacs-wl-bbdb.sample |
---|
14 | Patch0: bbdb-2.32-misc.patch |
---|
15 | Patch1: bbdb-2.32-emacsen.patch |
---|
16 | |
---|
17 | License: GPL |
---|
18 | Group: Applications/Editors/Emacs |
---|
19 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
20 | BuildArch: noarch |
---|
21 | |
---|
22 | PreReq: emacsen, make, install-info |
---|
23 | %prereq_ge emacsen-common |
---|
24 | BuildRequires: emacsen-common |
---|
25 | |
---|
26 | Vendor: Project Vine |
---|
27 | Distribution: Vine Linux |
---|
28 | Packager: MATUBARA Kazuyuki <matubara@mb.asmnet.ne.jp> |
---|
29 | |
---|
30 | %description |
---|
31 | BBDB is a rolodex-like database program for GNU Emacs. BBDB stands |
---|
32 | for Insidious Big Brother Database, and is not, repeat, *not* an |
---|
33 | obscure reference to the Buck Rogers TV series. |
---|
34 | |
---|
35 | |
---|
36 | %prep |
---|
37 | %setup -q |
---|
38 | %patch0 -p1 |
---|
39 | %patch1 -p1 |
---|
40 | |
---|
41 | cp %{SOURCE3} . |
---|
42 | |
---|
43 | find . -type f -name .cvsignore -print | xargs rm -f |
---|
44 | find . -type f -name *.orig -print | xargs rm -f |
---|
45 | |
---|
46 | %build |
---|
47 | ./configure --with-package-dir="" |
---|
48 | |
---|
49 | chmod -x utils/*.pl |
---|
50 | |
---|
51 | %install |
---|
52 | |
---|
53 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
54 | [ "${RPM_BUILD_ROOT}" != "/" ] && mkdir -p ${RPM_BUILD_ROOT} |
---|
55 | |
---|
56 | mkdir -p ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name} |
---|
57 | #mkdir -p ${RPM_BUILD_ROOT}%{_libdir}/emacsen-common/packages/{install,remove} |
---|
58 | mkdir -p ${RPM_BUILD_ROOT}%{emacsen_pkgdir}/{install,remove} |
---|
59 | mkdir -p ${RPM_BUILD_ROOT}%{_infodir} |
---|
60 | |
---|
61 | # |
---|
62 | # install el files |
---|
63 | # |
---|
64 | |
---|
65 | cp -af Makefile lisp tex utils \ |
---|
66 | ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name} |
---|
67 | |
---|
68 | rm -f ${RPM_BUILD_ROOT}%{_datadir}/emacs/site-lisp/%{name}/*/Makefile.in |
---|
69 | |
---|
70 | # |
---|
71 | # install info |
---|
72 | # |
---|
73 | |
---|
74 | install -m 644 texinfo/bbdb.info* ${RPM_BUILD_ROOT}%{_infodir} |
---|
75 | gzip -9 ${RPM_BUILD_ROOT}%{_infodir}/bbdb.info* |
---|
76 | |
---|
77 | # |
---|
78 | # install script( bytecompile el and install elc , remove ) |
---|
79 | # |
---|
80 | |
---|
81 | %_installemacsenscript %{name} %{SOURCE1} |
---|
82 | |
---|
83 | %_removeemacsenscript %{name} %{SOURCE2} |
---|
84 | |
---|
85 | %post |
---|
86 | |
---|
87 | # |
---|
88 | # bytecompile and install |
---|
89 | # |
---|
90 | |
---|
91 | if [ "$1" = 2 ]; then |
---|
92 | |
---|
93 | %_emacsenPackageRemove %{name} |
---|
94 | |
---|
95 | fi |
---|
96 | |
---|
97 | %_addemacsenlist %{name} |
---|
98 | |
---|
99 | %_emacsenPackageInstall %{name} |
---|
100 | |
---|
101 | /sbin/install-info --info-file=%{_infodir}/bbdb.info.gz --info-dir=%{_infodir} --section="Emacs" |
---|
102 | |
---|
103 | %preun |
---|
104 | |
---|
105 | if [ "$1" = 0 ]; then |
---|
106 | |
---|
107 | %_emacsenPackageRemove %{name} |
---|
108 | |
---|
109 | %_removeemacsenlist %{name} |
---|
110 | |
---|
111 | /sbin/install-info --delete %{_infodir}/bbdb.info.gz %{_infodir}/dir |
---|
112 | |
---|
113 | fi |
---|
114 | |
---|
115 | %clean |
---|
116 | [ "${RPM_BUILD_ROOT}" != "/" ] && rm -rf ${RPM_BUILD_ROOT} |
---|
117 | |
---|
118 | |
---|
119 | %files |
---|
120 | %defattr(-,root,root) |
---|
121 | %doc ChangeLog INSTALL emacs-wl-bbdb.sample |
---|
122 | %{_datadir}/emacs/site-lisp/%{name}/ |
---|
123 | %{emacsen_pkgdir}/install/%{name} |
---|
124 | %{emacsen_pkgdir}/remove/%{name} |
---|
125 | %{_infodir}/* |
---|
126 | |
---|
127 | |
---|
128 | %changelog |
---|
129 | * Fri Sep 19 2008 Shu KONNO <owa@bg.wakwak.com> 2.32-1vl5 |
---|
130 | - applied new versioning policy, spec in utf-8 |
---|
131 | - added macro %%emacsen_pkgdir |
---|
132 | |
---|
133 | |
---|
134 | * Tue Sep 12 2006 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 2.32-0vl3 |
---|
135 | - changed Group to Appliations/Editors/Emacs <BTS:VineLinux:163> |
---|
136 | - s/Copyright/License/ |
---|
137 | |
---|
138 | * Sun May 26 2002 MATUBARA Kazuyuki <matubara@kamome.or.jp> 2.32-0vl2 |
---|
139 | - delete xemacs message to ddskk-install.sh |
---|
140 | |
---|
141 | * Sun Mar 03 2002 MATUBARA Kazuyuki <matubara@mb.asmnet.ne.jp> 2.32-0vl1 |
---|
142 | - 1st packageing |
---|