You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
lxcfs/lxcfs.spec

106 lines
2.6 KiB

7 years ago
Name: lxcfs
6 years ago
Version: 3.0.3
Release: 2%{?dist}
7 years ago
Summary: FUSE based filesystem for LXC
License: ASL 2.0
URL: https://linuxcontainers.org/lxcfs
Source0: https://linuxcontainers.org/downloads/%{name}/%{name}-%{version}.tar.gz
BuildRequires: gcc
BuildRequires: gawk
BuildRequires: make
BuildRequires: fuse-devel
BuildRequires: help2man
BuildRequires: systemd
Requires(post): systemd
Requires(preun): systemd
Requires(postun): systemd
# for /usr/share/lxc/config/common.conf.d:
Requires: lxc-templates
%description
LXCFS is a simple userspace filesystem designed to work around some
current limitations of the Linux kernel.
Specifically, it's providing two main things
- A set of files which can be bind-mounted over their /proc originals
to provide CGroup-aware values.
- A cgroupfs-like tree which is container aware.
The code is pretty simple, written in C using libfuse.
The main driver for this work was the need to run systemd based
containers as a regular unprivileged user while still allowing systemd
inside the container to interact with cgroups.
Now with the introduction of the cgroup namespace in the Linux kernel,
that part is no longer necessary on recent kernels and focus is now on
making containers feel more like a real independent system through the
proc masking feature.
%prep
%autosetup
%build
%configure --with-init-script=systemd
7 years ago
make %{?_smp_mflags}
%install
%make_install SYSTEMD_UNIT_DIR=%{_unitdir}
mkdir -p %{buildroot}%{_sharedstatedir}/%{name}
%post
%systemd_post %{name}.service
%preun
%systemd_preun %{name}.service
%postun
%systemd_postun %{name}.service
%files
%doc AUTHORS
# empty:
#doc ChangeLog NEWS README
%license COPYING
%{_bindir}/lxcfs
%dir %{_libdir}/%{name}
%{_libdir}/%{name}/lib%{name}.so
%exclude %{_libdir}/%{name}/lib%{name}.la
%dir %{_datadir}/%{name}
%{_datadir}/%{name}/lxc.mount.hook
%{_datadir}/%{name}/lxc.reboot.hook
%{_mandir}/man1/%{name}.1*
%{_unitdir}/%{name}.service
%{_datadir}/lxc/config/common.conf.d/00-lxcfs.conf
%dir %{_sharedstatedir}/%{name}
%changelog
* Fri Nov 23 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.3-2
- Explicitly set the init system in the configure step.
6 years ago
* Fri Nov 23 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.3-1
- Update to 3.0.3.
6 years ago
* Fri Aug 17 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.2-1
- Update to 3.0.2.
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.1-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
7 years ago
* Sat Jun 2 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.1-1
- Update to 3.0.1.
7 years ago
* Wed Apr 4 2018 Thomas Moschny <thomas.moschny@gmx.de> - 3.0.0-1
- New package.