File tree Expand file tree Collapse file tree 1 file changed +50
-0
lines changed
Expand file tree Collapse file tree 1 file changed +50
-0
lines changed Original file line number Diff line number Diff line change 1+ Name: limit-fs
2+ Version: 0.1
3+ #Release: 1%{?dist}
4+ Release: 1
5+ Summary: FUSE filesystem that removes the oldest file whenever the free space reaches limits
6+
7+ Group: System Environment/Kernel
8+ License: GPL+
9+ URL: https://github.com/piuma/limit-fs
10+ Source: %{name }-%{version }.tar.gz
11+
12+ BuildRoot: %{_tmppath }/%{name }-%{version }-%{release }-root
13+ BuildRequires: fuse3-devel >= 3
14+ BuildRequires: glib2-devel
15+ Requires: fuse3
16+
17+ Obsoletes: limit-fs <= %{version }-%{release }
18+ Provides: limit-fs = %{version }-%{release }
19+
20+ %description
21+ This is a FUSE filesystem that removes the oldest files whenever the
22+ free space reaches the set percentage.
23+
24+ You can use it in a no empty directory, anything you write in will be
25+ written in the underlying filesystem. After unmounting it all files
26+ remain in the unmounted directory.
27+
28+ %prep
29+ %setup -q -n %{name }-%{version }
30+
31+ %build
32+ %configure
33+ %{__make} %{?_smp_mflags }
34+
35+ %install
36+ %{__rm} -rf %{buildroot }
37+ %{__make} install DESTDIR=" %{buildroot}"
38+
39+ %clean
40+ %{__rm} -rf %{buildroot }
41+
42+ %files
43+ %defattr(-, root, root, 0755)
44+ %doc AUTHORS ChangeLog COPYING NEWS README
45+ %{_bindir }/limit-fs
46+
47+ %changelog
48+ * Tue Feb 12 2019 Danilo Abbasciano <danilo@piumalab.org> 0.1
49+ - initial RPM package.
50+
You can’t perform that action at this time.
0 commit comments