summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2023-05-31 03:30:46 +0000
committerCoprDistGit <infra@openeuler.org>2023-05-31 03:30:46 +0000
commita0041f55cb8713211291aae844d9be748822bbe5 (patch)
tree300182233444ea550b3dc823f570435e4aa538fe
parentddb7d2152fee513a90821656775fe3b679a2500c (diff)
automatic import of python-pyja3
-rw-r--r--.gitignore1
-rw-r--r--python-pyja3.spec73
-rw-r--r--sources1
3 files changed, 75 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
index e69de29..f6babb1 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/pyja3-1.0.0.tar.gz
diff --git a/python-pyja3.spec b/python-pyja3.spec
new file mode 100644
index 0000000..ad8a837
--- /dev/null
+++ b/python-pyja3.spec
@@ -0,0 +1,73 @@
+%global _empty_manifest_terminate_build 0
+Name: python-pyja3
+Version: 1.0.0
+Release: 1
+Summary: Generate JA3 fingerprints from PCAPs using Python.
+License: BSD
+URL: https://github.com/salesforce/ja3
+Source0: https://mirrors.nju.edu.cn/pypi/web/packages/8c/ec/19ccb4f363381fb162c9fd145a5648150554a24bbabecbadd4522d227264/pyja3-1.0.0.tar.gz
+BuildArch: noarch
+
+Requires: python3-dpkt
+
+%description
+JA3 provides fingerprinting services on SSL packets. This is a python wrapper around JA3 logic in order to produce valid JA3 fingerprints from an input PCAP file.
+
+%package -n python3-pyja3
+Summary: Generate JA3 fingerprints from PCAPs using Python.
+Provides: python-pyja3
+BuildRequires: python3-devel
+BuildRequires: python3-setuptools
+BuildRequires: python3-pip
+%description -n python3-pyja3
+JA3 provides fingerprinting services on SSL packets. This is a python wrapper around JA3 logic in order to produce valid JA3 fingerprints from an input PCAP file.
+
+%package help
+Summary: Development documents and examples for pyja3
+Provides: python3-pyja3-doc
+%description help
+JA3 provides fingerprinting services on SSL packets. This is a python wrapper around JA3 logic in order to produce valid JA3 fingerprints from an input PCAP file.
+
+%prep
+%autosetup -n pyja3-1.0.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-pyja3 -f filelist.lst
+%dir %{python3_sitelib}/*
+
+%files help -f doclist.lst
+%{_docdir}/*
+
+%changelog
+* Wed May 31 2023 Python_Bot <Python_Bot@openeuler.org> - 1.0.0-1
+- Package Spec generated
diff --git a/sources b/sources
new file mode 100644
index 0000000..abbc7b0
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+595409525c3d9dcb5964a8fe060048d2 pyja3-1.0.0.tar.gz