File SDL_Pango.spec of Package SDL_Pango

#
# spec file for package SDL_Pango
#
# 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
# 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/
#


Name:           SDL_Pango
%define lname	libSDL_Pango1
Version:        0.1.2
Release:        0
Summary:        Programming Pango via SDL
License:        LGPL-2.1+
Group:          Development/Libraries/X11
Url:            http://sdlpango.sourceforge.net/

#CVS-Clone:	-d:pserver:anonymous@sdlpango.cvs.sourceforge.net:/cvsroot/sdlpango co -P SDL_Pango
Source:         %{name}-%{version}.tar.bz2
Source2:        baselibs.conf
# PATCH-MISSING-TAG -- See http://wiki.opensuse.org/openSUSE:Packaging_Patches_guidelines
Patch0:         %{name}-%{version}-API-adds.patch
BuildRequires:  libtool
BuildRequires:  pkg-config
BuildRequires:  pkgconfig(pango)
BuildRequires:  pkgconfig(sdl)
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
Pango is the text rendering engine of GNOME 2.x. SDL_Pango connects the
engine to SDL.

%package -n %lname
Summary:        Programming Pango via SDL
Group:          System/Libraries
Provides:       SDL_Pango = %{version}
Obsoletes:      SDL_Pango <= %{version}

%description -n %lname
Pango is the text rendering engine of GNOME 2.x. SDL_Pango connects the
engine to SDL.

%package -n libSDL_Pango-devel
Summary:        Include Files and Libraries for SDL_Pango development
Group:          Development/Libraries/X11
Requires:       %lname = %version
Requires:       libSDL-devel
Requires:       pkgconfig
Provides:       SDL_Pango-devel = %{version}
Obsoletes:      SDL_Pango-devel <= %{version}

%description -n libSDL_Pango-devel
This package contains all necessary include files and libraries needed
to develop applications that require these.

%prep
%setup -q
%patch0

%build
autoreconf -fiv
%configure --disable-static --with-pic
make %{?_smp_mflags}

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

%post   -n %lname -p /sbin/ldconfig
%postun -n %lname -p /sbin/ldconfig

%files -n %lname
%defattr(-,root,root)
%doc AUTHORS COPYING README
%{_libdir}/libSDL_Pango.so.*

%files -n libSDL_Pango-devel
%defattr(-,root,root)
%{_includedir}/SDL_Pango.h
%{_libdir}/pkgconfig/SDL_Pango.pc
%{_libdir}/libSDL_Pango.so

%changelog
openSUSE Build Service is sponsored by