-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
50 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
Name: limit-fs | ||
Version: 0.1 | ||
#Release: 1%{?dist} | ||
Release: 1 | ||
Summary: FUSE filesystem that removes the oldest file whenever the free space reaches limits | ||
|
||
Group: System Environment/Kernel | ||
License: GPL+ | ||
URL: https://github.com/piuma/limit-fs | ||
Source: %{name}-%{version}.tar.gz | ||
|
||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root | ||
BuildRequires: fuse3-devel >= 3 | ||
BuildRequires: glib2-devel | ||
Requires: fuse3 | ||
|
||
Obsoletes: limit-fs <= %{version}-%{release} | ||
Provides: limit-fs = %{version}-%{release} | ||
|
||
%description | ||
This is a FUSE filesystem that removes the oldest files whenever the | ||
free space reaches the set percentage. | ||
|
||
You can use it in a no empty directory, anything you write in will be | ||
written in the underlying filesystem. After unmounting it all files | ||
remain in the unmounted directory. | ||
|
||
%prep | ||
%setup -q -n %{name}-%{version} | ||
|
||
%build | ||
%configure | ||
%{__make} %{?_smp_mflags} | ||
|
||
%install | ||
%{__rm} -rf %{buildroot} | ||
%{__make} install DESTDIR="%{buildroot}" | ||
|
||
%clean | ||
%{__rm} -rf %{buildroot} | ||
|
||
%files | ||
%defattr(-, root, root, 0755) | ||
%doc AUTHORS ChangeLog COPYING NEWS README | ||
%{_bindir}/limit-fs | ||
|
||
%changelog | ||
* Tue Feb 12 2019 Danilo Abbasciano <[email protected]> 0.1 | ||
- initial RPM package. | ||
|