Show More
@@ -17,7 +17,7 b' BuildRoot: /tmp/build.%{name}-%{version}' | |||
|
17 | 17 | # python-devel provides an adequate python-dev. The merge tool is a |
|
18 | 18 | # run-time dependency. |
|
19 | 19 | # |
|
20 | BuildRequires: python >= 2.3, python-devel, make, gcc | |
|
20 | BuildRequires: python >= 2.3, python-devel, make, gcc, asciidoc, xmlto | |
|
21 | 21 | |
|
22 | 22 | %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') |
|
23 | 23 | %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} |
@@ -32,10 +32,12 b' rm -rf $RPM_BUILD_ROOT' | |||
|
32 | 32 | %setup -q |
|
33 | 33 | |
|
34 | 34 | %build |
|
35 | python setup.py build | |
|
35 | make all | |
|
36 | 36 | |
|
37 | 37 | %install |
|
38 | 38 | python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} |
|
39 | make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} | |
|
40 | ||
|
39 | 41 | install contrib/hgk $RPM_BUILD_ROOT%{_bindir} |
|
40 | 42 | install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo |
|
41 | 43 | install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} |
@@ -58,7 +60,8 b' rm -rf $RPM_BUILD_ROOT' | |||
|
58 | 60 | |
|
59 | 61 | %files |
|
60 | 62 | %defattr(-,root,root,-) |
|
61 | %doc doc/* *.cgi | |
|
63 | %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi | |
|
64 | %{_mandir}/man?/hg*.gz | |
|
62 | 65 | %dir %{pythonlib} |
|
63 | 66 | %dir %{hgext} |
|
64 | 67 | %{_sysconfdir}/bash_completion.d/mercurial.sh |
@@ -36,8 +36,8 b' MANIFEST: man html' | |||
|
36 | 36 | install: man |
|
37 | 37 | for i in $(MAN) ; do \ |
|
38 | 38 | subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \ |
|
39 |
mkdir -p $(DESTDIR) |
|
|
40 |
$(INSTALL) $$i $(DESTDIR) |
|
|
39 | mkdir -p $(DESTDIR)$(MANDIR)/$$subdir ; \ | |
|
40 | $(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \ | |
|
41 | 41 | done |
|
42 | 42 | |
|
43 | 43 | clean: |
General Comments 0
You need to be logged in to leave comments.
Login now