contrib/mercurial.spec
author Alexis S. L. Carvalho <alexis@cecm.usp.br>
Wed, 23 Nov 2005 08:02:35 +0100
changeset 1555 01a5121a005a
parent 1273 ab22af71386f
child 1890 d4545f1b8bfa
permissions -rw-r--r--
bash_completion: use hg --debug help to get the list of debug commands. Also, try completing with the debug commands only when there's no other candidates. Based on an idea by TK Soh.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
459
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
     1
Summary: Mercurial -- a distributed SCM
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
     2
Name: mercurial
1273
ab22af71386f Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents: 563
diff changeset
     3
Version: 0.7
459
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
     4
Release: 1
1273
ab22af71386f Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents: 563
diff changeset
     5
License: GPL
459
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
     6
Group: Development/Tools
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
     7
Source: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
1273
ab22af71386f Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents: 563
diff changeset
     8
URL: http://www.selenic.com/mercurial
459
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
     9
BuildRoot: /tmp/build.%{name}-%{version}-%{release}
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    10
563
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    11
%define pythonver %(python -c 'import sys;print ".".join(map(str, sys.version_info[:2]))')
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    12
%define pythonlib %{_libdir}/python%{pythonver}/site-packages/%{name}
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    13
459
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    14
%description
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    15
Mercurial is a fast, lightweight source control management system designed
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    16
for efficient handling of very large distributed projects.
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    17
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    18
%prep
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    19
rm -rf $RPM_BUILD_ROOT
1273
ab22af71386f Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents: 563
diff changeset
    20
%setup -q
459
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    21
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    22
%build
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    23
python setup.py build
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    24
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    25
%install
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    26
python setup.py install --root $RPM_BUILD_ROOT
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    27
563
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    28
%clean
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    29
rm -rf $RPM_BUILD_ROOT
459
7c1952b29656 Add an RPM spec file
mpm@selenic.com
parents:
diff changeset
    30
563
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    31
%files
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    32
%defattr(-,root,root,-)
1273
ab22af71386f Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents: 563
diff changeset
    33
%doc doc/* contrib/patchbomb *.cgi
563
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    34
%dir %{pythonlib}
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    35
%{_bindir}/hgmerge
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    36
%{_bindir}/hg
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    37
%{pythonlib}/templates
1273
ab22af71386f Clean up RPM spec file
Florian La Roche <laroche@redhat.com>
parents: 563
diff changeset
    38
%{pythonlib}/*.py*
563
42a6a41ab76b [PATCH] clean up RPM spec file
mpm@selenic.com
parents: 459
diff changeset
    39
%{pythonlib}/*.so