/[packages]/updates/5/mercurial/current/SPECS/mercurial.spec
ViewVC logotype

Contents of /updates/5/mercurial/current/SPECS/mercurial.spec

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1107868 - (show annotations) (download)
Sat Jun 17 12:49:36 2017 UTC (6 years, 10 months ago) by philippem
File size: 3871 byte(s)
fix mga#20849, CVE-2017-9462, bump subrel
1 %define subrel 3
2
3 Summary: A fast, lightweight distributed source control management system
4 Name: mercurial
5 Version: 3.1.1
6 Release: %mkrel 5
7 License: GPLv2+
8 Group: Development/Other
9 URL: http://www.selenic.com/mercurial/
10 Source0: http://www.selenic.com/mercurial/release/%{name}-%{version}.tar.gz
11 # PATCH-FIX-UPSTREAM mercurial-CVE-2014-9462.patch tiwai@suse.de - CVE-2014-9462, bnc#923070
12 Patch0: mercurial-CVE-2014-9462.patch
13 # PATCH-FIX-UPSTREAM CVE-2016-3630, mga#18124
14 Patch101: hg-CVE-2016-3630-parsers_detect_short_records.patch
15 Patch102: hg-CVE-2016-3630-parsers_fix_list_sizing_rounding_error.patch
16 # PATCH-FIX-UPSTREAM CVE-2016-3068, mga#18124
17 Patch103: hg-CVE-2016-3068-subrepo_set_GIT_ALLOW_PROTOCOL.patch
18 # PATCH-FIX-UPSTREAM Preliminary change for CVE-2016-3069, mga#18124
19 Patch104: hg-convert_allow_customizing_git_remote_prefix.patch
20 Patch105: hg-convert_fix_git_convert_using_servers_branches.name
21 # PATCH-FIX-UPSTREAM CVE-2016-3069, mga#18124
22 Patch106: hg-CVE-2016-3069-01-convert_add_new_non_clowny_interface.patch
23 Patch107: hg-CVE-2016-3069-02-convert_rewrite_calls_to_Git.patch
24 Patch108: hg-CVE-2016-3069-03-convert_dead_code_removal.patch
25 Patch109: hg-CVE-2016-3069-04-convert_rewrite_gitpipe.patch
26 Patch110: hg-CVE-2016-3069-05-convert_test_for_shell_injection.patch
27 # PATCH-FIX-UPSTREAM CVE-2016-3105, mga#18363
28 Patch111: mercurial-3.1.1-CVE-2016-3105.patch
29 # PATCH-FIX-UPSTREAM CVE-2017-9462, mga#20849
30 Patch112: hg-CVE-2017-9462.patch
31 BuildRequires: pkgconfig(python)
32 BuildRequires: xmlto
33 BuildRequires: asciidoc
34 BuildRequires: python-docutils
35 Provides: hg = %{version}-%{release}
36
37 %description
38 Mercurial is a fast, lightweight source control management system
39 designed for efficient handling of very large distributed
40 projects.
41
42
43 %prep
44 %setup -q
45 %patch0 -p1
46 %patch101 -p1
47 %patch102 -p1
48 %patch103 -p1
49 %patch104 -p1
50 %patch105 -p1
51 %patch106 -p1
52 %patch107 -p1
53 %patch108 -p1
54 %patch109 -p1
55 %patch110 -p1
56 %patch111 -p1
57 %patch112 -p1
58
59 %build
60 %make all
61
62 %install
63 %{__python} setup.py install -O1 --root $RPM_BUILD_ROOT --prefix %{_prefix}
64 make install-doc DESTDIR=$RPM_BUILD_ROOT MANDIR=%{_mandir}
65
66 install contrib/hgk $RPM_BUILD_ROOT%{_bindir}
67 install contrib/convert-repo $RPM_BUILD_ROOT%{_bindir}/mercurial-convert-repo
68 install contrib/hg-ssh $RPM_BUILD_ROOT%{_bindir}
69
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
74 zsh_completion_dir=$RPM_BUILD_ROOT%{_datadir}/zsh/site-functions
75 mkdir -p $zsh_completion_dir
76 install -m 644 contrib/zsh_completion $zsh_completion_dir/_mercurial
77
78 lisp_dir=$RPM_BUILD_ROOT%{_datadir}/emacs/site-lisp
79 mkdir -p $lisp_dir
80 install -m 644 contrib/mercurial.el $lisp_dir
81 install -m 644 contrib/mq.el $lisp_dir
82
83 xlisp_dir=$RPM_BUILD_ROOT%{_datadir}/xemacs/site-packages/lisp
84 mkdir -p $xlisp_dir
85 install -m 644 contrib/mercurial.el $xlisp_dir
86 install -m 644 contrib/mq.el $xlisp_dir
87
88 mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d
89 install -m 644 contrib/mergetools.hgrc $RPM_BUILD_ROOT/%{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
90
91 %files
92 %doc CONTRIBUTORS COPYING doc/README doc/hg*.txt doc/hg*.html *.cgi contrib/*.fcgi
93 %doc %attr(644,root,root) contrib/*.svg contrib/sample.hgrc
94 %dir %{_sysconfdir}/mercurial
95 %dir %{_sysconfdir}/mercurial/hgrc.d
96 %config(noreplace) %{_sysconfdir}/mercurial/hgrc.d/mergetools.rc
97 %{_mandir}/man*/*
98 %{_sysconfdir}/bash_completion.d/mercurial.sh
99 %{_datadir}/zsh/site-functions/_mercurial
100 %{_datadir}/emacs/site-lisp/*.el
101 %{_datadir}/xemacs/site-packages/lisp/*.el
102 %{_bindir}/hg
103 %{_bindir}/hgk
104 %{_bindir}/hg-ssh
105 %{_bindir}/mercurial-convert-repo
106 %{python_sitearch}/mercurial
107 %{python_sitearch}/mercurial*.egg-info
108 %{python_sitearch}/hgext
109

  ViewVC Help
Powered by ViewVC 1.1.30