0388c1c
%global pypi_name artifacts
587217f
%global date 20230928
0388c1c
0388c1c
Name:           %{pypi_name}
0388c1c
Version:        0.0.%{date}
0e9d647
Release:        %autorelease
1574e68
Summary:        Collection of digital forensic artifacts
0388c1c
0388c1c
License:        ASL 2.0
0388c1c
URL:            https://github.com/ForensicArtifacts/artifacts
1574e68
Source0:        %{url}/releases/download/%{date}/%{pypi_name}-%{date}.tar.gz
0388c1c
BuildArch:      noarch
0388c1c
0388c1c
BuildRequires:  python3-devel
1574e68
BuildRequires:  python3-setuptools
0388c1c
BuildRequires:  python3-pytest
0388c1c
BuildRequires:  python3-pyyaml
0388c1c
0388c1c
%description
0388c1c
A free, community-sourced, machine-readable knowledge base of digital
0388c1c
forensic artifacts that the world can use both as an information source
0388c1c
and within other tools.
0388c1c
0388c1c
If you'd like to use the artifacts in your own tools, all you need to be
0388c1c
able to do is read YAML. That is it, no other dependencies. The Python
0388c1c
code in this project is just used to validate all the artifacts to make
0388c1c
sure they follow the specification.
0388c1c
0388c1c
%prep
0388c1c
%autosetup -n %{pypi_name}-%{date}
0388c1c
0388c1c
%build
0388c1c
%py3_build
0388c1c
0388c1c
%install
0388c1c
%py3_install
0388c1c
rm -rf %{buildroot}%{_defaultdocdir}/%{pypi_name}/LICENSE
0388c1c
0388c1c
%check
0388c1c
PYTHONPATH=%{buildroot}/%{python3_sitelib}/ pytest-%{python3_version} -v tests
0388c1c
0388c1c
%files
0388c1c
%doc ACKNOWLEDGEMENTS AUTHORS README
0388c1c
%license LICENSE
0388c1c
%{_bindir}/*.py
0388c1c
%{_datadir}/%{pypi_name}/
0388c1c
%{python3_sitelib}/%{pypi_name}/
0388c1c
%{python3_sitelib}/%{pypi_name}-%{date}*.egg-info
0388c1c
0388c1c
%changelog
0e9d647
%autochangelog
c189df6