From 4a01e891443a67a877c6751b328152604850eec2 Mon Sep 17 00:00:00 2001 From: Jan Palus Date: Sat, 29 May 2021 23:08:44 +0200 Subject: [PATCH] new --- bindfs.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 bindfs.spec diff --git a/bindfs.spec b/bindfs.spec new file mode 100644 index 0000000..6fe7781 --- /dev/null +++ b/bindfs.spec @@ -0,0 +1,46 @@ +Summary: Mount a directory elsewhere with changed permissions +Name: bindfs +Version: 1.15.1 +Release: 1 +License: GPL v2+ +Group: Applications/System +Source0: https://bindfs.org/downloads/%{name}-%{version}.tar.gz +# Source0-md5: e7c1057033129f2fa9a1cc00dcfc1660 +URL: https://bindfs.org/ +BuildRequires: libfuse3-devel >= 3.4.0 +BuildRequires: pkgconfig >= 1:0.9.0 +Requires: libfuse3 >= 3.4.0 +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +bindfs is a FUSE filesystem for mirroring a directory to another +directory, similarly to mount --bind. The permissions of the mirrored +directory can be altered in various ways. + +Some things bindfs can be used for: +- Making a directory read-only. +- Making all executables non-executable. +- Sharing a directory with a list of users (or groups). +- Modifying permission bits using rules with chmod-like syntax. +- Changing the permissions with which files are created. + +%prep +%setup -q + +%build +%configure + +%install +rm -rf $RPM_BUILD_ROOT + +%{__make} install \ + DESTDIR=$RPM_BUILD_ROOT + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +%doc ChangeLog README.md +%attr(755,root,root) %{_bindir}/bindfs +%{_mandir}/man1/bindfs.1* -- 2.44.0