mercurial-vl.spec 11 KB

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