diff options
Diffstat (limited to 'packaging/quota.spec')
-rw-r--r-- | packaging/quota.spec | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/packaging/quota.spec b/packaging/quota.spec new file mode 100644 index 0000000..47aad39 --- /dev/null +++ b/packaging/quota.spec @@ -0,0 +1,62 @@ +Name: quota +Version: 4.0.pre1 +%define _version 4.00-pre1 +Release: 1 +Summary: Userland for disk quota +Group: System/Base +License: BSD, GPLv2, LGPLv2.1 +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: Development/Libraries + +%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}/{man1,man3,man8} +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}/* +%attr(0644,root,root) %{_mandir}/man1/*.gz +%attr(0644,root,root) %{_mandir}/man2/*.gz +%attr(0644,root,root) %{_mandir}/man3/*.gz +%attr(0644,root,root) %{_mandir}/man8/*.gz + +%files devel +%dir %{_includedir}/rpcsvc +%{_includedir}/rpcsvc/* +%attr(0644,root,root) %{_mandir}/man3/* + |