File SDL_ttf.spec of Package SDL_ttf

#
# spec file for package SDL_ttf (Version 2.0.9)
#
# Copyright (c) 2010 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
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#

# norootforbuild


Name:           SDL_ttf
BuildRequires:  freetype2-devel libSDL-devel xorg-x11-devel
Url:            http://www.libsdl.org/projects/SDL_ttf/
License:        LGPLv2.1+ ; Freetype Project License
Group:          System/Libraries
Version:        2.0.9
Release:        155
Summary:        Simple DirectMedia Layer - Truetype Library
# removed VisualC.zip, Watcom-OS2.zip, Xcode.tar.gz from upstream tarball [bnc#508180]
Source:         %{name}-%{version}-repack.tar.bz2
Source2:        baselibs.conf
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
This is a sample library that allows you to use TrueType fonts in your
SDL applications.



Authors:
--------
    Sam Lantinga <slouken@libsdl.org>

%package -n libSDL_ttf-2_0-0
Summary:        Simple DirectMedia Layer - Truetype Library
Group:          System/Libraries
License:        LGPLv2.1+ ; Freetype Project License
Provides:       SDL_ttf = %{version}
Obsoletes:      SDL_ttf <= %{version}

%description -n libSDL_ttf-2_0-0
This is a sample library that allows you to use TrueType fonts in your
SDL applications.



Authors:
--------
    Sam Lantinga <slouken@libsdl.org>

%package -n libSDL_ttf-devel
License:        LGPLv2.1+ ; Freetype Project License
Requires:       %{name} = %{version} SDL-devel
Summary:        Simple DirectMedia Layer - Truetype Library
Group:          Development/Libraries/C and C++
Requires:       libSDL_ttf-2_0-0 = %{version} libSDL-devel
Provides:       SDL_ttf-devel = %{version}
Obsoletes:      SDL_ttf-devel <= %{version}

%description -n libSDL_ttf-devel
This is a sample library that allows you to use TrueType fonts in your
SDL applications.



Authors:
--------
    Sam Lantinga <slouken@libsdl.org>

%prep
%setup -q

%build
%configure \
    --with-pic \
    --disable-static
%{__make} %{?jobs:-j %jobs}

%install
make DESTDIR=$RPM_BUILD_ROOT install
rm -f %{buildroot}%{_libdir}/*.la

%post -n libSDL_ttf-2_0-0 -p /sbin/ldconfig

%postun -n libSDL_ttf-2_0-0 -p /sbin/ldconfig

%files -n libSDL_ttf-2_0-0
%defattr(-,root,root)
%doc CHANGES COPYING README
%{_libdir}/lib*.so.*

%files -n libSDL_ttf-devel
%defattr(-,root,root)
%{_includedir}/SDL/SDL_ttf.h
%{_libdir}/lib*.so

%changelog