Change-Id: I8a551908614914868d8ade8f02cafaa3d9db54ce
Reviewed-on: http://photon-jenkins.eng.vmware.com:8082/9640
Tested-by: gerrit-photon <photon-checkins@vmware.com>
Reviewed-by: Srivatsa S. Bhat <srivatsab@vmware.com>
| 1 | 1 |
new file mode 100644 |
| ... | ... |
@@ -0,0 +1,59 @@ |
| 0 |
+Summary: Linux Containers File System |
|
| 1 |
+Name: lxcfs |
|
| 2 |
+Version: 4.0.3 |
|
| 3 |
+Release: 1%{?dist}
|
|
| 4 |
+URL: https://linuxcontainers.org/lxcfs/downloads/ |
|
| 5 |
+Source0: %{name}-%{version}.tar.gz
|
|
| 6 |
+License: LGPL 2.1+ |
|
| 7 |
+Group: System Environment/Libraries |
|
| 8 |
+%define sha1 %{name}=16b3a0d4e287761ec65f663ff18c56ac8be1470a
|
|
| 9 |
+Vendor: VMware, Inc. |
|
| 10 |
+Distribution: Photon |
|
| 11 |
+BuildRequires: gcc |
|
| 12 |
+BuildRequires: libtool |
|
| 13 |
+BuildRequires: fuse-devel |
|
| 14 |
+BuildRequires: systemd |
|
| 15 |
+Requires: fuse |
|
| 16 |
+ |
|
| 17 |
+%description |
|
| 18 |
+LXCFS is a simple userspace filesystem designed to work around some current limitations of the Linux kernel. |
|
| 19 |
+ |
|
| 20 |
+%prep |
|
| 21 |
+%setup -q |
|
| 22 |
+ |
|
| 23 |
+%build |
|
| 24 |
+%configure \ |
|
| 25 |
+ --with-init-script=systemd |
|
| 26 |
+make %{?_smp_mflags}
|
|
| 27 |
+ |
|
| 28 |
+%install |
|
| 29 |
+rm -rf %{buildroot}
|
|
| 30 |
+make install DESTDIR=%{buildroot}
|
|
| 31 |
+mkdir -p %{buildroot}/%{_sharedstatedir}/%{name}
|
|
| 32 |
+ |
|
| 33 |
+%post |
|
| 34 |
+%systemd_post lxcfs.service |
|
| 35 |
+ |
|
| 36 |
+%preun |
|
| 37 |
+%systemd_preun lxcfs.service |
|
| 38 |
+ |
|
| 39 |
+%postun |
|
| 40 |
+%systemd_postun lxcfs.service |
|
| 41 |
+ |
|
| 42 |
+%clean |
|
| 43 |
+rm -rf %{buildroot}
|
|
| 44 |
+ |
|
| 45 |
+%files |
|
| 46 |
+%defattr(-,root,root,-) |
|
| 47 |
+%dir %{_sharedstatedir}/%{name}
|
|
| 48 |
+/lib/systemd/system/%{name}.service
|
|
| 49 |
+%{_bindir}/lxcfs
|
|
| 50 |
+%config(noreplace) %{_datarootdir}/lxc/config/common.conf.d/00-%{name}.conf
|
|
| 51 |
+%{_datarootdir}/%{name}/lxc.mount.hook
|
|
| 52 |
+%{_datarootdir}/%{name}/lxc.reboot.hook
|
|
| 53 |
+%{_libdir}/%{name}/liblxcfs.la
|
|
| 54 |
+%{_libdir}/%{name}/liblxcfs.so
|
|
| 55 |
+ |
|
| 56 |
+%changelog |
|
| 57 |
+* Wed Apr 22 2020 Anish Swaminathan <anishs@vmware.com> 4.0.3-1 |
|
| 58 |
+- Initial release. |