File _service:set_version:libSGE.spec of Package libSGE
#
# spec file for package libSGE
#
# 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/
#
%define soname 0
Name: libSGE
Version: 030809
Release: 0
License: LGPLv2.1+
Summary: SDL Graphics Extension library
Url: http://www.digitalfanatics.org/cal/sge/
Group: System/Libraries
Source0: sge%{version}.tar.bz2
# PATCH-FIX-UPSTREAM %{name}-030809-freetype_fix.patch upsteam_is_dead reddwarf@opensuse.org -- don't use internal freetype headers
Patch0: %{name}-030809-freetype_fix.patch
# PATCH-FIX-UPSTREAM %{name}-030809-overflow.patch upsteam_is_dead reddwarf@opensuse.org -- fixes overflow
Patch1: %{name}-030809-overflow.patch
# PATCH-FIX-UPSTREAM %{name}-030809-makefile.patch upsteam_is_dead reddwarf@opensuse.org -- add DESTDIR and use CFLAGS
Patch2: %{name}-030809-makefile.patch
# PATCH-FEATURE-OPENSUSE %{name}-030809-examples_makefile.patch reddwarf@opensuse.org -- makes makefile work once installed
Patch3: %{name}-030809-examples_makefile.patch
# PATCH-FEATURE-OPENSUSE %{name}-030809-no_static.patch reddwarf@opensuse.org -- don't create the static library
Patch4: %{name}-030809-no_static.patch
# PATCH-FIX-UPSTREAM %{name}-030809-parallel_make.patch upsteam_is_dead reddwarf@opensuse.org -- fix parallel make
Patch5: %{name}-030809-parallel_make.patch
# PATCH-FIX-UPSTREAM %{name}-030809-lib64.patch upsteam_is_dead reddwarf@opensuse.org -- fix installation path in x86-64
Patch6: %{name}-030809-lib64.patch
BuildRequires: pkgconfig(sdl)
BuildRequires: pkgconfig(SDL_image)
BuildRequires: pkgconfig(freetype2)
BuildRequires: gcc-c++
%description
SGE is a graphics library for the Simple Direct Media Layer. SGE provides pixel
operations, graphics primitives, TrueType rendering, rotation&scaling, and much
more.
%package -n %{name}%{soname}
Summary: SDL Graphics Extension library
Group: System/Libraries
%description -n %{name}%{soname}
SGE is a graphics library for the Simple Direct Media Layer. SGE provides pixel
operations, graphics primitives, TrueType rendering, rotation&scaling, and much
more.
%package devel
Summary: Development libraries and headers for %{name}
Group: Development/Libraries/C and C++
Requires: %{name}%{soname} = %{version}
%description devel
The developmental files that must be installed in order to compile applications
which use %{name}.
%prep
%setup -q -n sge%{version}
%patch0
%patch1
%patch2
%patch3
%patch4
%patch5
%ifarch x86_64
%patch6
%endif
sed -i 's/\r$//' examples/ttf_readme
%{__rm} -f sge_config.h
%build
CFLAGS='%{optflags}' %{__make} %{?_smp_mflags}
%install
%make_install
%post -n %{name}%{soname} -p /sbin/ldconfig
%postun -n %{name}%{soname} -p /sbin/ldconfig
%files -n %{name}%{soname}
%defattr(0644, root, root, 0755)
%{_libdir}/%{name}.so.%{soname}*
%files devel
%defattr(0644, root, root, 0755)
%doc INSTALL LICENSE README Todo WhatsNew docs examples
%{_includedir}/SDL/*
%{_libdir}/%{name}.so
%changelog