2020-08-07 11:17:52 +08:00
|
|
|
%{!?python2_sitelib: %global python2_sitelib %(python2 -c "from distutils.sysconfig import get_python_lib;print(get_python_lib())")}
|
|
|
|
|
|
|
|
Summary: A free, distributed source control management tool.
|
|
|
|
Name: mercurial
|
|
|
|
Version: 5.4
|
2021-12-18 01:46:27 +08:00
|
|
|
Release: 3%{?dist}
|
2020-08-07 11:17:52 +08:00
|
|
|
License: GPLv2+
|
|
|
|
URL: https://www.mercurial-scm.org
|
|
|
|
Group: System Environment/Security
|
|
|
|
Vendor: Microsoft Corporation
|
|
|
|
Distribution: Mariner
|
|
|
|
Source0: https://www.mercurial-scm.org/release/%{name}-%{version}.tar.gz
|
2021-01-28 07:08:40 +08:00
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
BuildRequires: python2
|
|
|
|
BuildRequires: python2-libs
|
|
|
|
BuildRequires: python2-devel
|
2021-01-28 07:08:40 +08:00
|
|
|
%if %{with_check}
|
|
|
|
BuildRequires: check
|
|
|
|
BuildRequires: python-setuptools
|
|
|
|
BuildRequires: unzip
|
|
|
|
BuildRequires: which
|
|
|
|
%endif
|
|
|
|
|
2020-08-07 11:17:52 +08:00
|
|
|
Requires: python2
|
|
|
|
|
|
|
|
%description
|
|
|
|
Mercurial is a distributed source control management tool similar to Git and Bazaar.
|
|
|
|
Mercurial is written in Python and is used by projects such as Mozilla and Vim.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q
|
|
|
|
|
|
|
|
%build
|
|
|
|
make %{?_smp_mflags} build
|
|
|
|
|
|
|
|
%install
|
|
|
|
[ %{buildroot} != "/"] && rm -rf %{buildroot}/*
|
|
|
|
mkdir -p %{buildroot}/%{_bindir}
|
|
|
|
python2 setup.py install --skip-build --root %{buildroot}
|
|
|
|
|
|
|
|
cat >> %{buildroot}/.hgrc << "EOF"
|
|
|
|
[ui]
|
|
|
|
username = "$(id -u)"
|
|
|
|
EOF
|
|
|
|
|
|
|
|
%check
|
|
|
|
sed -i '1087,1088d' tests/test-obsolete.t
|
|
|
|
sed -i '54,56d' tests/test-clonebundles.t
|
|
|
|
sed -i '54i\ \ abort:\ stream:\ not\ a\ Mercurial\ bundle' tests/test-clonebundles.t
|
2021-01-28 07:08:40 +08:00
|
|
|
pushd tests
|
|
|
|
python2 run-tests.py -t 360
|
|
|
|
popd
|
2020-08-07 11:17:52 +08:00
|
|
|
|
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
|
|
|
|
%postun
|
|
|
|
/sbin/ldconfig
|
|
|
|
|
|
|
|
%files
|
|
|
|
%defattr(-,root,root)
|
|
|
|
%license COPYING
|
|
|
|
/.hgrc
|
|
|
|
%{_bindir}/hg
|
|
|
|
%{python2_sitelib}/*
|
|
|
|
|
|
|
|
%changelog
|
2021-12-18 01:46:27 +08:00
|
|
|
* Thu Dec 16 2021 Pawel Winogrodzki <pawelwi@microsoft.com> - 5.4-3
|
|
|
|
- Removing the explicit %%clean stage.
|
|
|
|
|
2021-01-28 07:08:40 +08:00
|
|
|
* Tue Jan 26 2021 Andrew Phelps <anphel@microsoft.com> 5.4-2
|
|
|
|
- Fix check tests
|
|
|
|
* Tue May 19 2020 Andrew Phelps <anphel@microsoft.com> 5.4-1
|
2020-08-07 11:17:52 +08:00
|
|
|
- Update to version 5.4.
|
2021-01-28 07:08:40 +08:00
|
|
|
* Sat May 09 2020 Nick Samson <nisamson@microsoft.com> 4.8.2-2
|
|
|
|
- Added %%license line automatically
|
2020-08-07 11:17:52 +08:00
|
|
|
* Tue Mar 17 2020 Henry Beberman <henry.beberman@microsoft.com> 4.8.2-1
|
|
|
|
- Update to 4.8.2. Removed fixed CVE-2018-17983 patch. License verified.
|
|
|
|
* Tue Sep 03 2019 Mateusz Malisz <mamalisz@microsoft.com> 4.7.1-4
|
|
|
|
- Initial CBL-Mariner import from Photon (license: Apache2).
|
|
|
|
* Mon May 06 2019 Keerthana K <keerthanak@vmware.com> 4.7.1-3
|
|
|
|
- Fix CVE-2018-17983
|
|
|
|
* Thu Oct 25 2018 Sujay G <gsujay@vmware.com> 4.7.1-2
|
|
|
|
- Disable zstd
|
|
|
|
* Mon Sep 10 2018 Srivatsa S. Bhat <srivatsa@csail.mit.edu> 4.7.1-1
|
|
|
|
- Update to version 4.7.1
|
|
|
|
* Tue Oct 17 2017 Xiaolin Li <xiaolinl@vmware.com> 4.3.3-1
|
|
|
|
- Update verion to 4.3.3 for CVE-2017-1000115, CVE-2017-1000116.
|
|
|
|
* Fri Aug 11 2017 Rongrong Qiu <rqiu@vmware.com> 4.1-4
|
|
|
|
- update error info in make check for bug 1900338
|
|
|
|
* Fri Jun 16 2017 Dheeraj Shetty <dheerajs@vmware.com> 4.1-3
|
|
|
|
- Use python2 explicitly while building
|
|
|
|
* Tue Jun 13 2017 Xiaolin Li <xiaolinl@vmware.com> 4.1-2
|
|
|
|
- Apply CVE-2017-9462 patch
|
|
|
|
* Fri Mar 31 2017 Michelle Wang <michellew@vmware.com> 4.1-1
|
|
|
|
- Update package version
|
|
|
|
* Mon Jan 22 2017 Xiaolin Li <xiaolinl@vmware.com> 3.7.1-6
|
|
|
|
- Install with setup.py.
|
|
|
|
* Tue Nov 22 2016 Xiaolin Li <xiaolinl@vmware.com> 3.7.1-5
|
|
|
|
- Apply patches for CVE-2016-3068, CVE-2016-3069, CVE-2016-3105
|
|
|
|
* Fri Oct 07 2016 ChangLee <changlee@vmware.com> 3.7.1-4
|
|
|
|
- Modified %check
|
|
|
|
* Tue May 24 2016 Priyesh Padmavilasom <ppadmavilasom@vmware.com> 3.7.1-3
|
|
|
|
- GA - Bump release of all rpms
|
|
|
|
* Wed May 04 2016 Anish Swaminathan <anishs@vmware.com> 3.7.1-2
|
|
|
|
- Edit postun script.
|
|
|
|
* Thu Feb 25 2016 Kumar Kaushik <kaushikk@vmware.com> 3.7.1-1
|
|
|
|
- Updating Version.
|
|
|
|
* Wed Dec 09 2015 Anish Swaminathan <anishs@vmware.com> 3.1.2-4
|
|
|
|
- Edit post script.
|
|
|
|
* Mon Nov 16 2015 Sharath George <sharathg@vmware.com> 3.1.2-3
|
|
|
|
- Change path to /var/opt.
|
|
|
|
* Tue Jun 30 2015 Alexey Makhalov <amakhalov@vmware.com> 3.1.2-2
|
|
|
|
- /etc/profile.d permission fix
|
|
|
|
* Mon Oct 13 2014 Divya Thaluru <dthaluru@vmware.com> 3.1.2-1
|
|
|
|
- Initial build. First version
|