[indent] Remove unneeded spec code

Petr Pisar ppisar at fedoraproject.org
Thu Aug 25 09:55:35 UTC 2011


commit 1d0bd0489ad1e2bb67e507c73dda1f54d446c92a
Author: Petr Písař <ppisar at redhat.com>
Date:   Thu Aug 25 11:46:40 2011 +0200

    Remove unneeded spec code

 indent.spec |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/indent.spec b/indent.spec
index fa59ca4..7d88be0 100644
--- a/indent.spec
+++ b/indent.spec
@@ -13,7 +13,6 @@ Patch7: indent-2.2.9-man.patch
 # <https://lists.gnu.org/archive/html/bug-indent/2011-08/msg00000.html>
 Patch8: indent-2.2.11-Do-not-split-decimal-float-suffix-from-constant.patch
 BuildRequires: texinfo texi2html
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 Requires(post): /sbin/install-info
 Requires(preun): /sbin/install-info
 
@@ -37,7 +36,6 @@ you want a program to format your code.
 make %{?_smp_mflags}
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make DESTDIR=$RPM_BUILD_ROOT install
 rm -f $RPM_BUILD_ROOT/%{_infodir}/dir $RPM_BUILD_ROOT/%{_bindir}/texinfo2man \
 	$RPM_BUILD_ROOT/usr/doc/indent/indent.html
@@ -45,12 +43,7 @@ rm -f $RPM_BUILD_ROOT/%{_infodir}/dir $RPM_BUILD_ROOT/%{_bindir}/texinfo2man \
 %find_lang %name
 
 %check
-echo ====================TESTING=========================
 make -C regression
-echo ====================TESTING END=====================
-
-%clean
-rm -rf $RPM_BUILD_ROOT
 
 %post
 /sbin/install-info %{_infodir}/indent.info.gz %{_infodir}/dir --entry="* indent: (indent).				Program to format source code." >/dev/null 2>&1 || :
@@ -61,7 +54,6 @@ if [ "$1" = 0 ]; then
 fi
 
 %files -f %{name}.lang
-%defattr(-,root,root)
 %doc AUTHORS COPYING NEWS README ChangeLog*
 %{_bindir}/indent
 %{_mandir}/man1/indent.*
@@ -71,6 +63,7 @@ fi
 %changelog
 * Thu Aug 25 2011 Petr Pisar <ppisar at redhat.com> - 2.2.11-4
 - Fix decimal float constant suffixes (bug #733051)
+- Remove uneeded spec code
 
 * Wed Feb 09 2011 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 2.2.11-3
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild


More information about the scm-commits mailing list