From f5aed703e3ce3dd8e666a109a26592f56b2f25b0123f811028c73f9d710ee46c Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Thu, 15 Aug 2013 13:55:24 +0000 Subject: [PATCH] Accepting request 188151 from home:jengelh:branches:games - Some metadata spruce-up: add current URLs, softer wildcarding in the files list, more robust make install call OBS-URL: https://build.opensuse.org/request/show/188151 OBS-URL: https://build.opensuse.org/package/show/games/SDL_net?expand=0&rev=13 --- SDL_net.changes | 6 ++++++ SDL_net.spec | 27 +++++++++++++++------------ 2 files changed, 21 insertions(+), 12 deletions(-) diff --git a/SDL_net.changes b/SDL_net.changes index 85e7dfe..cf9a6bb 100644 --- a/SDL_net.changes +++ b/SDL_net.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Tue Aug 13 12:04:26 UTC 2013 - jengelh@inai.de + +- Some metadata spruce-up: add current URLs, softer wildcarding + in the files list, more robust make install call + ------------------------------------------------------------------- Tue Aug 13 11:39:07 UTC 2013 - prusnak@opensuse.org diff --git a/SDL_net.spec b/SDL_net.spec index 8bf5c69..1e4f312 100644 --- a/SDL_net.spec +++ b/SDL_net.spec @@ -17,35 +17,38 @@ Name: SDL_net -BuildRequires: libSDL-devel -Url: http://www.libsdl.org/projects/SDL_net/ +%define lname libSDL_net-1_2-0 Version: 1.2.8 Release: 0 Summary: Simple DirectMedia Layer - Networking Library License: LGPL-2.1+ -Group: System/Libraries +Group: Development/Libraries/C and C++ +Url: http://libsdl.org/projects/SDL_net/release-1.2.html + # removed VisualC, Xcode, Xcode-iOS and Watcom-OS2.zip from the upstream tarball [bnc#508084] Source: %{name}-%{version}-repack.tar.bz2 Source2: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build +BuildRequires: libSDL-devel +BuildRequires: pkgconfig %description This is a small cross-platform networking library for use with SDL. -%package -n libSDL_net-1_2-0 +%package -n %lname Summary: Simple DirectMedia Layer - Networking Library Group: System/Libraries Provides: SDL_net = %{version} Obsoletes: SDL_net <= %{version} -%description -n libSDL_net-1_2-0 +%description -n %lname This is a small cross-platform networking library for use with SDL. %package -n libSDL_net-devel Summary: Simple DirectMedia Layer - Networking Library Group: Development/Libraries/C and C++ +Requires: %lname = %{version} Requires: libSDL-devel -Requires: libSDL_net-1_2-0 = %{version} Provides: SDL_net-devel = %{version} Obsoletes: SDL_net-devel <= %{version} @@ -63,19 +66,19 @@ make %{?_smp_mflags} make DESTDIR=$RPM_BUILD_ROOT install %{__rm} -f %{buildroot}%{_libdir}/*.la -%post -n libSDL_net-1_2-0 -p /sbin/ldconfig +%post -n %lname -p /sbin/ldconfig -%postun -n libSDL_net-1_2-0 -p /sbin/ldconfig +%postun -n %lname -p /sbin/ldconfig -%files -n libSDL_net-1_2-0 +%files -n %lname %defattr(-,root,root) %doc CHANGES COPYING README -%{_libdir}/lib*.so.* +%{_libdir}/libSDL_net-1*.so.* %files -n libSDL_net-devel %defattr(-,root,root) -%{_includedir}/SDL/* -%{_libdir}/lib*.so +%{_includedir}/SDL/ +%{_libdir}/libSDL_net.so %{_libdir}/pkgconfig/SDL_net.pc %changelog