[unalz] Modernize spec file

Petr Pisar ppisar at fedoraproject.org
Fri Aug 3 13:44:19 UTC 2012


commit 5d841a48279ee450992276c2497c7cfd9a2a9dfe
Author: Petr Písař <ppisar at redhat.com>
Date:   Fri Aug 3 15:35:35 2012 +0200

    Modernize spec file

 unalz.spec |    8 +-------
 1 files changed, 1 insertions(+), 7 deletions(-)
---
diff --git a/unalz.spec b/unalz.spec
index e8efcc4..1d9b7cf 100644
--- a/unalz.spec
+++ b/unalz.spec
@@ -5,13 +5,12 @@ Release: 6%{?dist}
 License: zlib and BSD
 Group: Applications/File
 URL: http://www.kipple.pe.kr/win/unalz/
-Source0: http://www.kipple.pe.kr/win/unalz/%{name}-%{version}.tgz
+Source0: %{url}%{name}-%{version}.tgz
 # We are using the internal zlib
 Patch0: unalz-internal-zlib.patch
 Patch1: unalz-optflags.patch
 # Respect zlib get_crc_table() type
 Patch2: unalz-0.65-zlib-get_crc_table-return-type-can-vary.patch
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildRequires: zlib-devel
 
 %description
@@ -42,15 +41,10 @@ export CFLAGS="$RPM_OPT_FLAGS"
 make %{?_smp_mflags} linux-utf8
 
 %install
-rm -rf ${RPM_BUILD_ROOT}
 mkdir -p $RPM_BUILD_ROOT%{_bindir}
 install -p %{name} $RPM_BUILD_ROOT%{_bindir}
 
-%clean
-rm -rf ${RPM_BUILD_ROOT}
-
 %files
-%defattr(-,root,root,-)
 %doc readme.txt 
 %{_bindir}/%{name}
 


More information about the scm-commits mailing list