Mercurial > hg-stable
changeset 4753:620cea146b19
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
author | Adam Spiers <hg@adamspiers.org> |
---|---|
date | Sat, 30 Jun 2007 01:21:22 +0100 |
parents | cc0fb3500dd5 |
children | e5e6dd8ba6bb |
files | contrib/mercurial.spec doc/Makefile |
diffstat | 2 files changed, 8 insertions(+), 5 deletions(-) [+] |
line wrap: on
line diff
--- a/contrib/mercurial.spec Sun Jun 03 14:40:56 2007 +0100 +++ b/contrib/mercurial.spec Sat Jun 30 01:21:22 2007 +0100 @@ -17,7 +17,7 @@ # python-devel provides an adequate python-dev. The merge tool is a # run-time dependency. # -BuildRequires: python >= 2.3, python-devel, make, gcc +BuildRequires: python >= 2.3, python-devel, make, gcc, asciidoc, xmlto %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))') %define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name} @@ -32,10 +32,12 @@ %setup -q %build -python setup.py build +make all %install python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix} +make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} + install contrib/hgk $RPM_BUILD_ROOT%{_bindir} install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} @@ -58,7 +60,8 @@ %files %defattr(-,root,root,-) -%doc doc/* *.cgi +%doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi +%{_mandir}/man?/hg*.gz %dir %{pythonlib} %dir %{hgext} %{_sysconfdir}/bash_completion.d/mercurial.sh
--- a/doc/Makefile Sun Jun 03 14:40:56 2007 +0100 +++ b/doc/Makefile Sat Jun 30 01:21:22 2007 +0100 @@ -36,8 +36,8 @@ install: man for i in $(MAN) ; do \ subdir=`echo $$i | sed -n 's/..*\.\([0-9]\)$$/man\1/p'` ; \ - mkdir -p $(DESTDIR)/$(MANDIR)/$$subdir ; \ - $(INSTALL) $$i $(DESTDIR)/$(MANDIR)/$$subdir ; \ + mkdir -p $(DESTDIR)$(MANDIR)/$$subdir ; \ + $(INSTALL) $$i $(DESTDIR)$(MANDIR)/$$subdir ; \ done clean: