[mingetty] Modernize spec file

Petr Pisar ppisar at fedoraproject.org
Wed Aug 29 09:42:09 UTC 2012


commit db3d6f456d63d9c43d16e8ac7a793435590385f5
Author: Petr Písař <ppisar at redhat.com>
Date:   Wed Aug 29 11:41:27 2012 +0200

    Modernize spec file

 mingetty.spec |   14 +++++---------
 1 files changed, 5 insertions(+), 9 deletions(-)
---
diff --git a/mingetty.spec b/mingetty.spec
index a4bf2c9..cd8d170 100644
--- a/mingetty.spec
+++ b/mingetty.spec
@@ -2,9 +2,8 @@ Summary: A compact getty program for virtual consoles only
 Name: mingetty
 Version: 1.08
 License: GPLv2+
-Release: 11%{?dist}
+Release: 12%{?dist}
 Group: System Environment/Base
-BuildRoot: %{_tmppath}/%{name}-root
 URL: http://sourceforge.net/projects/mingetty/
 Source: http://downloads.sourceforge.net/%{name}/%{name}-%{version}.tar.gz
 # Bug #635412
@@ -35,22 +34,19 @@ lines (you should use the mgetty program in that case).
 make "CFLAGS=-Wall -D_GNU_SOURCE %{__global_cflags}" "LDFLAGS=%{__global_ldflags}"
 
 %install
-rm -rf $RPM_BUILD_ROOT
-mkdir -p $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8}
-
+install -d $RPM_BUILD_ROOT/{sbin,%{_mandir}/man8}
 install -m 0755 mingetty $RPM_BUILD_ROOT/sbin/
 install -m 0644 mingetty.8 $RPM_BUILD_ROOT/%{_mandir}/man8/
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files
-%defattr(-,root,root)
 %doc COPYING
 /sbin/mingetty
 %{_mandir}/man8/mingetty.*
 
 %changelog
+* Wed Aug 29 2012 Petr Pisar <ppisar at redhat.com> - 1.08-12
+- Modernize spec file
+
 * Fri Jul 20 2012 Fedora Release Engineering <rel-eng at lists.fedoraproject.org> - 1.08-11
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
 


More information about the scm-commits mailing list