[mingw-tcl: 24/25] Modernize the spec file

Kalev Lember kalev at fedoraproject.org
Wed Mar 7 17:57:20 UTC 2012


commit 501a107e951345881f41467f28a732c88f782308
Author: Kalev Lember <kalevlember at gmail.com>
Date:   Wed Mar 7 19:51:16 2012 +0200

    Modernize the spec file

 mingw-tcl.spec |   14 +++-----------
 1 files changed, 3 insertions(+), 11 deletions(-)
---
diff --git a/mingw-tcl.spec b/mingw-tcl.spec
index 86e983b..3716273 100644
--- a/mingw-tcl.spec
+++ b/mingw-tcl.spec
@@ -1,8 +1,5 @@
 %global __strip %{_mingw32_strip}
 %global __objdump %{_mingw32_objdump}
-%global _use_internal_dependency_generator 0
-%global __find_requires %{_mingw32_findrequires}
-%global __find_provides %{_mingw32_findprovides}
 %define __debug_install_post %{_mingw32_debug_install_post}
 
 %global majorver1 8
@@ -20,14 +17,13 @@ License: TCL
 Group: Development/Languages
 URL: http://tcl.sourceforge.net/
 Source0: http://downloads.sourceforge.net/sourceforge/tcl/%{name1}%{version}-src.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
 BuildArch: noarch
 Buildrequires: autoconf
 BuildRequires: file
 BuildRequires: m4
 BuildRequires: net-tools
 BuildRequires: tcl
-BuildRequires: mingw32-filesystem >= 52
+BuildRequires: mingw32-filesystem
 BuildRequires: mingw32-gcc
 BuildRequires: mingw32-binutils
 BuildRequires: mingw32-cpp
@@ -63,7 +59,7 @@ of web-related tasks and for creating powerful command languages for
 applications.
 
 
-%{_mingw32_debug_package}
+%{?_mingw32_debug_package}
 
 
 %prep
@@ -86,7 +82,6 @@ make TCL_LIBRARY=%{_mingw32_datadir}/%{name1}%{majorver}
 popd
 
 %install
-rm -rf $RPM_BUILD_ROOT
 make install -C win INSTALL_ROOT=$RPM_BUILD_ROOT TCL_LIBRARY=%{_mingw32_datadir}/%{name1}%{majorver}
 
 ln -s tclsh%{majorver1}%{majorver2}.exe $RPM_BUILD_ROOT%{_mingw32_bindir}/tclsh.exe
@@ -125,11 +120,7 @@ rm -rf $RPM_BUILD_ROOT/%{_mingw32_datadir}/%{name1}%{majorver}/ldAix
 mv $RPM_BUILD_ROOT/%{_mingw32_libdir}/dde* $RPM_BUILD_ROOT/%{_mingw32_libdir}/%{name1}%{majorver}/
 mv $RPM_BUILD_ROOT/%{_mingw32_libdir}/reg* $RPM_BUILD_ROOT/%{_mingw32_libdir}/%{name1}%{majorver}/
 
-%clean
-rm -rf $RPM_BUILD_ROOT
-
 %files -n mingw32-%{name1}
-%defattr(-,root,root,-)
 %{_mingw32_bindir}/%{name1}sh.exe
 %{_mingw32_bindir}/%{name1}sh%{majorver1}%{majorver2}.exe
 %{_mingw32_bindir}/%{name1}%{majorver1}%{majorver2}.dll
@@ -148,6 +139,7 @@ rm -rf $RPM_BUILD_ROOT
 %changelog
 * Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 8.5.11-3
 - Renamed the source package to mingw-tcl (#801032)
+- Modernize the spec file
 
 * Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 8.5.11-2
 - Rebuild against the mingw-w64 toolchain


More information about the scm-commits mailing list