LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File clanlib.spec of Package clanlib (Project home:napobear)

#
# spec file for package clanlib
#
# Copyright (c) 2013 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 4.0

Name:           clanlib
Version:        4.0.0
Release:        0
Summary:        A Portable Interface for Writing Games
License:        Zlib
Group:          System/Libraries
Url:            http://www.clanlib.org/
Source:         ClanLib-%{version}.tgz
BuildRequires:  automake
BuildRequires:  libtool
BuildRequires:  autoconf
BuildRequires:  Mesa-devel
BuildRequires:  alsa-devel
BuildRequires:  dos2unix
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
Summary:        A portable interface for writing games
Group:          Development/Libraries/X11
Requires:       %{name} = %{version}
Requires:       Mesa-devel
Requires:       alsa-devel
Requires:       fontconfig-devel
Requires:       freetype2-devel
Requires:       libjpeg-devel
Requires:       libmikmod-devel
Requires:       libogg-devel
Requires:       libpng-devel
Requires:       libstdc++-devel
Requires:       libvorbis-devel
Requires:       pcre-devel
Requires:       sqlite3-devel
Requires:       zlib-devel

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

%prep
%setup -q -n ClanLib-%{version}

%build
./autogen.sh
%configure --with-pic --disable-static --disable-docs
make %{?_smp_mflags}

%install
%makeinstall
rm -f %{buildroot}%{_libdir}/*.la

%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
%{_includedir}/*
%{_libdir}/pkgconfig/*
%{_libdir}/libclan*.so

%changelog