[quota] Clean spec file

Petr Pisar ppisar at fedoraproject.org
Thu May 12 12:13:41 UTC 2011


commit b7cff5b1494b63f2265c3ac30b56e85d6f526660
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu May 12 14:02:16 2011 +0200

    Clean spec file
    
    Remove obsolete BuildRoot and defattr.

 quota.spec |   13 +------------
 1 files changed, 1 insertions(+), 12 deletions(-)
---
diff --git a/quota.spec b/quota.spec
index ca9d156..7abc844 100644
--- a/quota.spec
+++ b/quota.spec
@@ -9,7 +9,6 @@ Release: 0.15.pre1%{?dist}
 License: BSD and GPLv2+
 URL: http://sourceforge.net/projects/linuxquota/
 Group: System Environment/Base
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires: initscripts >= 6.38 tcp_wrappers
 Requires: quota-nls = %{epoch}:%{version}-%{release}
 Conflicts: kernel < 2.4
@@ -221,7 +220,6 @@ make
 
 
 %install
-rm -fr %{buildroot}
 mkdir -p %{buildroot}/sbin
 mkdir -p %{buildroot}%{_sysconfdir}
 mkdir -p %{buildroot}%{_sbindir}
@@ -258,12 +256,7 @@ if [ $1 = 0 ] ; then
 fi
 
 
-%clean
-rm -rf %{buildroot}
-
-
 %files
-%defattr(-,root,root,-)
 %attr(0755,root,root) /sbin/*
 %attr(0755,root,root) %{_bindir}/*
 %attr(0755,root,root) %{_sbindir}/*
@@ -276,7 +269,6 @@ rm -rf %{buildroot}
 %doc Changelog
 
 %files nld
-%defattr(-,root,root,-)
 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/sysconfig/quota_nld
 %attr(0755,root,root) %{_initrddir}/quota_nld
 %attr(0755,root,root) %{_sbindir}/quota_nld
@@ -284,7 +276,6 @@ rm -rf %{buildroot}
 %doc Changelog
 
 %files warnquota
-%defattr(-,root,root,-)
 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/quotagrpadmins
 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/quotatab
 %config(noreplace) %attr(0644,root,root) %{_sysconfdir}/warnquota.conf
@@ -293,23 +284,21 @@ rm -rf %{buildroot}
 %doc Changelog README.ldap-support README.mailserver
 
 %files nls -f %{name}.lang
-%defattr(-,root,root,-)
 %doc Changelog
 
 %files devel
-%defattr(-,root,root,-)
 %dir %{_includedir}/rpcsvc
 %{_includedir}/rpcsvc/*
 %attr(0644,root,root) %{_mandir}/man3/*
 
 %files doc
-%defattr(-,root,root,-)
 %doc doc/*
 
 
 %changelog
 * Thu May 12 2011 Petr Pisar <ppisar at redhat.com> - 1:4.00-0.15.pre1
 - Make dirname static to work with nss_db (bug #703567)
+- Clean spec file
 
 * Mon Apr 11 2011 Petr Pisar <ppisar at redhat.com> - 1:4.00-0.14.pre1
 - Initialize v2r1 ddquot padding in dump (bug #695409)


More information about the scm-commits mailing list