Name: quota Version: 4.06 Epoch: 1 Release: 8 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 Patch0: 0000-Limit-number-of-comparison-characters-to-4.patch Patch1: 0001-Limit-maximum-of-RPC-port.patch Patch2: 0002-quotaio_xfs-Warn-when-large-kernel-timestamps-cannot.patch Patch3: 0003-quota-Add-sw64-architecture.patch Patch4: 0004-quota_nld-Initialize-sa_mask-when-registering-PID-fi.patch Patch5: 0005-quota-nld-fix-open-PID-file-failed-when-systemd-read.patch Patch6: 0006-common.c-fix-strncat-usage.patch BuildRequires: autoconf, automake, coreutils, rpcgen, systemd, gcc 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 %build autoreconf -fi %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 * Tue Jul 30 2024 wuguanghao - 1:4.06-8 - common.c: fix strncat usage * Tue Dec 6 2022 lihaoxiang - 1:4.06-7 - Type:bugfix - ID:NA - SUG:NA - DESC:rebase upstream patch about fix systemd read PID file failed * Thu Dec 1 2022 lihaoxiang - 1:4.06-6 - Type:bugfix - ID:NA - SUG:NA - DESC:fix systemd read PID file failed * Wed Oct 26 2022 wuzx - 1:4.06-5 - Type:feature - CVE:NA - SUG:NA - DESC:Add sw64 architecture * Tue Oct 11 2022 huangduirong - 1:4.06-4 - Type:bugfix - ID:NA - SUG:NA - DESC:Move autoreconf to build * Tue Jun 29 2021 zhouwenpei - 1:4.06-3 - add buildrequire gcc. * Wed Mar 31 2021 xieliuhua - 1:4.06-2 - fix Warn when large kernel timestamps cannot be handled * Thu Jan 14 2021 yanglongkang - 1:4.06-1 - Upgrade to 4.06 * Tue Jun 30 2020 volcanodragon - 1:4.05-2 - rename patches * Sat Jan 11 2020 renxudong - 1:4.05-1 - Upgrade to 4.05 * Sun Sep 29 2019 zhanghaibo - 1:4.04-11 - Remove some comments * Fri Sep 6 2019 openEuler Buildteam - 1:4.04-10 - Package init