summaryrefslogtreecommitdiff
path: root/python-gdbgui.spec
diff options
context:
space:
mode:
Diffstat (limited to 'python-gdbgui.spec')
-rw-r--r--python-gdbgui.spec93
1 files changed, 93 insertions, 0 deletions
diff --git a/python-gdbgui.spec b/python-gdbgui.spec
new file mode 100644
index 0000000..cc42c1e
--- /dev/null
+++ b/python-gdbgui.spec
@@ -0,0 +1,93 @@
+%global _empty_manifest_terminate_build 0
+Name: python-gdbgui
+Version: 0.15.1.0
+Release: 1
+Summary: Browser-based frontend to gdb. Debug C, C++, Go, or Rust.
+License: License :: GNU GPLv3
+URL: https://github.com/cs01/gdbgui
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/d2/95/1a5d6fff8e4c8458b314dd5175944579a0f6233f963c657bc5d3c6b2f3b2/gdbgui-0.15.1.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-bidict
+Requires: python3-brotli
+Requires: python3-click
+Requires: python3-dnspython
+Requires: python3-eventlet
+Requires: python3-flask
+Requires: python3-flask-compress
+Requires: python3-flask-socketio
+Requires: python3-greenlet
+Requires: python3-itsdangerous
+Requires: python3-jinja2
+Requires: python3-markupsafe
+Requires: python3-pygdbmi
+Requires: python3-pygments
+Requires: python3-engineio
+Requires: python3-socketio
+Requires: python3-six
+Requires: python3-werkzeug
+
+%description
+**Documentation**: https://gdbgui.com
+**Source Code**: https://github.com/cs01/gdbgui/
+
+%package -n python3-gdbgui
+Summary: Browser-based frontend to gdb. Debug C, C++, Go, or Rust.
+Provides: python-gdbgui
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-gdbgui
+**Documentation**: https://gdbgui.com
+**Source Code**: https://github.com/cs01/gdbgui/
+
+%package help
+Summary: Development documents and examples for gdbgui
+Provides: python3-gdbgui-doc
+%description help
+**Documentation**: https://gdbgui.com
+**Source Code**: https://github.com/cs01/gdbgui/
+
+%prep
+%autosetup -n gdbgui-0.15.1.0
+
+%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-gdbgui -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Mon Apr 10 2023 Python_Bot <Python_Bot@openeuler.org> - 0.15.1.0-1
+- Package Spec generated