File clanlib.spec of Package clanlib

#
# spec file for package clanlib (Version 2.1.1)
#
# 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 clan_ver 2.1

Name:           clanlib
Version:        2.1.1
Release:        1
License:        Other uncritical OpenSource License
Summary:        A Portable Interface for Writing Games
Url:            http://www.clanlib.org/
Group:          System/Libraries
Source:         ClanLib-%{version}.tar.bz2
BuildRequires:  Mesa-devel
BuildRequires:  SDL-devel
BuildRequires:  SDL_gfx-devel
BuildRequires:  alsa-devel
BuildRequires:  doxygen
BuildRequires:  fdupes
BuildRequires:  fontconfig-devel
BuildRequires:  freetype2-devel
BuildRequires:  gcc-c++
BuildRequires:  libjpeg-devel
BuildRequires:  libmikmod-devel
BuildRequires:  libogg-devel
BuildRequires:  libpng-devel
BuildRequires:  libstdc++-devel
BuildRequires:  libvorbis-devel
BuildRequires:  libxslt
BuildRequires:  pcre-devel
BuildRequires:  sqlite3-devel
BuildRequires:  zlib-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
ClanLib delivers a platform-independent interface for writing games.

%package devel
License:        Other uncritical OpenSource License
Summary:        A portable interface for writing games
Group:          Development/Libraries/X11
Requires:       %{name} = %{version}
Requires:       Mesa-devel
Requires:       libstdc++-devel

%description devel
ClanLib delivers a platform independent interface to write games with.

%package doc
License:        Other uncritical OpenSource License
Summary:        A Portable Interface for Writing Games
Group:          Documentation/HTML
Requires:       %{name} = %{version}
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif

%description doc
ClanLib delivers a platform-independent interface for writing games.

%package examples
License:        Other uncritical OpenSource License
Summary:        A Portable Interface for Writing Games
Group:          Documentation/Other
Requires:       %{name} = %{version}
Requires:       %{name}-devel = %{version}
%if 0%{?suse_version} >= 1120
BuildArch:      noarch
%endif

%description examples
ClanLib delivers a platform-independent interface for writing games.

%prep
%setup -q -n ClanLib-%{version}
rm -f Examples/*/*.{sln,vcproj}

%build
export CFLAGS="%{optflags} -fno-strict-aliasing"
export CXXFLAGS="$CFLAGS"
%ifarch %ix86
%configure --with-pic --disable-static --enable-asm386 --enable-docs
%else
%configure --with-pic --disable-static --disable-asm386 --enable-docs
%endif
make %{?jobs:-j%jobs}

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la
cp -a Examples %{buildroot}%{_datadir}/doc/clanlib-%{clan_ver}
%fdupes %{buildroot}%{_datadir}/doc

%clean
rm -rf %{buildroot}

%post -p /sbin/ldconfig

%postun -p /sbin/ldconfig

%files
%defattr(-, root, root)
%doc COPYING CREDITS README UPGRADE.txt
%{_libdir}/libclan*.so.*

%files devel
%defattr(-, root, root)
%doc CODING_STYLE PATCHES README.anjuta README.kdevelop TODO.txt
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/libclan*.so

%files doc
%defattr(-, root, root)
%{_datadir}/doc/clanlib-%{clan_ver}/
%exclude %{_datadir}/doc/clanlib-%{clan_ver}/Examples

%files examples
%defattr(-, root, root)
%{_datadir}/doc/clanlib-%{clan_ver}/Examples/

%changelog
openSUSE Build Service is sponsored by