forked from FyraLabs-Graveyard/snapd-compat
-
Notifications
You must be signed in to change notification settings - Fork 0
/
snapd-compat.spec
39 lines (30 loc) · 1.01 KB
/
snapd-compat.spec
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
Summary: Snapd Compatibility
Name: snapd-compat
Version: 1.1
Release: 1%{?dist}
License: IOL
URL: https://tauos.co
Source0: %{name}-%{version}.tar.gz
BuildArch: noarch
Provides: snapd-compat(%{version}) = %{release}
Requires: snapd
%description
snapd support for OSTree-based operating systems
%prep
%setup -q
%build
%install
mkdir -p %{buildroot}/opt/snapd-compat
chmod +x snapd.sh
install snapd.sh %{buildroot}/opt/snapd-compat
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/
mkdir -p %{buildroot}%{_sysconfdir}/systemd/system/remote-fs.target.wants/
cp snapd-compat.service %{buildroot}%{_sysconfdir}/systemd/system/
%post
ln -sf %{_sysconfdir}/systemd/system/snapd-compat.service %{_sysconfdir}/systemd/system/remote-fs.target.wants/snapd-compat.service
%files
%dir /opt/snapd-compat
/opt/snapd-compat/snapd.sh
%{_sysconfdir}/systemd/system/snapd-compat.service
%ghost %{_sysconfdir}/systemd/system/remote-fs.target.wants/snapd-compat.service
%changelog