mercurial-vl.spec 11 KB

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