rebuilt with python3 [release 5.6-2mamba;Wed Dec 02 2020]

This commit is contained in:
Silvan Calarco 2024-01-06 07:05:22 +01:00
parent 6f5e7196e7
commit 63f0fef6c3

View File

@ -1,6 +1,6 @@
Name: mercurial
Version: 5.6
Release: 1mamba
Release: 2mamba
Summary: A scalable distributed Source Control Management system
Group: Applications/Development
Vendor: openmamba
@ -9,13 +9,13 @@ Packager: Stefano Cotta Ramusino <stefano.cotta@openmamba.org>
URL: http://selenic.com/mercurial
Source: http://www.selenic.com/mercurial/release/mercurial-%{version}.tar.gz
License: GPL
Requires: python >= %python_version
## AUTOBUILDREQ-BEGIN
BuildRequires: glibc-devel
BuildRequires: libpython-devel
BuildRequires: libpython3-devel
BuildRequires: python
## AUTOBUILDREQ-END
BuildRequires: python-docutils
BuildRequires: python-docutils-py3
Requires: python3
BuildRoot: %{_tmppath}/%{name}-%{version}-root
%description
@ -33,15 +33,16 @@ A tool called that allows browsing the history of a repository in a GUI.
%setup -q
%build
CFLAGS="%{optflags}" python setup.py build
%make -C doc
CFLAGS="%{optflags}" %{__python3} setup.py build
%make -C doc PYTHON=%{__python3}
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
python setup.py install \
%{__python3} setup.py install \
--root="%{buildroot}" \
--install-headers=%{_includedir}/python \
--install-lib=%{python_sitearch} \
--install-lib=%{python3_sitearch} \
--record=.packlist
install -d %{buildroot}%{_mandir}/man1
@ -57,7 +58,8 @@ rm -f .packlist
%files -f .packlist
%defattr(-,root,root)
%{python27_sitearch}/mercurial/__modulepolicy__.py*
%{python3_sitearch}/mercurial/__modulepolicy__.py*
%{python3_sitearch}/mercurial/__pycache__/__modulepolicy__.cpython*.pyc
%{_mandir}/man1/*
%{_mandir}/man5/*
%doc COPYING CONTRIBUTORS
@ -67,6 +69,9 @@ rm -f .packlist
%{_bindir}/hgk
%changelog
* Wed Dec 02 2020 Silvan Calarco <silvan.calarco@mambasoft.it> 5.6-2mamba
- rebuilt with python3
* Wed Nov 04 2020 Automatic Build System <autodist@mambasoft.it> 5.6-1mamba
- automatic version update by autodist