File ggz.spec of Package ggz

#
# spec file for package ggz
#
# Copyright (c) 2011 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:           ggz
Version:        0.0.14.1
Release:        54
License:        GPLv2+ ; LGPLv2.1+
Summary:        Makes free online gaming possible
Url:            http://www.ggzgamingzone.org/
Group:          Amusements/Games/Other
Source0:        libggz-%{version}.tar.bz2
BuildRequires:  gnutls-devel
BuildRequires:  libgcrypt-devel
BuildRoot:      %{_tmppath}/%{name}-%{version}-build

%description
The GGZ project makes free online gaming possible.

%package -n libggz2-devel
License:        GPLv2+ ; LGPLv2.1+
Summary:        Makes free online gaming possible
Group:          Development/Libraries/C and C++
Requires:       glibc-devel
Requires:       gnutls-devel
Requires:       libgcrypt-devel
Requires:       libggz2 = %{version}

%description -n libggz2-devel
The GGZ project makes free online gaming possible.

%package -n libggz2
License:        GPLv2+ ; LGPLv2.1+
Summary:        Makes free online gaming possible
Group:          Amusements/Games/Other
Provides:       %{name} = %{version}
Obsoletes:      %{name} <= %{version}

%description -n libggz2
The GGZ project makes free online gaming possible.

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

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

%install
%make_install
rm %{buildroot}%{_libdir}/*.la
mkdir -p %{buildroot}%{_datadir}/ggz

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

%clean
rm -rf %{buildroot}

%files -n libggz2
%defattr(-, root, root)
%doc AUTHORS NEWS README
%{_libdir}/*.so.*
%dir %{_datadir}/ggz

%files -n libggz2-devel
%defattr(-, root, root)
%{_includedir}/*.h
%{_libdir}/*.so
%{_mandir}/man3/*.gz

%changelog
openSUSE Build Service is sponsored by