summaryrefslogtreecommitdiff
path: root/python-pyshark.spec
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-03-09 15:52:22 +0000
committerCoprDistGit <infra@openeuler.org>2023-03-09 15:52:22 +0000
commitb41690b100463195da718cc0a86abbca5cb1c6c2 (patch)
tree575ae11bf1dce3caf58264e86f36109b5cdc802e /python-pyshark.spec
parent3a5d163a22707a1f20c7ece034f46644b0ba1836 (diff)
automatic import of python-pyshark
Diffstat (limited to 'python-pyshark.spec')
-rw-r--r--python-pyshark.spec91
1 files changed, 91 insertions, 0 deletions
diff --git a/python-pyshark.spec b/python-pyshark.spec
new file mode 100644
index 0000000..b574a7a
--- /dev/null
+++ b/python-pyshark.spec
@@ -0,0 +1,91 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyshark
+Version: 0.5.3
+Release: 1
+Summary: Python wrapper for tshark, allowing python packet parsing using wireshark dissectors
+License: MIT
+URL: https://github.com/KimiNewt/pyshark
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/6e/2f/41db1f3e4e394b07fb81cc86f5a90518d0d3c7cb123e0aec637b044a7c01/pyshark-0.5.3.tar.gz
+BuildArch: noarch
+
+Requires: python3-lxml
+Requires: python3-py
+Requires: python3-packaging
+Requires: python3-appdirs
+
+%description
+Python wrapper for tshark, allowing python packet parsing using wireshark dissectors.
+
+See https://github.com/KimiNewt/pyshark/ for documentation.
+
+
+
+
+%package -n python3-pyshark
+Summary: Python wrapper for tshark, allowing python packet parsing using wireshark dissectors
+Provides: python-pyshark
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyshark
+Python wrapper for tshark, allowing python packet parsing using wireshark dissectors.
+
+See https://github.com/KimiNewt/pyshark/ for documentation.
+
+
+
+
+%package help
+Summary: Development documents and examples for pyshark
+Provides: python3-pyshark-doc
+%description help
+Python wrapper for tshark, allowing python packet parsing using wireshark dissectors.
+
+See https://github.com/KimiNewt/pyshark/ for documentation.
+
+
+
+
+%prep
+%autosetup -n pyshark-0.5.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-pyshark -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Thu Mar 09 2023 Python_Bot <Python_Bot@openeuler.org> - 0.5.3-1
+- Package Spec generated