Commits

Yuya Nishihara committed c96f2bb

tortoisehg.spec: install mergetools.rc as thgmergetools.rc (fixes #1313)

Comments (0)

Files changed (1)

contrib/tortoisehg.spec

 
 install -m 644 -D contrib/_hgtk $RPM_BUILD_ROOT/%{_datadir}/zsh/site-functions/_hgtk
 
+mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
+install contrib/mergetools.rc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/thgmergetools.rc
+
 %find_lang %{name}
 
 %clean
 # Instead we just claim ownership of the zsh top folder ...
 %{_datadir}/zsh
 
+%dir %{_sysconfdir}/mercurial
+%dir %{_sysconfdir}/mercurial/hgrc.d
+%config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/thgmergetools.rc
+
 %files nautilus
 %defattr(-,root,root,-)
 %{_libdir}/nautilus/extensions-2.0/python/nautilus-thg.py*