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