forked from pbenas/tmpcleaner
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tmpcleaner.spec
39 lines (33 loc) · 1.01 KB
/
tmpcleaner.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
Name: tmpcleaner
Version: 1.0.1
Release: 1%{?dist}
Source0: tmpcleaner.tar.gz
License: BSD
Summary: Smart Temp Cleaner
Group: Development/Libraries
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Vendor: GoodData Corporation <[email protected]>
Requires: PyYAML python-argparse python-dateutil
BuildRequires: python2-devel python-setuptools-devel python-argparse PyYAML
Url: https://github.com/gooddata/tmpcleaner
Obsoletes: gdc-python-tools < 2
%description
Tmpcleaner is simply advanced temp cleaner with statistical capabilities.
It passes given structure only once, groups directories/files by given
definition, applies different cleanup rules by each group and print final
statistics.
%prep
%setup -q -n tmpcleaner
%build
python setup.py build
%install
%{__rm} -rf %{buildroot}
%{__python} setup.py install -O1 --skip-build --root %{buildroot}
%clean
%{__rm} -rf %{buildroot}
%files
%defattr(-,root,root,-)
%{python_sitelib}/*.egg-info
%{python_sitelib}/gdctmpcleaner
/usr/bin/tmpcleaner.py