From 5fe478d08f4d7bb5a5f35d97057e2e436579a7a8fd95f4dbd06f50b0c42b64b1 Mon Sep 17 00:00:00 2001 From: Martin Pluskal Date: Fri, 24 Sep 2021 07:27:27 +0000 Subject: [PATCH] Accepting request 920385 from home:expeehaa I would like to have the mercurial extension hg-evolve available from the official repositories (or at least a devel project) to not depend on pip. This requires request https://build.opensuse.org/request/show/920384 because the tests depend on the mercurial-tests package. OBS-URL: https://build.opensuse.org/request/show/920385 OBS-URL: https://build.opensuse.org/package/show/devel:tools:scm/mercurial-extension-hg-evolve?expand=0&rev=1 --- .gitattributes | 23 +++++++++ .gitignore | 1 + hg-evolve-10.3.3.tar.gz | 3 ++ mercurial-extension-hg-evolve.changes | 4 ++ mercurial-extension-hg-evolve.spec | 70 +++++++++++++++++++++++++++ 5 files changed, 101 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 hg-evolve-10.3.3.tar.gz create mode 100644 mercurial-extension-hg-evolve.changes create mode 100644 mercurial-extension-hg-evolve.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/hg-evolve-10.3.3.tar.gz b/hg-evolve-10.3.3.tar.gz new file mode 100644 index 0000000..dea41f8 --- /dev/null +++ b/hg-evolve-10.3.3.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:ca3b0ae45a2c3a811c0dc39153b8a1ea8a5c8f786c56370a41dfd83a5bff2502 +size 850961 diff --git a/mercurial-extension-hg-evolve.changes b/mercurial-extension-hg-evolve.changes new file mode 100644 index 0000000..579b9ef --- /dev/null +++ b/mercurial-extension-hg-evolve.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Sep 20 18:44:53 UTC 2021 - Lukas Müller + +- Create package mercurial-extension-hg-evolve with hg-evolve version 10.3.3. diff --git a/mercurial-extension-hg-evolve.spec b/mercurial-extension-hg-evolve.spec new file mode 100644 index 0000000..af88650 --- /dev/null +++ b/mercurial-extension-hg-evolve.spec @@ -0,0 +1,70 @@ +# +# spec file for package mercurial-extension-hg-evolve +# +# Copyright (c) 2021 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + +%if 0%{?suse_version} >= 1550 +%bcond_without test +%else +%bcond_with test +%endif + +Name: mercurial-extension-hg-evolve +Version: 10.3.3 +Release: 0 +Summary: Flexible evolution of Mercurial history +License: GPL-2.0+ +Group: Development/Tools/Version Control +URL: https://www.mercurial-scm.org/doc/evolution/ +Source: https://files.pythonhosted.org/packages/source/h/hg-evolve/hg-evolve-%{version}.tar.gz +BuildRequires: python-rpm-macros +BuildRequires: python3 +BuildRequires: python3-setuptools +BuildRequires: fdupes +BuildRequires: mercurial +BuildRequires: mercurial-tests +Requires: mercurial +BuildArch: noarch + +%description +Flexible evolution of Mercurial history. + +%prep +%setup -q -n hg-evolve-%{version} + +%build +%python3_build + +%install +%python3_install + +# Delete hgext3rd/__init__.py and its cached version because it is already delivered by mercurial. +rm %{buildroot}%{python3_sitelib}/hgext3rd/__init__.py +rm %{buildroot}%{python3_sitelib}/hgext3rd/__pycache__/__init__*.pyc + +%fdupes %{buildroot}%{python3_sitelib} + +%check +%if %{with test} +cd tests +python3 %{_datadir}/mercurial/tests/run-tests.py --with-hg=%{_bindir}/hg +%endif + +%files +%doc CHANGELOG README.rst +%license COPYING +%{python3_sitelib}/* + +%changelog