summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-04-10 19:52:56 +0000
committerCoprDistGit <infra@openeuler.org>2023-04-10 19:52:56 +0000
commitab534ec9ec7cde6c8b015a100864ea02fb42dcee (patch)
tree9b9f006ca2ab447d9884f42e7204f8127a353a7b
parent4c6f4515ba86225aabf6be9bfdb68ef25042283c (diff)
automatic import of python-mercurial
-rw-r--r--.gitignore1
-rw-r--r--python-mercurial.spec78
-rw-r--r--sources1
3 files changed, 80 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..30f47e1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mercurial-6.4.tar.gz
diff --git a/python-mercurial.spec b/python-mercurial.spec
new file mode 100644
index 0000000..99d987d
--- /dev/null
+++ b/python-mercurial.spec
@@ -0,0 +1,78 @@
+%global _empty_manifest_terminate_build 0
+Name: python-mercurial
+Version: 6.4
+Release: 1
+Summary: Fast scalable distributed SCM (revision control, version control) system
+License: GNU GPLv2 or any later version
+URL: https://mercurial-scm.org/
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/e0/a0/db06b72ff580f071fe4b109fa56fe60066188f6c7f27c6a581eb7c45d013/mercurial-6.4.tar.gz
+BuildArch: noarch
+
+
+%description
+Mercurial is a distributed SCM tool written in Python. It is used by a number of large projects that require fast, reliable distributed revision control, such as Mozilla.
+
+
+
+%package -n python3-mercurial
+Summary: Fast scalable distributed SCM (revision control, version control) system
+Provides: python-mercurial
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-mercurial
+Mercurial is a distributed SCM tool written in Python. It is used by a number of large projects that require fast, reliable distributed revision control, such as Mozilla.
+
+
+
+%package help
+Summary: Development documents and examples for mercurial
+Provides: python3-mercurial-doc
+%description help
+Mercurial is a distributed SCM tool written in Python. It is used by a number of large projects that require fast, reliable distributed revision control, such as Mozilla.
+
+
+
+%prep
+%autosetup -n mercurial-6.4
+
+%build
+%py3_build
+
+%install
+%py3_install
+install -d -m755 %{buildroot}/%{_pkgdocdir}
+if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi
+if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi
+if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi
+if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi
+pushd %{buildroot}
+if [ -d usr/lib ]; then
+ find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/lib64 ]; then
+ find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/bin ]; then
+ find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+if [ -d usr/sbin ]; then
+ find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst
+fi
+touch doclist.lst
+if [ -d usr/share/man ]; then
+ find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst
+fi
+popd
+mv %{buildroot}/filelist.lst .
+mv %{buildroot}/doclist.lst .
+
+%files -n python3-mercurial -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 6.4-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..27c4367
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+15914adce2b3de0e4179184b2ab75541 mercurial-6.4.tar.gz