install translations

This commit is contained in:
Neal Becker 2010-10-05 11:25:31 -04:00
parent e558705fdf
commit 3f69f4d719

View File

@ -3,7 +3,7 @@
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: 2%{?dist}
License: GPLv2+ License: GPLv2+
Group: Development/Tools Group: Development/Tools
URL: http://www.selenic.com/mercurial/ URL: http://www.selenic.com/mercurial/
@ -13,7 +13,7 @@ Source1: mercurial-site-start.el
#Patch0: mercurial-mergetools.hgrc.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}
@ -129,10 +129,17 @@ 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
%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