[hg-git/el6] Modified for EPEL

Christopher Meng cicku at fedoraproject.org
Thu Jun 6 17:06:08 UTC 2013


commit 1759600265dc7db72402ed284c87f96f27fca08b
Author: Christopher Meng <rpm at cicku.me>
Date:   Fri Jun 7 01:05:22 2013 +0800

    Modified for EPEL

 hg-git.spec |    8 +++++++-
 1 files changed, 7 insertions(+), 1 deletions(-)
---
diff --git a/hg-git.spec b/hg-git.spec
index 783787b..97ebe1d 100644
--- a/hg-git.spec
+++ b/hg-git.spec
@@ -10,11 +10,12 @@ Source0:           https://bitbucket.org/durin42/%{name}/get/%{version}.tar.bz2
 
 BuildArch:         noarch
 BuildRequires:     mercurial
-BuildRequires:     python2-devel
+BuildRequires:     python-devel
 BuildRequires:     python-dulwich
 BuildRequires:     python-setuptools
 Requires:          mercurial
 Requires:          python-dulwich
+BuildRoot:         %{_tmppath}/%{name}-%{version}-%{release}-root
 
 %description
 This is the Hg-Git plugin for Mercurial, adding the ability to push and pull
@@ -32,9 +33,14 @@ identical - Mercurial data does not get lost in translation.
 %{__python} setup.py build
 
 %install
+rm -rf %{buildroot}
 %{__python} setup.py install -O1 --skip-build --root=%{buildroot}
 
+%clean
+rm -rf %{buildroot}
+
 %files
+%defattr(-,root,root)
 %doc COPYING DESIGN.txt README.md TODO.txt
 %{python_sitelib}/hggit/
 %{python_sitelib}/hg_git-0.4.0-py2.7.egg-info/


More information about the scm-commits mailing list