mercurial-vl.spec 11 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374
  1. Summary: A fast, lightweight distributed source control management system
  2. Summary(ja): 軽量で高速な分散構成管理システム
  3. Name: mercurial
  4. Version: 1.4.3
  5. Release: 1%{?_dist_release}
  6. License: GPLv2
  7. Group: Development/Tools
  8. URL: http://www.selenic.com/mercurial/
  9. Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
  10. Source1: mercurial-init.el
  11. Source10: mercurial-el-install.sh
  12. Source11: mercurial-el-remove.sh
  13. BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root
  14. BuildRequires: python python-devel
  15. BuildRequires: emacsen-common pkgconfig
  16. Requires: python
  17. Provides: hg = %{version}-%{release}
  18. %description
  19. Mercurial is a fast, lightweight source control management system designed
  20. for efficient handling of very large distributed projects.
  21. Quick start: http://www.selenic.com/mercurial/wiki/index.cgi/QuickStart
  22. Tutorial: http://www.selenic.com/mercurial/wiki/index.cgi/Tutorial
  23. Extensions: http://www.selenic.com/mercurial/wiki/index.cgi/CategoryExtension
  24. %package el
  25. Summary: Mercurial version control system support for Emacs
  26. Summary(ja): Mercurial バージョン管理システム用 Emacs サポート
  27. Group: Applications/Editors
  28. Requires: hg = %{version}-%{release}, emacsen-common
  29. Requires: emacsen
  30. %description el
  31. Contains byte compiled elisp packages for mercurial.
  32. To get started: start emacs, load hg-mode with M-x hg-mode, and show
  33. help with C-c h h
  34. %package hgk
  35. Summary: Hgk interface for mercurial
  36. Summary(ja): Mercurial 用 Hgk インタフェース
  37. Group: Development/Tools
  38. Requires: hg = %{version}-%{release}, tk
  39. %description hgk
  40. A Mercurial extension for displaying the change history graphically
  41. using Tcl/Tk. Displays branches and merges in an easily
  42. understandable way and shows diffs for each revision. Based on
  43. gitk for the git SCM.
  44. Adds the "hg view" command. See
  45. http://www.selenic.com/mercurial/wiki/index.cgi/UsingHgk for more
  46. documentation.
  47. %prep
  48. %setup -q
  49. %build
  50. make all
  51. %install
  52. rm -rf $RPM_BUILD_ROOT
  53. %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --prefix %{_prefix} --record=%{name}.files
  54. make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
  55. grep -v 'hgk.py*' < %{name}.files > %{name}-base.files
  56. grep 'hgk.py*' < %{name}.files > %{name}-hgk.files
  57. install -D contrib/hgk $RPM_BUILD_ROOT%{_libexecdir}/mercurial/hgk
  58. install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo
  59. install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}
  60. install contrib/git-viz/{hg-viz,git-rev-tree} $RPM_BUILD_ROOT%{_bindir}
  61. bash_completion_dir=$RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
  62. mkdir -p $bash_completion_dir
  63. install -m 644 contrib/bash_completion $bash_completion_dir/mercurial.sh
  64. zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
  65. mkdir -p $zsh_completion_dir
  66. install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
  67. mkdir -p $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/mercurial
  68. pushd contrib
  69. for file in mercurial.el mq.el %{SOURCE1}; do
  70. install -p -m 644 $file $RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp/%{name}/
  71. done
  72. popd
  73. %__mkdir_p %{buildroot}%{_prefix}/lib/emacsen-common/packages/install
  74. %__mkdir_p %{buildroot}%{_prefix}/lib/emacsen-common/packages/remove
  75. %_installemacsenscript %{name} %{SOURCE10}
  76. %_removeemacsenscript %{name} %{SOURCE11}
  77. mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
  78. cat >hgk.rc <<EOF
  79. [extensions]
  80. # enable hgk extension ('hg help' shows 'view' as a command)
  81. hgk=
  82. [hgk]
  83. path=%{_libexecdir}/mercurial/hgk
  84. EOF
  85. install hgk.rc $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
  86. install contrib/mergetools.hgrc $RPM_BUILD_ROOT%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc.sample
  87. %clean
  88. rm -rf $RPM_BUILD_ROOT
  89. %post el
  90. if [ $1 = 2 ] ; then
  91. %_emacsenPackageRemove %{name}
  92. fi
  93. %_addemacsenlist %{name}
  94. %_emacsenPackageInstall %{name}
  95. %preun el
  96. if [ $1 = 0 ] ; then
  97. %_emacsenPackageRemove %{name}
  98. %_removeemacsenlist %{name}
  99. fi
  100. %files -f %{name}-base.files
  101. %defattr(-,root,root,-)
  102. %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html doc/ja *.cgi contrib/*.fcgi
  103. %doc %attr(644,root,root) %{_mandir}/man?/hg*.gz
  104. %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
  105. %{_sysconfdir}/bash_completion.d/mercurial.sh
  106. %{_datadir}/zsh/site-functions/_mercurial
  107. %{_bindir}/hg-ssh
  108. %{_bindir}/hg-viz
  109. %{_bindir}/git-rev-tree
  110. %{_bindir}/mercurial-convert-repo
  111. %dir %{_sysconfdir}/mercurial
  112. %dir %{_sysconfdir}/mercurial/hgrc.d
  113. %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc.sample
  114. %{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}
  115. %dir %{python_sitearch}/mercurial
  116. %dir %{python_sitearch}/hgext
  117. %files el
  118. %{_datadir}/emacs/site-lisp/mercurial
  119. %{_prefix}/lib/emacsen-common/packages/*/mercurial
  120. %files hgk -f %{name}-hgk.files
  121. %{_libexecdir}/mercurial/
  122. %{_sysconfdir}/mercurial/hgrc.d/hgk.rc
  123. #%%check
  124. #cd tests && %{__python} run-tests.py
  125. %changelog
  126. * Fri Feb 19 2010 Daisuke SUZUKI <daisuke@linux.or.jp> 1.4.3-1
  127. - update to 1.4.3
  128. * Tue Jan 6 2009 MATSUBAYASHI Kohji <shaolin@vinelinux.org> - 1.1.2-3
  129. - initial build for VineSeed
  130. - add el subpackage for adapting emacsen-common way of handling emacs support
  131. * Thu Jan 1 2009 Neal Becker <ndbecker2@gmail.com> - 1.1.2-2
  132. - Rename mergetools.rc -> mergetools.rc.sample
  133. * Thu Jan 1 2009 Neal Becker <ndbecker2@gmail.com> - 1.1.2-1
  134. - Update to 1.1.2
  135. * Wed Dec 24 2008 Neal Becker <ndbecker2@gmail.com> - 1.1.1-3
  136. - Install mergetools.rc as mergetools.rc.sample
  137. * Sun Dec 21 2008 Neal Becker <ndbecker2@gmail.com> - 1.1.1-2
  138. - Fix typo
  139. * Sun Dec 21 2008 Neal Becker <ndbecker2@gmail.com> - 1.1.1-1
  140. - Update to 1.1.1
  141. * Thu Dec 04 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.1-2
  142. - Rebuild for Python 2.6
  143. * Tue Dec 2 2008 Neal Becker <ndbecker2@gmail.com> - 1.1-1
  144. - Update to 1.1
  145. * Mon Dec 1 2008 Neal Becker <ndbecker2@gmail.com> - 1.0.2-4
  146. - Bump tag
  147. * Mon Dec 1 2008 Neal Becker <ndbecker2@gmail.com> - 1.0.2-3
  148. - Remove BR asciidoc
  149. - Use macro for python executable
  150. * Sat Nov 29 2008 Ignacio Vazquez-Abrams <ivazqueznet+rpm@gmail.com> - 1.0.2-2
  151. - Rebuild for Python 2.6
  152. * Fri Aug 15 2008 Neal Becker <ndbecker2@gmail.com> - 1.0.2-1
  153. - Update to 1.0.2
  154. * Sun Jun 15 2008 Neal Becker <ndbecker2@gmail.com> - 1.0.1-4
  155. - Bitten by expansion of commented out macro (again)
  156. * Sun Jun 15 2008 Neal Becker <ndbecker2@gmail.com> - 1.0.1-3
  157. - Add BR pkgconfig
  158. * Sun Jun 15 2008 Neal Becker <ndbecker2@gmail.com> - 1.0.1-2
  159. - Update to 1.0.1
  160. - Fix emacs_version, etc macros (need expand)
  161. - Remove patch0
  162. * Mon Jun 2 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-15
  163. - Bump release tag
  164. * Thu Apr 17 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-14
  165. - Oops, fix %%files due to last change
  166. * Wed Apr 16 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-13
  167. - install mergetools.hgrc as mergetools.rc
  168. * Sat Apr 12 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-12
  169. - Remove xemacs pkg - this is moved to xemacs-extras
  170. - Own %{python_sitearch}/{mercurial,hgext} dirs
  171. * Thu Apr 10 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-11
  172. - Use install -p to install .el{c} files
  173. - Don't (load mercurial) by default.
  174. * Wed Apr 9 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-10
  175. - Patch to hgk from Mads Kiilerich <mads@kiilerich.com>
  176. * Tue Apr 8 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-9
  177. - Add '-l mercurial.el' for emacs also
  178. * Tue Apr 8 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-8
  179. - BR xemacs-packages-extra
  180. * Tue Apr 8 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-7
  181. - Various fixes
  182. * Tue Apr 8 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-6
  183. - fix to comply with emacs packaging guidelines
  184. * Thu Mar 27 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-5
  185. - Move hgk-related py files to hgk
  186. - Put mergetools.hgrc in /etc/mercurial/hgrc.d
  187. - Add hgk.rc and put in /etc/mercurial/hgrc.d
  188. * Wed Mar 26 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-4
  189. - Rename mercurial-site-start -> mercurial-site-start.el
  190. * Wed Mar 26 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-3
  191. - Incorprate suggestions from hopper@omnifarious.org
  192. * Wed Mar 26 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-2
  193. - Add site-start
  194. * Tue Mar 25 2008 Neal Becker <ndbecker2@gmail.com> - 1.0-1
  195. - Update to 1.0
  196. - Disable check for now - 1 test fails
  197. - Move emacs to separate package
  198. - Add check
  199. * Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.9.5-7
  200. - Autorebuild for GCC 4.3
  201. * Fri Nov 9 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.5-6
  202. - rpmlint fixes
  203. * Fri Nov 9 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.5-5
  204. - /etc/mercurial/hgrc.d missing
  205. * Fri Nov 9 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.5-3
  206. - Fix to last change
  207. * Fri Nov 9 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.5-2
  208. - mkdir /etc/mercurial/hgrc.d for plugins
  209. * Tue Oct 23 2007 <ndbecker2@gmail.com> - 0.9.5-2
  210. - Bump tag to fix confusion
  211. * Mon Oct 15 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.5-1
  212. - Sync with spec file from mercurial
  213. * Sat Sep 22 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.4-8
  214. - Just cp contrib tree.
  215. - Revert install -O2
  216. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.4-7
  217. - Change setup.py install to -O2 to get bytecompile on EL-4
  218. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.4-6
  219. - Revert last change.
  220. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.4-5
  221. - Use {ghost} on contrib, otherwise EL-4 build fails
  222. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.4-4
  223. - remove {_datadir}/contrib stuff for now
  224. * Thu Sep 20 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.4-3
  225. - Fix mercurial-install-contrib.patch (/usr/share/mercurial->/usr/share/mercurial/contrib)
  226. * Wed Aug 29 2007 Jonathan Shapiro <shap@eros-os.com> - 0.9.4-2
  227. - update to 0.9.4-2
  228. - install contrib directory
  229. - set up required path for hgk
  230. - install man5 man pages
  231. * Thu Aug 23 2007 Neal Becker <ndbecker2@gmail.com> - 0.9.4-1
  232. - update to 0.9.4
  233. * Wed Jan 3 2007 Jeremy Katz <katzj@redhat.com> - 0.9.3-1
  234. - update to 0.9.3
  235. - remove asciidoc files now that we have them as manpages
  236. * Mon Dec 11 2006 Jeremy Katz <katzj@redhat.com> - 0.9.2-1
  237. - update to 0.9.2
  238. * Mon Aug 28 2006 Jeremy Katz <katzj@redhat.com> - 0.9.1-2
  239. - rebuild
  240. * Tue Jul 25 2006 Jeremy Katz <katzj@redhat.com> - 0.9.1-1
  241. - update to 0.9.1
  242. * Fri May 12 2006 Mihai Ibanescu <misa@redhat.com> - 0.9-1
  243. - update to 0.9
  244. * Mon Apr 10 2006 Jeremy Katz <katzj@redhat.com> - 0.8.1-1
  245. - update to 0.8.1
  246. - add man pages (#188144)
  247. * Fri Mar 17 2006 Jeremy Katz <katzj@redhat.com> - 0.8-3
  248. - rebuild
  249. * Fri Feb 17 2006 Jeremy Katz <katzj@redhat.com> - 0.8-2
  250. - rebuild
  251. * Mon Jan 30 2006 Jeremy Katz <katzj@redhat.com> - 0.8-1
  252. - update to 0.8
  253. * Thu Sep 22 2005 Jeremy Katz <katzj@redhat.com>
  254. - add contributors to %%doc
  255. * Tue Sep 20 2005 Jeremy Katz <katzj@redhat.com> - 0.7
  256. - update to 0.7
  257. * Mon Aug 22 2005 Jeremy Katz <katzj@redhat.com> - 0.6c
  258. - update to 0.6c
  259. * Tue Jul 12 2005 Jeremy Katz <katzj@redhat.com> - 0.6b
  260. - update to new upstream 0.6b
  261. * Fri Jul 1 2005 Jeremy Katz <katzj@redhat.com> - 0.6-1
  262. - Initial build.