File simple-extract.spec of Package simple-extract
#
# spec file for package simple-extract
#
# Copyright (c) 2024 SUSE LINUX GmbH, Nuernberg, Germany.
#
# 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/
Name: simple-extract
Version: 0.3.0
Release: 0
Summary: A small command line utility to help extract compressed archives
License: MIT
URL: https://github.com/berrym/simple_extract
Source: https://files.pythonhosted.org/packages/source/s/simple-extract/simple-extract-%{version}.tar.gz
BuildRequires: python3-setuptools
Requires: curl
Requires: tar
Requires: gzip
Requires: bzip2
Requires: unrar
Requires: lha
Requires: unzip
Requires: cpio
Requires: xz
Requires: zstd
Recommends: wget
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildArch: noarch
%description
A small command line utility to help extract compressed archives.
%prep
%autosetup -p1 -n simple-extract-%{version}
%build
%__python3 setup.py build
%install
%__python3 setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%doc README.md
%license LICENSE
%{_bindir}/simple-extract
%{python3_sitelib}/*
%changelog