Name: quota Version: 4.04 Epoch: 1 Release: 11 Summary: Linux Diskquota system as part of the Linux kernel License: BSD and GPLv2 and GPLv2+ and LGPLv2+ URL: http://sourceforge.net/projects/linuxquota/ Source0: http://downloads.sourceforge.net/linuxquota/%{name}-%{version}.tar.gz Source1: quota_nld.service Source2: quota_nld.sysconfig Source3: rpc-rquotad.service Source4: rpc-rquotad.sysconfig Patch0000: 0000-quota-4.04-warnquota-configuration-tunes.patch Patch0001: 0001-quota-4.03-Validate-upper-bound-of-RPC-port.patch Patch0002: 0002-quota-4.04-Install-rquota-3-only-if-RPC-is-enabled.patch Patch0003: 0003-quota-4.04-Add-TIRPC_CFLAGS-globally-to-CFLAGS-for-RPC-support-.patch Patch0004: 0004-quota-4.04-repquota-Fix-output-when-user-2-exists.patch Patch0005: 0005-quota-4.04-warnquota-Check-snprintf-for-overflows.patch Patch0006: 0006-quota-4.04-warnquota-Fix-comparing-user-name-to-non-null-termin.patch Patch0007: 0007-quota-4.04-quotacheck-Avoid-question-in-non-interactive-mode.patch Patch0008: 0008-quota-4.04-quotacheck-Report-error-when-caching-of-quota-file-f.patch Patch0009: 0009-quota-4.04-quotacheck-Fail-check-if-quota-file-magic-is-invalid.patch Patch0010: 0010-quota-4.04-Listen-on-a-TCP-socket.patch Patch0011: 0011-quota-4.04-rpc-Fix-wrong-limit-for-space-usage.patch Patch0012: 0012-quota-4.04-quota-1-Distinguish-between-none-quota-limits-and-no.patch Patch6000: 6000-Fix-file-descriptor-leaks-in-error-code-paths-1.patch Patch6001: 6001-Fix-file-descriptor-leaks-in-error-code-paths-2.patch Patch6002: 6002-Fix-file-descriptor-leaks-in-error-code-paths-3.patch BuildRequires: autoconf, automake, coreutils, rpcgen, systemd BuildRequires: e2fsprogs-devel, gettext-devel, openldap-devel BuildRequires: pkgconfig(dbus-1), pkgconfig(libnl-3.0) >= 3.1, pkgconfig(libnl-genl-3.0), pkgconfig(libtirpc) Requires(post): systemd Requires(preun): systemd Requires(postun): systemd Requires: rpcbind Provides: %{name}-doc = %{epoch}:%{version}-%{release} Obsoletes: %{name}-doc Provides: %{name}-nld = %{epoch}:%{version}-%{release} Obsoletes: %{name}-nld Provides: %{name}-nls = %{epoch}:%{version}-%{release} Obsoletes: %{name}-nls Provides: %{name}-rpc = %{epoch}:%{version}-%{release} Obsoletes: %{name}-rpc Provides: %{name}-warnquota = %{epoch}:%{version}-%{release} Obsoletes: %{name}-warnquota %description Tools and patches for the Linux Diskquota system as part of the Linux kernel It also include quota_nld daemon, %package devel Summary: Including header files for the developing of quota RPC License: GPLv2 Requires: quota = %{epoch}:%{version}-%{release} %description devel This contains header files for the developing of quota RPC. %package help Summary: Including man files for quota Requires: man %description help This contains man files for the using of quota. %prep %autosetup -n %{name}-%{version} -p1 autoreconf -fi %build %configure \ --enable-bsd-behaviour \ --enable-ext2direct=yes \ --enable-ldapmail=yes \ --disable-libwrap \ --enable-netlink=yes \ --enable-nls \ --disable-rpath \ --enable-rpc=yes \ --enable-rpcsetquota=yes \ --disable-silent-rules \ --disable-xfs-roothack make %install %make_install install -D -p -m 644 %{SOURCE1} $RPM_BUILD_ROOT%{_unitdir}/quota_nld.service install -D -p -m 644 %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/quota_nld install -D -p -m 644 %{SOURCE3} $RPM_BUILD_ROOT%{_unitdir}/rpc-rquotad.service install -D -p -m 644 %{SOURCE4} $RPM_BUILD_ROOT%{_sysconfdir}/sysconfig/rpc-rquotad %find_lang %{name} %check make check %post %systemd_post quota_nld.service rpc-rquotad.service %preun %systemd_preun quota_nld.service rpc-rquotad.service %postun %systemd_postun_with_restart quota_nld.service rpc-rquotad.service %files -f %{name}.lang %license COPYING %doc Changelog %{_bindir}/* %{_sbindir}/* %{_unitdir}/*.service %config(noreplace) %{_sysconfdir}/* %exclude %{_docdir}/%{name} %files devel %doc doc/* ldap-scripts %dir %{_includedir}/rpcsvc %{_includedir}/rpcsvc/* %files help %{_mandir}/man*/* %changelog * Sun Sep 29 2019 zhanghaibo - 1:4.04-11 - Remove some comments * Fri Sep 6 2019 openEuler Buildteam - 1:4.04-10 - Package init