Merge branch 'master' into f13
This commit is contained in:
commit
4786dbed7b
19
mercurial-i18n.patch
Normal file
19
mercurial-i18n.patch
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
*** /tmp/ediff2864wKI 2010-10-06 08:30:42.639138469 -0400
|
||||||
|
--- mercurial/i18n.py 2010-10-06 08:29:26.720138409 -0400
|
||||||
|
***************
|
||||||
|
*** 15,21 ****
|
||||||
|
module = __file__
|
||||||
|
|
||||||
|
base = os.path.dirname(module)
|
||||||
|
! for dir in ('.', '..'):
|
||||||
|
localedir = os.path.join(base, dir, 'locale')
|
||||||
|
if os.path.isdir(localedir):
|
||||||
|
break
|
||||||
|
--- 15,21 ----
|
||||||
|
module = __file__
|
||||||
|
|
||||||
|
base = os.path.dirname(module)
|
||||||
|
! for dir in ('.', '..', '/usr/share'):
|
||||||
|
localedir = os.path.join(base, dir, 'locale')
|
||||||
|
if os.path.isdir(localedir):
|
||||||
|
break
|
@ -3,17 +3,16 @@
|
|||||||
Summary: Mercurial -- a distributed SCM
|
Summary: Mercurial -- a distributed SCM
|
||||||
Name: mercurial
|
Name: mercurial
|
||||||
Version: 1.6.4
|
Version: 1.6.4
|
||||||
Release: 1%{?dist}
|
Release: 3%{?dist}
|
||||||
License: GPLv2+
|
License: GPLv2+
|
||||||
Group: Development/Tools
|
Group: Development/Tools
|
||||||
URL: http://www.selenic.com/mercurial/
|
URL: http://www.selenic.com/mercurial/
|
||||||
Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
|
Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
|
||||||
Source1: mercurial-site-start.el
|
Source1: mercurial-site-start.el
|
||||||
# temporary fix for filemerge bug
|
Patch0: mercurial-i18n.patch
|
||||||
#Patch0: mercurial-mergetools.hgrc.patch
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
|
||||||
BuildRequires: python python-devel
|
BuildRequires: python python-devel
|
||||||
BuildRequires: emacs emacs-el pkgconfig
|
BuildRequires: emacs emacs-el pkgconfig gettext
|
||||||
Requires: python
|
Requires: python
|
||||||
Provides: hg = %{version}-%{release}
|
Provides: hg = %{version}-%{release}
|
||||||
|
|
||||||
@ -77,7 +76,7 @@ documentation.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
#%patch0 -p1
|
%patch0 -p0
|
||||||
|
|
||||||
%build
|
%build
|
||||||
make all
|
make all
|
||||||
@ -129,10 +128,19 @@ install -m 644 hgk.rc $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
|
|||||||
|
|
||||||
install -m 644 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
|
||||||
|
|
||||||
|
mv $RPM_BUILD_ROOT%{python_sitearch}/mercurial/locale $RPM_BUILD_ROOT%{_datadir}/locale
|
||||||
|
rm -rf $RPM_BUILD_ROOT%{python_sitearch}/mercurial/locale
|
||||||
|
|
||||||
|
|
||||||
|
%find_lang hg
|
||||||
|
|
||||||
|
grep -v locale %{name}-base.files > %{name}-base-filtered.files
|
||||||
|
cat %{name}-base-filtered.files hg.lang > %{name}-base+hg.lang.files
|
||||||
|
|
||||||
%clean
|
%clean
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
|
|
||||||
%files -f %{name}-base.files
|
%files -f %{name}-base+hg.lang.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
|
%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) %{_mandir}/man?/hg*.gz
|
||||||
@ -166,6 +174,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
##cd tests && %{__python} run-tests.py
|
##cd tests && %{__python} run-tests.py
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Wed Oct 6 2010 Neal Becker <ndbecker2@gmail.com> - 1.6.4-3
|
||||||
|
- patch i18n.py so hg will find moved locale files
|
||||||
|
|
||||||
* Fri Oct 1 2010 Neal Becker <ndbecker2@gmail.com> - 1.6.4-1
|
* Fri Oct 1 2010 Neal Becker <ndbecker2@gmail.com> - 1.6.4-1
|
||||||
- Update to 1.6.4
|
- Update to 1.6.4
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user