From 3a5b1542912cab8f47acecbdd9a729a7eb698cfb Mon Sep 17 00:00:00 2001 From: Neal Becker Date: Fri, 27 Aug 2010 07:16:58 -0400 Subject: [PATCH 1/2] Fix some rpmlint complaints --- mercurial.spec | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/mercurial.spec b/mercurial.spec index 60e2588..a533f1c 100644 --- a/mercurial.spec +++ b/mercurial.spec @@ -1,6 +1,6 @@ %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")} -Summary: A fast, lightweight distributed source control management system +Summary: Mercurial -- a distributed SCM Name: mercurial Version: 1.6.3 Release: 1%{?dist} @@ -92,8 +92,8 @@ make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir} grep -v 'hgk.py*' < %{name}.files > %{name}-base.files grep 'hgk.py*' < %{name}.files > %{name}-hgk.files -install -D contrib/hgk $RPM_BUILD_ROOT%{_libexecdir}/mercurial/hgk -install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} +install -D -m 755 contrib/hgk $RPM_BUILD_ROOT%{_libexecdir}/mercurial/hgk +install -m 755 contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir} bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d mkdir -p $bash_completion_dir @@ -127,9 +127,9 @@ hgk= [hgk] path=%{_libexecdir}/mercurial/hgk EOF -install hgk.rc $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d +install -m 644 hgk.rc $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d -install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc +install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc %clean rm -rf $RPM_BUILD_ROOT @@ -139,7 +139,7 @@ rm -rf $RPM_BUILD_ROOT %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi %doc %attr(644,root,root) %{_mandir}/man?/hg*.gz %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc -%{_sysconfdir}/bash_completion.d/mercurial.sh +%config(noreplace) %{_sysconfdir}/bash_completion.d/mercurial.sh %{_datadir}/zsh/site-functions/_mercurial %{_bindir}/hg-ssh %dir %{_sysconfdir}/bash_completion.d/ @@ -151,13 +151,16 @@ rm -rf $RPM_BUILD_ROOT %dir %{python_sitearch}/hgext %files -n emacs-%{pkg} +%defattr(-,root,root,-) %{emacs_lispdir}/*.elc %{emacs_startdir}/*.el %files -n emacs-%{pkg}-el +%defattr(-,root,root,-) %{emacs_lispdir}/*.el %files hgk -f %{name}-hgk.files +%defattr(-,root,root,-) %{_libexecdir}/mercurial/ %{_sysconfdir}/mercurial/hgrc.d/hgk.rc From a6bb01d487a78feddf46fb0a77fcf3097c5da8be Mon Sep 17 00:00:00 2001 From: Neal Becker Date: Fri, 27 Aug 2010 07:20:43 -0400 Subject: [PATCH 2/2] Update spec to 1.6.3-2 --- mercurial.spec | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mercurial.spec b/mercurial.spec index a533f1c..c8ddf39 100644 --- a/mercurial.spec +++ b/mercurial.spec @@ -3,7 +3,7 @@ Summary: Mercurial -- a distributed SCM Name: mercurial Version: 1.6.3 -Release: 1%{?dist} +Release: 2%{?dist} License: GPLv2+ Group: Development/Tools URL: http://www.selenic.com/mercurial/ @@ -57,9 +57,7 @@ Group: Applications/Editors Requires: emacs-%{pkg} = %{version}-%{release} %description -n emacs-%{pkg}-el -This package contains the elisp source files for %{pkg} under GNU Emacs. You -do not need to install this package to run %{pkg}. Install the emacs-%{pkg} -package to use %{pkg} with GNU Emacs. +This package contains the elisp source files for %{pkg} under GNU Emacs. %package hgk Summary: Hgk interface for mercurial @@ -168,6 +166,9 @@ rm -rf $RPM_BUILD_ROOT ##cd tests && %{__python} run-tests.py %changelog +* Fri Aug 27 2010 Neal Becker - 1.6.3-1 +- Fix some rpmlint issues + * Thu Aug 26 2010 Neal Becker - 1.6.3-1 - Update to 1.6.3