[libutempter/f18] remove unnecessary macros

Miroslav Lichvar mlichvar at fedoraproject.org
Thu Oct 11 14:08:32 UTC 2012


commit ce42c7b58660f0e5af19b838b2d768cfab640dbb
Author: Miroslav Lichvar <mlichvar at redhat.com>
Date:   Thu Oct 11 15:57:28 2012 +0200

    remove unnecessary macros

 libutempter.spec |   10 +---------
 1 files changed, 1 insertions(+), 9 deletions(-)
---
diff --git a/libutempter.spec b/libutempter.spec
index 812c80d..f259358 100644
--- a/libutempter.spec
+++ b/libutempter.spec
@@ -7,7 +7,6 @@ Release: 1%{?dist}
 License: LGPLv2+
 Group: System Environment/Libraries
 URL: ftp://ftp.altlinux.org/pub/people/ldv/utempter
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 
 Source0: ftp://ftp.altlinux.org/pub/people/ldv/utempter/%{name}-%{version}.tar.bz2
 
@@ -16,7 +15,6 @@ Requires(post): /sbin/ldconfig
 Requires(postun): /sbin/ldconfig
 
 Provides: utempter = %{utempter_compat_ver}
-Obsoletes: utempter
 
 %description
 This library provides interface for terminal emulators such as
@@ -38,8 +36,6 @@ utempter-based software.
 make CFLAGS="$RPM_OPT_FLAGS" libdir="%{_libdir}" libexecdir="%{_libexecdir}"
 
 %install
-rm -rf $RPM_BUILD_ROOT
-
 make install DESTDIR="$RPM_BUILD_ROOT" libdir="%{_libdir}" libexecdir="%{_libexecdir}"
 
 # FIXME: We might need to enable this part for backward compat with the
@@ -52,9 +48,6 @@ make install DESTDIR="$RPM_BUILD_ROOT" libdir="%{_libdir}" libexecdir="%{_libexe
 # NOTE: Static lib intentionally disabled.
 rm -f $RPM_BUILD_ROOT%{_libdir}/*.a
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %pre
 {
     %{_sbindir}/groupadd -g 22 -r -f utmp || :
@@ -65,7 +58,6 @@ rm -rf $RPM_BUILD_ROOT
 %postun -p /sbin/ldconfig
 
 %files
-%defattr(-,root,root,-)
 %doc COPYING README
 %{_libdir}/libutempter.so.0
 %{_libdir}/libutempter.so.1.*
@@ -76,7 +68,6 @@ rm -rf $RPM_BUILD_ROOT
 #%{_sbindir}/utempter
 
 %files devel
-%defattr(-,root,root,-)
 %{_includedir}/utempter.h
 %{_libdir}/libutempter.so
 %{_mandir}/man3/*
@@ -85,6 +76,7 @@ rm -rf $RPM_BUILD_ROOT
 * Thu Oct 11 2012 Miroslav Lichvar <mlichvar at redhat.com> - 1.1.6-1
 - update to 1.1.6
 - fix license tag
+- remove unnecessary macros
 
 * Thu Jul 19 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.1.5-7
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild


More information about the scm-commits mailing list