From 2569425f3fe3400b075756834055aab90aeb4d7f8876f4aa2870d88e5672bdff Mon Sep 17 00:00:00 2001 From: Jan Engelhardt Date: Thu, 8 Jan 2015 09:58:02 +0000 Subject: [PATCH] Edit package summary and description. Drop --with-pic. OBS-URL: https://build.opensuse.org/package/show/games/SDL_ttf?expand=0&rev=23 --- SDL_ttf.changes | 6 ++++++ SDL_ttf.spec | 38 +++++++++++++++++--------------------- 2 files changed, 23 insertions(+), 21 deletions(-) diff --git a/SDL_ttf.changes b/SDL_ttf.changes index a2ac1df..192b727 100644 --- a/SDL_ttf.changes +++ b/SDL_ttf.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Thu Jan 8 09:57:48 UTC 2015 - jengelh@inai.de + +- Improve package summary and description. Drop --with-pic which + is enabled implicitly anyway, remove redundant Requires. + ------------------------------------------------------------------- Thu Nov 20 14:24:16 UTC 2014 - olaf@aepfle.de diff --git a/SDL_ttf.spec b/SDL_ttf.spec index da4ce15..6ab01a0 100644 --- a/SDL_ttf.spec +++ b/SDL_ttf.spec @@ -1,7 +1,7 @@ # # spec file for package SDL_ttf # -# Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. +# Copyright (c) 2015 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -21,25 +21,25 @@ Name: SDL_ttf #Note: thankfully no overlap with SDL2, which is libSDL2_ttf-2_0-0. Version: 2.0.11 Release: 0 -Summary: Simple DirectMedia Layer - Truetype Library +Summary: SDL TrueType library License: Zlib Group: Development/Libraries/X11 Url: http://libsdl.org/projects/SDL_ttf/release-1.2.html # removed VisualC dir, Watcom-Win32.zip, Xcode and Xcode-iOS dirs from upstream tarball [bnc#508180] -Source: %{name}-%{version}-repack.tar.bz2 +Source: %name-%version-repack.tar.bz2 Source2: baselibs.conf BuildRoot: %{_tmppath}/%{name}-%{version}-build -BuildRequires: freetype2-devel -BuildRequires: libSDL-devel -BuildRequires: pkgconfig +BuildRequires: pkg-config +BuildRequires: pkgconfig(freetype2) +BuildRequires: pkgconfig(sdl) %description This is a sample library that allows you to use TrueType fonts in your SDL applications. %package -n %lname -Summary: Simple DirectMedia Layer - Truetype Library +Summary: Simple DirectMedia Layer – Truetype library Group: System/Libraries Provides: SDL_ttf = %version-%release Obsoletes: SDL_ttf < %version-%release @@ -49,10 +49,9 @@ This is a sample library that allows you to use TrueType fonts in your SDL applications. %package -n libSDL_ttf-devel -Summary: Simple DirectMedia Layer - Truetype Library +Summary: Development files for the SDL TrueType library Group: Development/Libraries/X11 -Requires: %lname = %{version} -Requires: libSDL-devel +Requires: %lname = %version Provides: SDL_ttf-devel = %version-%release Obsoletes: SDL_ttf-devel < %version-%release @@ -64,28 +63,25 @@ SDL applications. %setup -q %build -%configure \ - --with-pic \ - --disable-static +%configure --disable-static make %{?_smp_mflags} %install -make DESTDIR=$RPM_BUILD_ROOT install -rm -f %{buildroot}%{_libdir}/*.la - -%post -n %lname -p /sbin/ldconfig +%make_install +rm -f "%buildroot/%_libdir"/*.la +%post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files -n %lname %defattr(-,root,root) %doc CHANGES COPYING README -%{_libdir}/libSDL_ttf-2*.so.* +%_libdir/libSDL_ttf-2*.so.* %files -n libSDL_ttf-devel %defattr(-,root,root) -%{_includedir}/SDL/ -%{_libdir}/libSDL_ttf.so -%{_libdir}/pkgconfig/SDL_ttf.pc +%_includedir/SDL/ +%_libdir/libSDL_ttf.so +%_libdir/pkgconfig/SDL_ttf.pc %changelog