107 lines
3.2 KiB
RPMSpec
107 lines
3.2 KiB
RPMSpec
#Global macro or variable
|
|
%define _unpackaged_files_terminate_build 0
|
|
|
|
#Basic Information
|
|
Name: lxcfs
|
|
Version: 3.0.2
|
|
Release: 0.12
|
|
Summary: FUSE filesystem for LXC
|
|
License: Apache-2.0
|
|
URL: http://linuxcontainers.org
|
|
Source: https://linuxcontainers.org/downloads/%{name}/%{name}-%{version}.tar.gz
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
Patch9000: 0001-systemd-up.patch
|
|
Patch9001: 0002-prestart.patch
|
|
Patch9003: 0003-remove-sysvinit-upstart.patch
|
|
Patch9004: 0004-show-dev-name-in-container.patch
|
|
Patch9005: 0005-lxcfs-fix-cpuinfo-print.patch
|
|
Patch9006: 0006-lxcfs-3.0.2-crashes-on-centos-7.patch
|
|
Patch9007: 0007-fix-memory-leak.patch
|
|
Patch9008: 0008-fix-concurrency-problem.patch
|
|
Patch9009: 0009-set-null-after-free.patch
|
|
Patch9010: 0010-fix-hang.patch
|
|
Patch9011: 0011-systemd-stop.patch
|
|
Patch9012: 0012-limit-cpuinfo-by-quota-period-setting.patch
|
|
Patch9013: 0013-limit-stat-by-quota-period-setting.patch
|
|
Patch9014: 0014-systemd-monitor-always-restart.patch
|
|
Patch9015: 0015-lxcfs-fix-memory-leak.patch
|
|
Patch9016: 0016-lxcfs-fix-concurrency-problem.patch
|
|
Patch9017: 0017-diskstats-support-devicemapper-device.patch
|
|
Patch9018: 0018-lxcfs-add-proc-partitions.patch
|
|
Patch9019: 0019-use-bitwise-operators-only-on-unsigned.patch
|
|
Patch9020: 0020-lxcfs-proc_diskstats_read-func-obtain-data-from-blki.patch
|
|
Patch9021: 0021-remove-securec-functions.patch
|
|
Patch9022: 0022-add-secure-compile-option-in-Makefile.patch
|
|
Patch9023: 0023-fix-missing-include-in-tests.patch
|
|
Patch9024: 0024-fix-proc-diskstats-show-in-container.patch
|
|
Patch9025: 0025-lxcfs-adapt-4.18-kernel.patch
|
|
Patch9026: 0026-lxcfs-fix-get-device-major-and-minor-number.patch
|
|
|
|
#Dependency
|
|
BuildRequires: autoconf automake libtool help2man
|
|
BuildRequires: fuse-devel libattr-devel
|
|
|
|
%description
|
|
lxcfs is a simple userspace filesystem designed to make containers
|
|
feel more like a real independent system through. It is usable by
|
|
any runtime, written in C using libfuse and glib.
|
|
|
|
%prep
|
|
%autosetup -p1
|
|
|
|
%build
|
|
autoreconf --force --install
|
|
%configure
|
|
make tests
|
|
make %{?_smp_mflags}
|
|
|
|
%install
|
|
make install DESTDIR=%{buildroot} %{?_smp_mflags}
|
|
install -d -m 0755 %{buildroot}%{_unitdir}
|
|
install -p -m 0644 config/init/systemd/*.service %{buildroot}%{_unitdir}/
|
|
install -d -m 0755 %{buildroot}%{_sbindir}
|
|
ln -sf service %{buildroot}%{_sbindir}/rc%{name}
|
|
install -d -m 0755 %{buildroot}%{_includedir}/%{name}
|
|
rm bindings.h
|
|
install -d -m 0755 %{buildroot}%{_localstatedir}/lib/lxc/%{name}/
|
|
|
|
#Install and uninstall scripts
|
|
%pre
|
|
|
|
%preun
|
|
|
|
%post
|
|
ret=`systemctl is-active lxcfs`
|
|
if [ "$ret" == "active" ]; then
|
|
systemctl restart lxcfs
|
|
fi
|
|
|
|
%postun
|
|
|
|
#Files list
|
|
%files
|
|
%defattr(-,root,root)
|
|
%doc AUTHORS ChangeLog README
|
|
%license COPYING
|
|
%{_sbindir}/*
|
|
%{_bindir}/*
|
|
%{_datadir}/lxc
|
|
%{_datadir}/%{name}
|
|
%dir %{_localstatedir}/lib/lxc/%{name}
|
|
%dir %{_libdir}/%{name}
|
|
%{_libdir}/%{name}/lib%{name}.so
|
|
%exclude %{_libdir}/%{name}/lib%{name}.la
|
|
%{_mandir}/man1/*
|
|
%{_unitdir}/*
|
|
|
|
%changelog
|
|
* Thu July 02 2020 openEuler Buildteam <buildteam@openeuler.org> - 3.0.2-0.12
|
|
- Sync from internal changes
|
|
|
|
* Thu Dec 26 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.2-0.5.h2
|
|
- Remove securec functions
|
|
|
|
* Wed Sep 18 2019 openEuler Buildteam <buildteam@openeuler.org> - 3.0.2-0.5.h1
|
|
- Package init
|
|
|