[mercurial] Try another method to fix unowned dirs

Neal Becker nbecker at fedoraproject.org
Thu Oct 21 17:10:02 UTC 2010


commit 15e55762b9195482ba21ff910804049478533fb8
Author: Neal Becker <ndbecker2 at gmail.com>
Date:   Thu Oct 21 13:09:31 2010 -0400

    Try another method to fix unowned dirs

 mercurial.spec |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/mercurial.spec b/mercurial.spec
index 67fed7b..655d64d 100644
--- a/mercurial.spec
+++ b/mercurial.spec
@@ -3,7 +3,7 @@
 Summary: Mercurial -- a distributed SCM
 Name: mercurial
 Version: 1.6.4
-Release: 4%{?dist}
+Release: 5%{?dist}
 License: GPLv2+
 Group: Development/Tools
 URL: http://www.selenic.com/mercurial/
@@ -86,7 +86,7 @@ rm -rf $RPM_BUILD_ROOT
 %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --prefix %{_prefix} --record=%{name}.files
 make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
 
-grep -v 'hgk.py*' < %{name}.files > %{name}-base.files
+grep -v -e 'hgk.py*' -e %{python_sitearch}/mercurial/ -e %{python_sitearch}/hgext/ < %{name}.files > %{name}-base.files
 grep 'hgk.py*' < %{name}.files > %{name}-hgk.files
 
 install -D -m 755 contrib/hgk       $RPM_BUILD_ROOT%{_libexecdir}/mercurial/hgk
@@ -135,8 +135,6 @@ rm -rf $RPM_BUILD_ROOT%{python_sitearch}/mercurial/locale
 %find_lang hg
 
 grep -v locale %{name}-base.files > %{name}-base-filtered.files
-find $RPM_BUILD_ROOT%{python_sitearch}/{mercurial,hgext} -type d \
-| sed -e "s|^$RPM_BUILD_ROOT\(.*\)|%%dir \1|" >> %{name}-base-filtered.files
 
 %clean
 rm -rf $RPM_BUILD_ROOT
@@ -153,6 +151,8 @@ rm -rf $RPM_BUILD_ROOT
 %dir %{_datadir}/zsh/site-functions/
 %dir %{_sysconfdir}/mercurial
 %dir %{_sysconfdir}/mercurial/hgrc.d
+%{python_sitearch}/mercurial
+%{python_sitearch}/hgext
 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
 
 %files -n emacs-%{pkg}
@@ -173,6 +173,9 @@ rm -rf $RPM_BUILD_ROOT
 ##cd tests && %{__python} run-tests.py
 
 %changelog
+* Thu Oct 21 2010 Neal Becker <ndbecker2 at gmail.com> - 1.6.4-4
+- Try another way to own directories
+
 * Wed Oct 20 2010 Neal Becker <ndbecker2 at gmail.com> - 1.6.4-3
 - Fixup unowned directories
 


More information about the scm-commits mailing list