1 # Set with_systemd on distros that use it, so we can install the service
2 # file, otherwise the sysvinit script will be installed
3 %if 0%{?fedora} >= 14 || 0%{?rhel} >= 7 || 0%{?suse_version} >= 1210
5 %define init_script systemd
7 # BuildRequires systemd-units on fedora and rhel
8 %if 0%{?fedora} >= 14 || 0%{?rhel} >= 7
9 BuildRequires
: systemd
-units
12 # BuildRequires systemd on openSUSE and SUSE
13 %if 0%{?suse_version} >= 1210
14 BuildRequires
: systemd
17 %global with_systemd
0
18 %define init_script sysvinit
21 Summary: Linux Containers File System
23 Version: @PACKAGE_VERSION@
25 URL: https
://linuxcontainers.org
/lxcfs
/downloads
/
26 Source0: %{name}-%{version}.tar.gz
28 Group: System Environment
/Libraries
29 BuildRoot: %{_tmppath}/%{name}-root
32 BuildRequires
: libtool
33 BuildRequires
: docbook2X
34 BuildRequires
: doxygen
35 BuildRequires
: fuse
-devel
39 LXCFS is a simple userspace filesystem designed to work around some current limitations of the Linux kernel.
46 --with
-init
-script
=%{init_script}
49 #Modify mount hook command if running on RHEL 7 to skip cgroup mounts for stability reasons.
51 sed
-i 's
/\
/lxc.mount.hook
/\
/lxc.mount.hook
--skip
-cgroup
-mounts
/g' share
/00-lxcfs.conf
55 [ %{buildroot} != "/" ] && rm -rf %{buildroot}
56 make install DESTDIR
=%{buildroot}
57 mkdir -p
%{buildroot}/%{_sharedstatedir}/%{name}
60 [ %{buildroot} != "/" ] && rm -rf %{buildroot}
63 %defattr(-,root
,root
,-)
64 %dir %{_sharedstatedir}/%{name}
66 /lib
/systemd
/system
/%{name}.service
69 %config(noreplace
) %{_datarootdir}/lxc/config/common.conf.d/00-%{name}.conf
70 %{_datarootdir}/%{name}/lxc.mount.hook
71 %{_datarootdir}/%{name}/lxc.reboot.hook
72 %{_libdir}/%{name}/liblxcfs.la
73 %{_libdir}/%{name}/liblxcfs.so
76 * Wed Jan
30 2019 Tom Parrott
<tomp@tomp.uk
> - 3.1.0
77 - Initial RPM release.