File autotrash.spec of Package autotrash

# spec file for package autotrash
# Copyright (c) 2016 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.

Name:             autotrash
Version:          0.2.0
Release:          0
Summary:          Tool to automatically purge old trashed files
License:          GPL-3.0+
Source: {version}.tar.gz
BuildArch:        noarch
Requires:         python3
BuildRequires:    python3
BuildRequires:    pandoc

Autotrash is a small python script to automatically remove (permanently delete)
trashed files. It relies on the Trash files for it's deletion

%setup -q

python3 build

cd doc

python3 install --skip-build --root %{buildroot}

mkdir -p %{buildroot}%{_mandir}/man1
cp -a doc/%{name}.1* %{buildroot}%{_mandir}/man1