diff options
-rw-r--r-- | .gitignore | 1 | ||||
-rw-r--r-- | python-bussilab.spec | 159 | ||||
-rw-r--r-- | sources | 1 |
3 files changed, 161 insertions, 0 deletions
@@ -0,0 +1 @@ +/bussilab-0.0.41.tar.gz diff --git a/python-bussilab.spec b/python-bussilab.spec new file mode 100644 index 0000000..3673a24 --- /dev/null +++ b/python-bussilab.spec @@ -0,0 +1,159 @@ +%global _empty_manifest_terminate_build 0 +Name: python-bussilab +Version: 0.0.41 +Release: 1 +Summary: A package collecting a heterogeneous set of tools. +License: GNU Lesser General Public License v2 or later (LGPLv2+) +URL: https://github.com/bussilab/py-bussilab +Source0: https://mirrors.aliyun.com/pypi/web/packages/2f/e3/0f0b531becfe784b12a1b9e86ab1c9d3ce53c0a7efd5d3df88d22c1318bc/bussilab-0.0.41.tar.gz +BuildArch: noarch + + +%description +[](https://github.com/bussilab/py-bussilab/tags) +[](https://pypi.org/project/bussilab/) +[](https://anaconda.org/bussilab/py-bussilab) +[](https://pypi.org/project/bussilab/) + +[](https://github.com/bussilab/py-bussilab/actions?query=workflow%3ACI) +[](https://lgtm.com/projects/g/bussilab/py-bussilab/context:python) +[](https://lgtm.com/projects/g/bussilab/py-bussilab/alerts/) +[](https://codecov.io/gh/bussilab/py-bussilab) + +A package collecting a heterogeneous set of tools. + +This package collects a number of tools that are useful enough to be distributed but too small to deserve being published as separate packages. +Source code is on [GitHub](https://github.com/bussilab/py-bussilab). +Documentation can be browsed at [this page](https://bussilab.github.io/doc-py-bussilab). + +To install package and dependencies with pip: + +``` +pip install bussilab +``` + +To install package and dependencies with conda: + +``` +conda install -c conda-forge -c bussilab py-bussilab +``` + +To install dependencies with macports, see [documentation](https://bussilab.github.io/doc-py-bussilab). + + +%package -n python3-bussilab +Summary: A package collecting a heterogeneous set of tools. +Provides: python-bussilab +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-bussilab +[](https://github.com/bussilab/py-bussilab/tags) +[](https://pypi.org/project/bussilab/) +[](https://anaconda.org/bussilab/py-bussilab) +[](https://pypi.org/project/bussilab/) + +[](https://github.com/bussilab/py-bussilab/actions?query=workflow%3ACI) +[](https://lgtm.com/projects/g/bussilab/py-bussilab/context:python) +[](https://lgtm.com/projects/g/bussilab/py-bussilab/alerts/) +[](https://codecov.io/gh/bussilab/py-bussilab) + +A package collecting a heterogeneous set of tools. + +This package collects a number of tools that are useful enough to be distributed but too small to deserve being published as separate packages. +Source code is on [GitHub](https://github.com/bussilab/py-bussilab). +Documentation can be browsed at [this page](https://bussilab.github.io/doc-py-bussilab). + +To install package and dependencies with pip: + +``` +pip install bussilab +``` + +To install package and dependencies with conda: + +``` +conda install -c conda-forge -c bussilab py-bussilab +``` + +To install dependencies with macports, see [documentation](https://bussilab.github.io/doc-py-bussilab). + + +%package help +Summary: Development documents and examples for bussilab +Provides: python3-bussilab-doc +%description help +[](https://github.com/bussilab/py-bussilab/tags) +[](https://pypi.org/project/bussilab/) +[](https://anaconda.org/bussilab/py-bussilab) +[](https://pypi.org/project/bussilab/) + +[](https://github.com/bussilab/py-bussilab/actions?query=workflow%3ACI) +[](https://lgtm.com/projects/g/bussilab/py-bussilab/context:python) +[](https://lgtm.com/projects/g/bussilab/py-bussilab/alerts/) +[](https://codecov.io/gh/bussilab/py-bussilab) + +A package collecting a heterogeneous set of tools. + +This package collects a number of tools that are useful enough to be distributed but too small to deserve being published as separate packages. +Source code is on [GitHub](https://github.com/bussilab/py-bussilab). +Documentation can be browsed at [this page](https://bussilab.github.io/doc-py-bussilab). + +To install package and dependencies with pip: + +``` +pip install bussilab +``` + +To install package and dependencies with conda: + +``` +conda install -c conda-forge -c bussilab py-bussilab +``` + +To install dependencies with macports, see [documentation](https://bussilab.github.io/doc-py-bussilab). + + +%prep +%autosetup -n bussilab-0.0.41 + +%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-bussilab -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Tue Jun 20 2023 Python_Bot <Python_Bot@openeuler.org> - 0.0.41-1 +- Package Spec generated @@ -0,0 +1 @@ +d68afc4604d9694bea5747b4b59dfe3a bussilab-0.0.41.tar.gz |