[mingw-SDL_mixer: 9/10] Modernize the spec file
Kalev Lember
kalev at fedoraproject.org
Wed Mar 7 17:28:46 UTC 2012
commit b006d0728b705907f482510328d67e4c8989375b
Author: Kalev Lember <kalevlember at gmail.com>
Date: Wed Mar 7 19:26:08 2012 +0200
Modernize the spec file
mingw-SDL_mixer.spec | 12 ++----------
1 files changed, 2 insertions(+), 10 deletions(-)
---
diff --git a/mingw-SDL_mixer.spec b/mingw-SDL_mixer.spec
index 91efd9b..501854f 100644
--- a/mingw-SDL_mixer.spec
+++ b/mingw-SDL_mixer.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}
Name: mingw-SDL_mixer
@@ -14,11 +11,10 @@ License: LGPLv2+
Group: Development/Libraries
URL: http://www.libsdl.org/projects/SDL_mixer/
Source0: http://www.libsdl.org/projects/SDL_mixer/release/SDL_mixer-%{version}.tar.gz
-BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch: noarch
-BuildRequires: mingw32-filesystem >= 49
+BuildRequires: mingw32-filesystem
BuildRequires: mingw32-gcc
BuildRequires: mingw32-binutils
BuildRequires: mingw32-dlfcn
@@ -64,7 +60,6 @@ sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
make
%install
-rm -rf $RPM_BUILD_ROOT
make DESTDIR=$RPM_BUILD_ROOT install
# silence rpmlint:
@@ -72,11 +67,7 @@ iconv --from=ISO-8859-1 --to=UTF-8 CHANGES > CHANGES.new && \
touch -r CHANGES CHANGES.new && \
mv CHANGES.new CHANGES
-%clean
-rm -rf $RPM_BUILD_ROOT
-
%files -n mingw32-SDL_mixer
-%defattr(-,root,root,-)
%doc README CHANGES COPYING
%{_mingw32_bindir}/SDL_mixer.dll
%{_mingw32_libdir}/libSDL_mixer.dll.a
@@ -87,6 +78,7 @@ rm -rf $RPM_BUILD_ROOT
%changelog
* Wed Mar 07 2012 Kalev Lember <kalevlember at gmail.com> - 1.2.11-6
- Renamed the source package to mingw-SDL_mixer (#801027)
+- Modernize the spec file
* Mon Feb 27 2012 Erik van Pienbroek <epienbro at fedoraproject.org> - 1.2.11-5
- Rebuild against the mingw-w64 toolchain
More information about the scm-commits
mailing list