summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-05 07:03:38 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-05 07:03:38 +0000
commitea9c26d40eff93bfdb8abc5993d157a9b8b5bbc6 (patch)
treedd21d49785f0892d7eef4814f78043dfd681285d
parent7a36fb859508482dc7f2dacccea430918a026a8d (diff)
automatic import of python-bel-resourcesopeneuler20.03
-rw-r--r--.gitignore1
-rw-r--r--python-bel-resources.spec76
-rw-r--r--sources1
3 files changed, 78 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..9a3a8c2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/bel_resources-0.0.3.tar.gz
diff --git a/python-bel-resources.spec b/python-bel-resources.spec
new file mode 100644
index 0000000..e7b5e6a
--- /dev/null
+++ b/python-bel-resources.spec
@@ -0,0 +1,76 @@
+%global _empty_manifest_terminate_build 0
+Name: python-bel-resources
+Version: 0.0.3
+Release: 1
+Summary: Utilities for BEL resource files.
+License: MIT
+URL: https://github.com/cthoyt/bel-resources
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/37/7a/e07e28ed8728a0b91460c22bc8ff7856f4587ce6d1ea4228a6a4916feae8/bel_resources-0.0.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-requests
+Requires: python3-requests-file
+Requires: python3-multisplitby
+Requires: python3-obonet
+
+%description
+Utilities for BEL resource files.
+
+%package -n python3-bel-resources
+Summary: Utilities for BEL resource files.
+Provides: python-bel-resources
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-bel-resources
+Utilities for BEL resource files.
+
+%package help
+Summary: Development documents and examples for bel-resources
+Provides: python3-bel-resources-doc
+%description help
+Utilities for BEL resource files.
+
+%prep
+%autosetup -n bel-resources-0.0.3
+
+%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-bel-resources -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.3-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..fa56de8
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+af6eb47a5a2aea66cab932db3a60020b bel_resources-0.0.3.tar.gz