1 | %define _noVersionedDependencies 1 |
---|
2 | %define prereq_ge() %(LC_ALL="C" rpm -q --queryformat 'Requires(post)::%%{NAME} >= %%{VERSION}' %1| grep -v "is not") |
---|
3 | %define origname auto-complete |
---|
4 | %define origver 1.3.1 |
---|
5 | |
---|
6 | Summary: The most intelligent auto-completion extension for GNU Emacs |
---|
7 | Summary(ja): GNU Emacs のための最も賢い自動補完機能 |
---|
8 | Name: %{origname}-mode |
---|
9 | Version: %{origver} |
---|
10 | Release: 1%{?_dist_release} |
---|
11 | |
---|
12 | Source0: http://cx4a.org/pub/auto-complete/auto-complete-%{version}.tar.bz2 |
---|
13 | Source1: %{origname}-install.sh |
---|
14 | Source2: %{origname}-remove.sh |
---|
15 | Source3: vine-default-%{origname}.el.in |
---|
16 | Source4: %{origname}-init.el |
---|
17 | |
---|
18 | License: GPLv3 |
---|
19 | Group: Applications/Editors/Emacs |
---|
20 | URL: http://cx4a.org/software/auto-complete/ |
---|
21 | BuildRoot: %{_tmppath}/%{name}-%{version}-root |
---|
22 | BuildArch: noarch |
---|
23 | |
---|
24 | Requires: emacsen |
---|
25 | Requires(post): emacsen |
---|
26 | #%prereq_ge emacsen-common |
---|
27 | |
---|
28 | Distribution: Vine Linux |
---|
29 | Vendor: Project Vine |
---|
30 | Packager: munepi |
---|
31 | |
---|
32 | %description |
---|
33 | Auto Complete Mode is the most intelligent auto-completion extension for GNU |
---|
34 | Emacs. Auto Complete Mode renews an old completion interface and provides an |
---|
35 | environment that makes users could be more concentrate on their own works. |
---|
36 | |
---|
37 | Features |
---|
38 | * Visual interface |
---|
39 | * Reduce overhead of completion by using statistic method |
---|
40 | * Extensibility |
---|
41 | |
---|
42 | |
---|
43 | %description -l ja |
---|
44 | Auto Complete ModeはGNU Emacsのための最も賢い自動補完機能です。 |
---|
45 | 従来の使いづらい補完インターフェースを一新し、 |
---|
46 | ユーザーがより本質的な作業に集中できる環境を提供します。 |
---|
47 | |
---|
48 | 特徴 |
---|
49 | * 視覚的な操作感 |
---|
50 | * 統計的手法による補完オーバーヘッドの削減 |
---|
51 | * 拡張性 |
---|
52 | |
---|
53 | %prep |
---|
54 | |
---|
55 | %setup -q -n %{origname}-%{origver} |
---|
56 | |
---|
57 | %build |
---|
58 | |
---|
59 | %install |
---|
60 | [ "%{buildroot}" != "/" ] && rm -rf %{buildroot} |
---|
61 | [ "%{buildroot}" != "/" ] && mkdir -p %{buildroot} |
---|
62 | |
---|
63 | %__mkdir_p %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
64 | %__mkdir_p %{buildroot}%{emacsen_pkgdir}/install |
---|
65 | %__mkdir_p %{buildroot}%{emacsen_pkgdir}/remove |
---|
66 | |
---|
67 | # |
---|
68 | # install el files |
---|
69 | # |
---|
70 | |
---|
71 | %__cp -p *.el %{SOURCE3} %{SOURCE4} %{buildroot}%{_datadir}/emacs/site-lisp/%{origname} |
---|
72 | %__cp -ra dict %{buildroot}%{_datadir}/emacs/site-lisp/%{origname}/ac-dict || exit 1 |
---|
73 | |
---|
74 | |
---|
75 | # |
---|
76 | # install script (bytecompile el and install elc , remove) |
---|
77 | # |
---|
78 | |
---|
79 | %_installemacsenscript %{origname} %{SOURCE1} |
---|
80 | |
---|
81 | %_removeemacsenscript %{origname} %{SOURCE2} |
---|
82 | |
---|
83 | |
---|
84 | %clean |
---|
85 | [ "%{buildroot}" != "/" ] && %__rm -rf %{buildroot} |
---|
86 | |
---|
87 | %post |
---|
88 | # |
---|
89 | # bytecompile and install |
---|
90 | # |
---|
91 | if [ "$1" = 2 ]; then |
---|
92 | |
---|
93 | %_emacsenPackageRemove %{origname} |
---|
94 | |
---|
95 | fi |
---|
96 | |
---|
97 | %_addemacsenlist %{origname} |
---|
98 | |
---|
99 | %_emacsenPackageInstall %{origname} |
---|
100 | |
---|
101 | |
---|
102 | %preun |
---|
103 | if [ "$1" = 0 ]; then |
---|
104 | |
---|
105 | %_emacsenPackageRemove %{origname} |
---|
106 | |
---|
107 | %_removeemacsenlist %{origname} |
---|
108 | |
---|
109 | fi |
---|
110 | |
---|
111 | |
---|
112 | %files |
---|
113 | %defattr(-,root,root) |
---|
114 | %doc COPYING.FDL.txt COPYING.GPLv3.txt README.txt TODO.txt |
---|
115 | %doc doc etc |
---|
116 | %{_datadir}/emacs/site-lisp/%{origname} |
---|
117 | %{emacsen_pkgdir}/install/%{origname} |
---|
118 | %{emacsen_pkgdir}/remove/%{origname} |
---|
119 | |
---|
120 | |
---|
121 | %changelog |
---|
122 | * Thu Aug 25 2011 Munehiro Yamamoto <munepi@vinelinux.org> 1.3.1-1 |
---|
123 | - first release for Vine Linux |
---|