From b17d654dd457d1ab395ada6c50fdf3f50e23baf08d479824e64e72b9c33bbfc4 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 26 Apr 2022 10:19:12 +0000 Subject: [PATCH] Accepting request 972621 from home:msmeissn add for factory usage OBS-URL: https://build.opensuse.org/request/show/972621 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-fangfrisch?expand=0&rev=1 --- .gitattributes | 23 ++++++++++++ .gitignore | 1 + 1.5.0.tar.gz | 3 ++ python-fangfrisch.changes | 4 +++ python-fangfrisch.spec | 76 +++++++++++++++++++++++++++++++++++++++ 5 files changed, 107 insertions(+) create mode 100644 .gitattributes create mode 100644 .gitignore create mode 100644 1.5.0.tar.gz create mode 100644 python-fangfrisch.changes create mode 100644 python-fangfrisch.spec diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..9b03811 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,23 @@ +## Default LFS +*.7z filter=lfs diff=lfs merge=lfs -text +*.bsp filter=lfs diff=lfs merge=lfs -text +*.bz2 filter=lfs diff=lfs merge=lfs -text +*.gem filter=lfs diff=lfs merge=lfs -text +*.gz filter=lfs diff=lfs merge=lfs -text +*.jar filter=lfs diff=lfs merge=lfs -text +*.lz filter=lfs diff=lfs merge=lfs -text +*.lzma filter=lfs diff=lfs merge=lfs -text +*.obscpio filter=lfs diff=lfs merge=lfs -text +*.oxt filter=lfs diff=lfs merge=lfs -text +*.pdf filter=lfs diff=lfs merge=lfs -text +*.png filter=lfs diff=lfs merge=lfs -text +*.rpm filter=lfs diff=lfs merge=lfs -text +*.tbz filter=lfs diff=lfs merge=lfs -text +*.tbz2 filter=lfs diff=lfs merge=lfs -text +*.tgz filter=lfs diff=lfs merge=lfs -text +*.ttf filter=lfs diff=lfs merge=lfs -text +*.txz filter=lfs diff=lfs merge=lfs -text +*.whl filter=lfs diff=lfs merge=lfs -text +*.xz filter=lfs diff=lfs merge=lfs -text +*.zip filter=lfs diff=lfs merge=lfs -text +*.zst filter=lfs diff=lfs merge=lfs -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..57affb6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +.osc diff --git a/1.5.0.tar.gz b/1.5.0.tar.gz new file mode 100644 index 0000000..9410529 --- /dev/null +++ b/1.5.0.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:8199fd056ce3434fc10b5c89d946cacbdbbbbbd4f1974203132c8e4f022d8867 +size 115352 diff --git a/python-fangfrisch.changes b/python-fangfrisch.changes new file mode 100644 index 0000000..9555ef5 --- /dev/null +++ b/python-fangfrisch.changes @@ -0,0 +1,4 @@ +------------------------------------------------------------------- +Mon Apr 25 13:23:59 UTC 2022 - Marcus Meissner + +- fangfrisch - fetch third party clamav signatures diff --git a/python-fangfrisch.spec b/python-fangfrisch.spec new file mode 100644 index 0000000..d9d0ceb --- /dev/null +++ b/python-fangfrisch.spec @@ -0,0 +1,76 @@ +# +# spec file for package python-colorama +# +# Copyright (c) 2022 SUSE LLC +# +# All modifications and additions to the file contributed by third parties +# remain the property of their copyright owners, unless otherwise agreed +# upon. The license for this file, and modifications and additions to the +# file, is the same license as for the pristine package itself (unless the +# license for the pristine package is not an Open Source License, in which +# case the license is the MIT License). An "Open Source License" is a +# license that conforms to the Open Source Definition (Version 1.9) +# published by the Open Source Initiative. + +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# + + +%{?!python_module:%define python_module() python-%{**} python3-%{**}} +%define skip_python2 1 +Name: python-fangfrisch +Version: 1.5.0 +Release: 0 +Summary: Update and verify unofficial Clam Anti-Virus signatures +License: GPL-3.0+ +Group: Development/Languages/Python +URL: https://github.com/rseichter/fangfrisch +Source: https://github.com/rseichter/fangfrisch/archive/refs/tags/%{version}.tar.gz +BuildRequires: %{python_module requests} +BuildRequires: %{python_module setuptools} +BuildRequires: %{python_module SQLAlchemy} +BuildRequires: fdupes +BuildRequires: python-rpm-macros +BuildArch: noarch +%python_subpackages + +%description +Fangfrisch (German for "freshly caught") is a sibling of the Clam +Anti-Virus freshclam utility. It allows downloading virus definition +files that are not official ClamAV canon, e.g. from Sanesecurity and +URLhaus. Fangfrisch was designed with security in mind, to be run by an +unprivileged user only. + + +%prep +%setup -q -n fangfrisch-%{version} + +%build +%python_build + +%install +%python_install +%python_expand %fdupes %{buildroot}%{$python_sitelib} +%python_clone -a %{buildroot}%{_bindir}/fangfrisch + + +%post +%python_install_alternative fangfrisch + +%postun +%python_uninstall_alternative fangfrisch + +#check +# make check wants to do network... cant do this in OBS +#python_expand script -eqc "pytest-%{$python_version} -vv -s" /dev/null + +%files %{python_files} +%license LICENSE +%doc CHANGELOG.rst README.rst +%_bindir/fangfrisch +%dir %{python_sitelib}/fangfrisch +%{python_sitelib}/fangfrisch/* +%{python_sitelib}/fangfrisch-%{version}-py*.egg-info +%python_alternative %{_bindir}/fangfrisch + +%changelog