Skip to content

Commit

Permalink
add: rpm spec file
Browse files Browse the repository at this point in the history
  • Loading branch information
piuma committed Feb 13, 2019
1 parent 23fe3fc commit 04eadac
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions dist/limit-fs.spec
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 <danilo@piumalab.org> 0.1
- initial RPM package.

0 comments on commit 04eadac

Please sign in to comment.