diff options
| author | CoprDistGit <infra@openeuler.org> | 2023-05-05 14:23:29 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2023-05-05 14:23:29 +0000 |
| commit | ab6b89cb88ec4ac15206c4f90d9852d1ad1760a3 (patch) | |
| tree | 24fe354d35fbb2b12f1b7c7ffe2d4b8c2aff4769 /python-pybsn.spec | |
| parent | bb120c8771a16e7ad23ebeb0a3c2fa560a9e1174 (diff) | |
automatic import of python-pybsnopeneuler20.03
Diffstat (limited to 'python-pybsn.spec')
| -rw-r--r-- | python-pybsn.spec | 75 |
1 files changed, 75 insertions, 0 deletions
diff --git a/python-pybsn.spec b/python-pybsn.spec new file mode 100644 index 0000000..815ebdc --- /dev/null +++ b/python-pybsn.spec @@ -0,0 +1,75 @@ +%global _empty_manifest_terminate_build 0 +Name: python-pybsn +Version: 0.3.3 +Release: 1 +Summary: pybsn is a python interface to Big Switch Networks' products +License: ECLIPSE +URL: https://github.com/floodlight/pybsn +Source0: https://mirrors.nju.edu.cn/pypi/web/packages/b4/04/a2868cc91dc800322eb3dae90f373bd154f63e5c94d065e3a0e24f25ddea/pybsn-0.3.3.tar.gz +BuildArch: noarch + +Requires: python3-requests +Requires: python3-IPython +Requires: python3-traitlets + +%description + + +%package -n python3-pybsn +Summary: pybsn is a python interface to Big Switch Networks' products +Provides: python-pybsn +BuildRequires: python3-devel +BuildRequires: python3-setuptools +BuildRequires: python3-pip +%description -n python3-pybsn + + +%package help +Summary: Development documents and examples for pybsn +Provides: python3-pybsn-doc +%description help + + +%prep +%autosetup -n pybsn-0.3.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-pybsn -f filelist.lst +%dir %{python3_sitelib}/* + +%files help -f doclist.lst +%{_docdir}/* + +%changelog +* Fri May 05 2023 Python_Bot <Python_Bot@openeuler.org> - 0.3.3-1 +- Package Spec generated |
