##// END OF EJS Templates
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm

File last commit:

r4753:620cea14 default
r4753:620cea14 default
Show More
mercurial.spec
81 lines | 2.4 KiB | text/x-rpm-spec | RPMSpecLexer
mpm@selenic.com
Add an RPM spec file...
r459 Summary: Mercurial -- a distributed SCM
Name: mercurial
Matt Mackall
Remove hard-coded version numbers and release notes from packaging
r3863 Version: snapshot
Thomas Arendsen Hein
New version/release in mercurial.spec, patchbomb is now in hgext.
r1891 Release: 0
Florian La Roche
Clean up RPM spec file
r1273 License: GPL
mpm@selenic.com
Add an RPM spec file...
r459 Group: Development/Tools
Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
Florian La Roche
Clean up RPM spec file
r1273 URL: http://www.selenic.com/mercurial
mpm@selenic.com
Add an RPM spec file...
r459 BuildRoot: /tmp/build.%{name}-%{version}-%{release}
julian@lava.net
mercurial.spec: add BuildRequires...
r4751 # From the README:
#
# Note: some distributions fails to include bits of distutils by
# default, you'll need python-dev to install. You'll also need a C
# compiler and a 3-way merge tool like merge, tkdiff, or kdiff3.
#
# python-devel provides an adequate python-dev. The merge tool is a
# run-time dependency.
#
Adam Spiers
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
r4753 BuildRequires: python >= 2.3, python-devel, make, gcc, asciidoc, xmlto
julian@lava.net
mercurial.spec: add BuildRequires...
r4751
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
%define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name}
Xiaofeng Ling
fix contrib/mercurial.spec for hgext
r1890 %define hgext %{_libdir}/python%{pythonver}/site-packages/hgext
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563
mpm@selenic.com
Add an RPM spec file...
r459 %description
Mercurial is a fast, lightweight source control management system designed
for efficient handling of very large distributed projects.
%prep
rm -rf $RPM_BUILD_ROOT
Florian La Roche
Clean up RPM spec file
r1273 %setup -q
mpm@selenic.com
Add an RPM spec file...
r459
%build
Adam Spiers
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
r4753 make all
mpm@selenic.com
Add an RPM spec file...
r459
%install
Adam Spiers
mercurial.spec: fix when default python prefix != rpm %{_prefix}...
r4750 python setup.py install --root $RPM_BUILD_ROOT --prefix %{_prefix}
Adam Spiers
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
r4753 make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752 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}
install contrib/git-viz/{hg-viz,git-rev-tree} $RPM_BUILD_ROOT%{_bindir}
bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
mkdir -p $bash_completion_dir
install contrib/bash_completion $bash_completion_dir/mercurial.sh
zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
mkdir -p $zsh_completion_dir
install contrib/zsh_completion $zsh_completion_dir/_mercurial
lisp_dir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
mkdir -p $lisp_dir
install contrib/mercurial.el $lisp_dir
mpm@selenic.com
Add an RPM spec file...
r459
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %clean
rm -rf $RPM_BUILD_ROOT
mpm@selenic.com
Add an RPM spec file...
r459
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %files
%defattr(-,root,root,-)
Adam Spiers
mercurial.spec: include CONTRIBUTORS, COPYING and man pages in rpm
r4753 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi
%{_mandir}/man?/hg*.gz
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %dir %{pythonlib}
Xiaofeng Ling
fix contrib/mercurial.spec for hgext
r1890 %dir %{hgext}
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752 %{_sysconfdir}/bash_completion.d/mercurial.sh
%{_datadir}/zsh/site-functions/_mercurial
%{_datadir}/emacs/site-lisp/mercurial.el
%{_bindir}/hg
%{_bindir}/hgk
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %{_bindir}/hgmerge
Adam Spiers
mercurial.spec: include various utility files from contrib/ in rpm...
r4752 %{_bindir}/hg-ssh
%{_bindir}/hg-viz
%{_bindir}/git-rev-tree
%{_bindir}/mercurial-convert-repo
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %{pythonlib}/templates
Florian La Roche
Clean up RPM spec file
r1273 %{pythonlib}/*.py*
Matt Mackall
Remove hard-coded version numbers and release notes from packaging
r3863 %{pythonlib}/hgweb/*.py*
mpm@selenic.com
[PATCH] clean up RPM spec file...
r563 %{pythonlib}/*.so
Xiaofeng Ling
fix contrib/mercurial.spec for hgext
r1890 %{hgext}/*.py*