Compare commits
1 Commits
Author | SHA256 | Date | |
---|---|---|---|
6801cdc6e0 |
BIN
mercurial-6.4.3.tar.gz
(Stored with Git LFS)
Normal file
BIN
mercurial-6.4.3.tar.gz
(Stored with Git LFS)
Normal file
Binary file not shown.
BIN
mercurial-6.9.2.tar.gz
(Stored with Git LFS)
BIN
mercurial-6.9.2.tar.gz
(Stored with Git LFS)
Binary file not shown.
11
mercurial-docutils-compat.diff
Normal file
11
mercurial-docutils-compat.diff
Normal file
@@ -0,0 +1,11 @@
|
|||||||
|
--- doc/Makefile.orig 2011-03-09 13:05:17.000000000 +0100
|
||||||
|
+++ doc/Makefile 2011-03-09 13:06:03.000000000 +0100
|
||||||
|
@@ -27,7 +27,7 @@
|
||||||
|
|
||||||
|
%: %.txt %.gendoc.txt common.txt
|
||||||
|
$(PYTHON) runrst hgmanpage $(RSTARGS) --halt warning \
|
||||||
|
- --strip-elements-with-class htmlonly $*.txt $*
|
||||||
|
+ $*.txt $*
|
||||||
|
|
||||||
|
%.html: %.txt %.gendoc.txt common.txt
|
||||||
|
$(PYTHON) runrst html $(RSTARGS) --halt warning \
|
1858
mercurial.changes
1858
mercurial.changes
File diff suppressed because it is too large
Load Diff
@@ -1,7 +1,7 @@
|
|||||||
#
|
#
|
||||||
# spec file for package mercurial
|
# spec file for package mercurial
|
||||||
#
|
#
|
||||||
# Copyright (c) 2025 SUSE LLC
|
# Copyright (c) 2023 SUSE LLC
|
||||||
#
|
#
|
||||||
# All modifications and additions to the file contributed by third parties
|
# All modifications and additions to the file contributed by third parties
|
||||||
# remain the property of their copyright owners, unless otherwise agreed
|
# remain the property of their copyright owners, unless otherwise agreed
|
||||||
@@ -16,22 +16,11 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
%if 0%{?suse_version} > 1600
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
# Tumbleweed
|
%{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")}
|
||||||
%define pythons python3
|
|
||||||
%global pprefix python3
|
|
||||||
%else
|
|
||||||
%if 0%{?sle_version} >= 150600
|
|
||||||
%{?sle15_python_module_pythons}
|
|
||||||
%global pprefix python311
|
|
||||||
%else
|
|
||||||
%define pythons python3
|
|
||||||
%global pprefix python3
|
|
||||||
%endif
|
%endif
|
||||||
%endif
|
|
||||||
|
|
||||||
Name: mercurial
|
Name: mercurial
|
||||||
Version: 6.9.2
|
Version: 6.4.3
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Scalable Distributed SCM
|
Summary: Scalable Distributed SCM
|
||||||
License: GPL-2.0-or-later
|
License: GPL-2.0-or-later
|
||||||
@@ -41,20 +30,22 @@ Source: https://www.mercurial-scm.org/release/mercurial-%{version}.tar.g
|
|||||||
Source1: cacerts.rc
|
Source1: cacerts.rc
|
||||||
Source99: mercurial-rpmlintrc
|
Source99: mercurial-rpmlintrc
|
||||||
Patch0: mercurial-hgk-path-fix.diff
|
Patch0: mercurial-hgk-path-fix.diff
|
||||||
|
# PATCH-FIX-OPENSUSE mercurial-docutils-compat.diff -- Fix for new docutils options not available on 11.1 and older
|
||||||
|
Patch1: mercurial-docutils-compat.diff
|
||||||
# PATCH-FIX-OPENSUSE mercurial-locale-path-fix.patch saschpe@suse.de -- locales are found in /usr/share/locale
|
# PATCH-FIX-OPENSUSE mercurial-locale-path-fix.patch saschpe@suse.de -- locales are found in /usr/share/locale
|
||||||
Patch2: mercurial-locale-path-fix.patch
|
Patch2: mercurial-locale-path-fix.patch
|
||||||
BuildRequires: %{python_module devel}
|
|
||||||
BuildRequires: %{python_module setuptools}
|
|
||||||
BuildRequires: %{python_module xml}
|
|
||||||
BuildRequires: %{pythons}
|
|
||||||
BuildRequires: fdupes
|
BuildRequires: fdupes
|
||||||
Requires: %{pprefix}-curses
|
BuildRequires: python3
|
||||||
Requires: %{pprefix}-xml
|
BuildRequires: python3-devel
|
||||||
|
BuildRequires: python3-xml
|
||||||
|
Requires: python3-curses
|
||||||
|
Requires: python3-xml
|
||||||
|
Recommends: %{name}-lang
|
||||||
Provides: hg = %{version}
|
Provides: hg = %{version}
|
||||||
%if 0%{?suse_version} < 1210
|
%if 0%{?suse_version} < 1210
|
||||||
BuildRequires: docutils
|
BuildRequires: docutils
|
||||||
%else
|
%else
|
||||||
BuildRequires: %{python_module docutils}
|
BuildRequires: python3-docutils
|
||||||
%endif
|
%endif
|
||||||
%if 0%{?sles_version}
|
%if 0%{?sles_version}
|
||||||
Requires: openssl-certs
|
Requires: openssl-certs
|
||||||
@@ -63,11 +54,11 @@ Requires: ca-certificates
|
|||||||
%endif
|
%endif
|
||||||
%if 0%{?with_tests}
|
%if 0%{?with_tests}
|
||||||
Source90: tests.blacklist
|
Source90: tests.blacklist
|
||||||
BuildRequires: %{python_module Pygments}
|
|
||||||
BuildRequires: bzr
|
BuildRequires: bzr
|
||||||
BuildRequires: git
|
BuildRequires: git
|
||||||
BuildRequires: gpg
|
BuildRequires: gpg
|
||||||
BuildRequires: ncurses-devel
|
BuildRequires: ncurses-devel
|
||||||
|
BuildRequires: python3-Pygments
|
||||||
BuildRequires: subversion-python
|
BuildRequires: subversion-python
|
||||||
BuildRequires: unzip
|
BuildRequires: unzip
|
||||||
#BuildRequires: python-pyflakes
|
#BuildRequires: python-pyflakes
|
||||||
@@ -92,25 +83,27 @@ This package contains its tests.
|
|||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q
|
%setup -q
|
||||||
%patch -P 0
|
%patch0
|
||||||
%patch -P 2 -p1
|
%if 0%{?suse_version} && 0%{?suse_version} <= 1110
|
||||||
|
%patch1
|
||||||
|
%endif
|
||||||
|
%patch2 -p1
|
||||||
|
|
||||||
sed -i -e '1s@env @@' contrib/hgk
|
sed -i -e '1s@env @@' contrib/hgk
|
||||||
|
|
||||||
chmod 644 hgweb.cgi
|
chmod 644 hgweb.cgi
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%make_build all PYTHON=%{expand:%%__%{pythons}}
|
%make_build all PYTHON=python3
|
||||||
%make_build -C contrib/chg all
|
%make_build -C contrib/chg all
|
||||||
|
|
||||||
%install
|
%install
|
||||||
make install PREFIX="%{_prefix}" DESTDIR=%{buildroot} PYTHON=%{expand:%%__%{pythons}}
|
make install PREFIX="%{_prefix}" DESTDIR=%{buildroot} PYTHON=python3
|
||||||
make -C contrib/chg install PREFIX="%{_prefix}" DESTDIR=%{buildroot}
|
make -C contrib/chg install PREFIX="%{_prefix}" DESTDIR=%{buildroot}
|
||||||
%{expand:%%%{pythons}_fix_shebang}
|
|
||||||
|
|
||||||
# Move locales to proper location
|
# Move locales to proper location
|
||||||
mkdir -p %{buildroot}%{_datadir}/locale
|
mkdir -p %{buildroot}%{_datadir}/locale
|
||||||
mv %{buildroot}%{python_sitearch}/mercurial/locale/* %{buildroot}%{_datadir}/locale
|
mv %{buildroot}%{python3_sitearch}/mercurial/locale/* %{buildroot}%{_datadir}/locale
|
||||||
%find_lang hg
|
%find_lang hg
|
||||||
|
|
||||||
# Install stuff in contrib
|
# Install stuff in contrib
|
||||||
@@ -128,7 +121,7 @@ cp -a tests/. %{buildroot}%{_datadir}/mercurial/tests
|
|||||||
|
|
||||||
%if 0%{?with_tests}
|
%if 0%{?with_tests}
|
||||||
%check
|
%check
|
||||||
%make_build tests TESTFLAGS="-v --blacklist=%{SOURCE90}" PYTHON=%{expand:%%__%{pythons}}
|
%make_build tests TESTFLAGS="-v --blacklist=%{SOURCE90}" PYTHON=python3
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%files lang -f hg.lang
|
%files lang -f hg.lang
|
||||||
@@ -149,11 +142,10 @@ cp -a tests/. %{buildroot}%{_datadir}/mercurial/tests
|
|||||||
%{_datadir}/emacs
|
%{_datadir}/emacs
|
||||||
%{_datadir}/xemacs
|
%{_datadir}/xemacs
|
||||||
%{_mandir}/man1/hg.1%{?ext_man}
|
%{_mandir}/man1/hg.1%{?ext_man}
|
||||||
%{_mandir}/man1/hg-*.1%{?ext_man}
|
|
||||||
%{_mandir}/man1/chg.1%{?ext_man}
|
%{_mandir}/man1/chg.1%{?ext_man}
|
||||||
%{_mandir}/man5/hgignore.5%{?ext_man}
|
%{_mandir}/man5/hgignore.5%{?ext_man}
|
||||||
%{_mandir}/man5/hgrc.5%{?ext_man}
|
%{_mandir}/man5/hgrc.5%{?ext_man}
|
||||||
%{_mandir}/man8/hg-ssh.8%{?ext_man}
|
%{_mandir}/man8/hg-ssh.8%{?ext_man}
|
||||||
%{python_sitearch}/*
|
%{python3_sitearch}/*
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Reference in New Issue
Block a user