File clanlib.spec of Package clanlib
#
# spec file for package clanlib (Version 2.0.3)
#
# Copyright (c) 2009 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
%define clan_ver 2.0
Name: clanlib
License: Other uncritical OpenSource License
Group: System/Libraries
Url: http://www.clanlib.org/
Version: 2.0.3
Release: 1
Summary: A Portable Interface for Writing Games
# upstream tarball ClanLib-%{version}.tar.gz after removing these files:
# * ClanLib-2.0.3/Tests/Display/SpriteSpeed1/SpriteSpeed1-CL08.exe
# * ClanLib-2.0.3/Tests/Display/SpriteSpeed1/SpriteSpeed1-CL09.exe
Source: ClanLib-%{version}-repack.tar.bz2
BuildRoot: %{_tmppath}/%{name}-%{version}-build
BuildRequires: Mesa-devel SDL-devel SDL_gfx-devel alsa-devel fontconfig-devel freetype2-devel libjpeg-devel libmikmod-devel libogg-devel libpng-devel libstdc++-devel libvorbis-devel libxslt pcre-devel sqlite3-devel zlib-devel
BuildRequires: doxygen gcc-c++
%description
ClanLib delivers a platform-independent interface for writing games.
Authors:
--------
Magnus Norddahl <mbn@nkdev.dk>
Daniel Vogel <666@grafzahl.de>
%package devel
License: Other uncritical OpenSource License
Requires: Mesa-devel libstdc++-devel
Requires: %{name} = %{version}
Summary: A portable interface for writing games
Group: Development/Libraries/X11
%description devel
ClanLib delivers a platform independent interface to write games with.
Authors:
--------
Magnus Norddahl <mbn@nkdev.dk>
Daniel Vogel <666@grafzahl.de>
%package doc
License: Other uncritical OpenSource License
Requires: %{name} = %{version}
Summary: A Portable Interface for Writing Games
Group: Documentation/HTML
%description doc
ClanLib delivers a platform-independent interface for writing games.
Authors:
--------
Magnus Norddahl <mbn@nkdev.dk>
Daniel Vogel <666@grafzahl.de>
%package examples
License: Other uncritical OpenSource License
Requires: %{name} = %{version}
Requires: %{name}-devel = %{version}
Summary: A Portable Interface for Writing Games
Group: Documentation/Other
%description examples
ClanLib delivers a platform-independent interface for writing games.
Authors:
--------
Magnus Norddahl <mbn@nkdev.dk>
Daniel Vogel <666@grafzahl.de>
%prep
%setup -q -n ClanLib-%{version}
rm -f Examples/*/*.{sln,vcproj}
%build
export CFLAGS="$RPM_OPT_FLAGS -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
make DESTDIR=$RPM_BUILD_ROOT install
rm -f %{buildroot}%{_libdir}/*.la
cp -a Examples $RPM_BUILD_ROOT%{_datadir}/doc/clanlib-%{clan_ver}
%clean
rm -rf $RPM_BUILD_ROOT
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig
%files
%defattr(-, root, root)
%doc COPYING CREDITS README
%{_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)
%dir %{_datadir}/doc/clanlib-%{clan_ver}
%{_datadir}/doc/clanlib-%{clan_ver}/*
%exclude %{_datadir}/doc/clanlib-%{clan_ver}/Examples
%files examples
%defattr(-, root, root)
%dir %{_datadir}/doc/clanlib-%{clan_ver}/Examples
%{_datadir}/doc/clanlib-%{clan_ver}/Examples/*
%changelog