Lines 18-23
Link Here
|
18 |
%def_with svn |
18 |
%def_with svn |
19 |
%def_with tk |
19 |
%def_with tk |
20 |
%def_with doc |
20 |
%def_with doc |
|
|
21 |
%def_with emacs |
21 |
|
22 |
|
22 |
Requires: %name-core = %version-%release |
23 |
Requires: %name-core = %version-%release |
23 |
%{!?_without_arch:Requires: %name-arch = %version-%release} |
24 |
%{!?_without_arch:Requires: %name-arch = %version-%release} |
Lines 26-31
Link Here
|
26 |
%{!?_without_svn:Requires: %name-svn = %version-%release} |
27 |
%{!?_without_svn:Requires: %name-svn = %version-%release} |
27 |
%{!?_without_tk:Requires: gitk = %version-%release} |
28 |
%{!?_without_tk:Requires: gitk = %version-%release} |
28 |
%{!?_without_doc:Requires: %name-doc = %version-%release} |
29 |
%{!?_without_doc:Requires: %name-doc = %version-%release} |
|
|
30 |
%{!?_without_emacs:Requires: %name-emacs = %version-%release} |
29 |
|
31 |
|
30 |
BuildRequires: libssl-devel, python-modules-encodings >= 0:2.4, zlib-devel >= 0:1.2 |
32 |
BuildRequires: libssl-devel, python-modules-encodings >= 0:2.4, zlib-devel >= 0:1.2 |
31 |
%{!?_without_cvs:BuildRequires: perl-DBI} |
33 |
%{!?_without_cvs:BuildRequires: perl-DBI} |
Lines 35-40
Link Here
|
35 |
%{!?_without_svn:BuildRequires: perl-Memoize, perl-URI, perl-libwww, subversion, subversion-perl, subversion-server-common} |
37 |
%{!?_without_svn:BuildRequires: perl-Memoize, perl-URI, perl-libwww, subversion, subversion-perl, subversion-server-common} |
36 |
%{!?_without_doc:BuildRequires: asciidoc > 0:6.0.3, xmlto} |
38 |
%{!?_without_doc:BuildRequires: asciidoc > 0:6.0.3, xmlto} |
37 |
%{?!_without_check:%{?!_disable_check:BuildRequires: rcs}} |
39 |
%{?!_without_check:%{?!_disable_check:BuildRequires: rcs}} |
|
|
40 |
%{?!_without_emacs:BuildRequires: emacs-devel} |
38 |
|
41 |
|
39 |
%description |
42 |
%description |
40 |
This is a stupid (but extremely fast) directory content manager. |
43 |
This is a stupid (but extremely fast) directory content manager. |
Lines 110-115
Link Here
|
110 |
|
113 |
|
111 |
%define pkgdocdir %_docdir/%name-%version |
114 |
%define pkgdocdir %_docdir/%name-%version |
112 |
|
115 |
|
|
|
116 |
%if_with emacs |
117 |
%package emacs |
118 |
Summary: Emacs GIT VC package |
119 |
Group: Development/Other |
120 |
Provides: %name-emacs = %version-%release |
121 |
Requires: emacs-base |
122 |
|
123 |
%description emacs |
124 |
This package contain Git version control support for emacs |
125 |
|
126 |
%package emacs-el |
127 |
Summary: Emacs GIT VC package - sources |
128 |
Group: Development/Other |
129 |
Provides: %name-emacs-el = %version-%release |
130 |
Requires: %name-emacs = %version-%release |
131 |
|
132 |
%description emacs-el |
133 |
Lisp source code for Git version control support for emacs |
134 |
%endif #emacs |
135 |
|
113 |
%prep |
136 |
%prep |
114 |
%setup -q |
137 |
%setup -q |
115 |
|
138 |
|
Lines 122-127
Link Here
|
122 |
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%__make -k CFLAGS="%optflags" prefix=%prefix test ||:}}} |
145 |
%{?!__buildreqs:%{?!_without_check:%{?!_disable_check:%__make -k CFLAGS="%optflags" prefix=%prefix test ||:}}} |
123 |
%__cc %optflags linkify.c -o linkify |
146 |
%__cc %optflags linkify.c -o linkify |
124 |
|
147 |
|
|
|
148 |
%if_with emacs |
149 |
%__make -C contrib/emacs EMACS=%__emacs INSTALL=%__install emacsdir=%buildroot%_emacslispdir |
150 |
%endif #emacs |
151 |
|
125 |
%install |
152 |
%install |
126 |
%make_install CFLAGS="%optflags" DESTDIR=%buildroot \ |
153 |
%make_install CFLAGS="%optflags" DESTDIR=%buildroot \ |
127 |
prefix=%prefix mandir=%_mandir \ |
154 |
prefix=%prefix mandir=%_mandir \ |
Lines 130-135
Link Here
|
130 |
%{!?_without_email:WITH_SEND_EMAIL=1} \ |
157 |
%{!?_without_email:WITH_SEND_EMAIL=1} \ |
131 |
install %{!?_without_doc:install-doc} |
158 |
install %{!?_without_doc:install-doc} |
132 |
|
159 |
|
|
|
160 |
%if_with emacs |
161 |
%__make -C contrib/emacs EMACS=%__emacs INSTALL=%__install emacsdir=%buildroot%_emacslispdir install |
162 |
%__cp -v contrib/emacs/*.el %buildroot%_emacslispdir |
163 |
%__mkdir_p %buildroot%_emacs_sitestart_dir |
164 |
%__cat > %buildroot%_emacs_sitestart_dir/git.el <<EOF |
165 |
; site-start script for Emacs, initializes git and vc-git |
166 |
; Octember 2006 |
167 |
; evg@altlinux.ru |
168 |
|
169 |
(require 'git) |
170 |
(add-to-list 'vc-handled-backends 'GIT) |
171 |
EOF |
172 |
%endif #emacs |
173 |
|
133 |
# Fix manpages. |
174 |
# Fix manpages. |
134 |
find %buildroot%_mandir -type f -print0 | |
175 |
find %buildroot%_mandir -type f -print0 | |
135 |
xargs -r0 %__subst -p 's/^\(.\+\)\(\.sp\)$/\1\n\2/' -- |
176 |
xargs -r0 %__subst -p 's/^\(.\+\)\(\.sp\)$/\1\n\2/' -- |
Lines 209-214
Link Here
|
209 |
%files doc |
250 |
%files doc |
210 |
%pkgdocdir/ |
251 |
%pkgdocdir/ |
211 |
|
252 |
|
|
|
253 |
%if_with emacs |
254 |
%files emacs |
255 |
%_emacs_sitestart_dir/git.el |
256 |
%_emacslispdir/*.elc |
257 |
|
258 |
%files emacs-el |
259 |
%_emacslispdir/*.el |
260 |
%endif #emacs |
261 |
|
212 |
%changelog |
262 |
%changelog |
213 |
* Sun Sep 24 2006 Dmitry V. Levin <ldv@altlinux.org> 1.4.2.1-alt2 |
263 |
* Sun Sep 24 2006 Dmitry V. Levin <ldv@altlinux.org> 1.4.2.1-alt2 |
214 |
- Updated to maint v1.4.2.1-gf2b5792. |
264 |
- Updated to maint v1.4.2.1-gf2b5792. |