summaryrefslogtreecommitdiff
path: root/packaging/volumefs.spec
blob: d5445df5de2236898cd5ebd299cf671f3365e9c0 (plain)
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
Name: volumefs
Version: 1.0
Release: 1%{?dist}
Summary: FUSE filesystem for showing all currently mounted volumes
Group: System Environment/Base
License: GPL
URL: https://git.javispedro.com/cgit/volumefs.git/
Source0: %{name}-%{version}.tar.gz
BuildRequires: pkgconfig(fuse)
BuildRequires: pkgconfig(udisks2)
%if 0%{?suse_version} >= 1210
BuildRequires: systemd-rpm-macros
%endif

%description
volumefs is a FUSE filesystem that will be automatically populated with
symlinks to all currently mounted external filesystems, as detected by
UDisks2.

%package -n userfs
Summary: FUSE filesystem for showing home dirs of all users
Group: System Environment/Base

%description -n userfs
userfs is a FUSE filesystem that will be automatically populated with
symlinks to all the home directories of users defined in the current system.

%prep
%autosetup

%build
%configure
%make_build

%install
%make_install
install -D -m 644 scripts/volumefs.service %{buildroot}%{_unitdir}/volumefs.service
install -D -m 644 scripts/userfs.service %{buildroot}%{_unitdir}/userfs.service

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%{_sbindir}/volumefs
%{_unitdir}/volumefs.service

%pre
%service_add_pre volumefs.service

%post
%service_add_post volumefs.service

%preun
%service_del_preun volumefs.service

%postun
%service_del_postun volumefs.service

%files -n userfs
%defattr(-,root,root)
%{_sbindir}/userfs
%{_unitdir}/userfs.service

%pre -n userfs
%service_add_pre userfs.service

%post -n userfs
%service_add_post userfs.service

%preun -n userfs
%service_del_preun userfs.service

%postun -n userfs
%service_del_postun userfs.service


%changelog