Sophie

Sophie

distrib > Mageia > 3 > i586 > by-pkgid > 983e521ecb8ba8980fcc539ee853d9a9 > files > 3

SDL_ttf-2.0.11-2.mga3.src.rpm

%define	lib_name_orig	lib%{name}
%define	major 0
%define apiver 2.0
%define	libname %mklibname %{name} %{apiver} %{major}
%define develname %mklibname -d %{name}

Summary:	Simple DirectMedia Layer - Sample TrueType Font Library
Name:		SDL_ttf
Version:	2.0.11
Release:	%mkrel 2
License:	LGPLv2+
Group:		System/Libraries
URL:		http://www.libsdl.org/projects/SDL_ttf/
Source0:	http://www.libsdl.org/projects/SDL_ttf/release/%{name}-%{version}.tar.gz
Patch0:		SDL_ttf-2.0.11-link.patch
BuildRequires:	SDL-devel
BuildRequires:	freetype2-devel >= 2.1.7

%description
This is a sample library which allows you to use TrueType fonts in your SDL
applications. It comes with an example program "showfont" which displays an
example string for a given TrueType font file.

Warning! TrueType font decoding is under patent, and software using this
library may be in violation of this patent. Use at your own risk! See
http://www.freetype.org/ for details.

%package -n %{libname}
Summary:	Main library for %{name}
Group:		System/Libraries
Obsoletes:	%mklibname %{name} 2.0

%description -n	%{libname}
This package contains the library needed to run programs dynamically
linked with %{name}.

Warning! TrueType font decoding is under patent, and software using this
library may be in violation of this patent. Use at your own risk! See
http://www.freetype.org/ for details.

%package -n %{develname}
Summary:	Headers for developing programs that will use %{name}
Group:		Development/C
Requires:	%{libname} = %{version}-%{release}
Provides:	%{lib_name_orig}-devel = %{version}-%{release}
Provides:	%{name}-devel = %{version}-%{release}
Obsoletes:	%mklibname %{name} 2.0 -d

%description -n	%{develname}
This package contains the headers that programmers will need to develop
applications which will use %{name}.

Warning! TrueType font decoding is under patent, and software using this
library may be in violation of this patent. Use at your own risk! See
http://www.freetype.org/ for details.

%package -n %{libname}-test
Summary:	Test binary for %{name}
Group:		System/Libraries
Conflicts:	showfont
Obsoletes:	%{mklibname %{name} 2.0}-test

%description -n	%{libname}-test
This package contains binary to test the associated library.

%prep
%setup -q
%patch0 -p0

%build
%configure2_5x --disable-static
%make

%install
rm -rf %{buildroot}
%makeinstall_std

rm -f %{buildroot}%{_libdir}/*.la

install -d %{buildroot}%{_bindir}
install -m755 .libs/{showfont,glfont} %{buildroot}%{_bindir}

%clean
rm -rf %{buildroot}

%files -n %{libname}-test
%defattr(-,root,root)
%{_bindir}/showfont
%{_bindir}/glfont

%files -n %{libname}
%defattr(-,root,root)
%{_libdir}/lib*%{apiver}.so.%{major}*

%files -n %{develname}
%defattr(-,root,root)
%doc README CHANGES
%{_libdir}/lib*.so
%{_includedir}/SDL/*
%{_libdir}/pkgconfig/*.pc


%changelog

* Fri Jan 11 2013 umeabot <umeabot> 2.0.11-2.mga3
+ Revision: 345118
- Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild

* Mon Jan 16 2012 fwang <fwang> 2.0.11-1.mga2
+ Revision: 196866
- fix linkage
- new version 2.0.11

* Mon Sep 12 2011 fwang <fwang> 2.0.10-3.mga2
+ Revision: 142702
- fix linkage
- rebuild

* Wed Jan 19 2011 blino <blino> 2.0.10-2.mga1
+ Revision: 24947
- remove old ldconfig scriptlets
- imported package SDL_ttf