diff options
Diffstat (limited to 'packaging/quota.spec')
-rw-r--r-- | packaging/quota.spec | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/packaging/quota.spec b/packaging/quota.spec new file mode 100644 index 0000000..72d5bf3 --- /dev/null +++ b/packaging/quota.spec @@ -0,0 +1,59 @@ +Name: quota +Version: 4.01 +%define _version 4.01 +Release: 1 +Summary: Userland for disk quota +Group: Base/Service +License: BSD-4-Clause-UC and GPL-2.0 +URL: http://sourceforge.net/projects/linuxquota/ +Source0: %{name}-%{version}.tar.bz2 +BuildRoot: %{_tmppath}/%{name}-%{version}-%{release} +BuildRequires: pkgconfig(openssl) +BuildRequires: pkgconfig(ext2fs) +BuildRequires: pkgconfig(dbus-1) +BuildRequires: gettext + +%description +%{summary}. + +%package devel +Summary: Development files for %{name} +Group: Base/Service + +%description devel +%{summary}. + +%prep +%setup -q -n %{name}-%{version} + +%build +%configure \ + --enable-netlink=no \ + --with-ext2direct=yes \ + --enable-rpcsetquota=yes +make %{?_smp_mflags} + +%install +mkdir -p %{buildroot}/sbin +mkdir -p %{buildroot}%{_sysconfdir} +mkdir -p %{buildroot}%{_sbindir} +mkdir -p %{buildroot}%{_bindir} +mkdir -p %{buildroot}%{_mandir}/man{1,3,8} +make install INSTALL='install -p' ROOTDIR=%{buildroot} + + +%find_lang %{name} + +%files -f %{name}.lang +%defattr(-,root,root,-) +%config %{_sysconfdir}/quota* +%config %{_sysconfdir}/*.conf +%attr(0755,root,root) %{_bindir}/* +%attr(0755,root,root) %{_sbindir}/* +%doc %{_mandir}/man1/*.gz +%doc %{_mandir}/man8/*.gz + +%files devel +%dir %{_includedir}/rpcsvc +%{_includedir}/rpcsvc/* +%doc %{_mandir}/man3/* |