File ggz.spec of Package ggz

#
# spec file for package ggz (Version 0.0.14.1)
#
# 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

BuildRequires:  gnutls-devel
BuildRequires:  libgcrypt-devel

Name:           ggz
Summary:        The GGZ project makes free online gaming possible
Version:        0.0.14.1
Release:        41
License:        GPL v2 or later ; LGPL v2.1 or later
Group:          Amusements/Games/Other
Source0:        libggz-%{version}.tar.bz2
Url:            http://www.ggzgamingzone.org/
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
AutoReqProv:    on
Requires:       libggz2 = %{version}

%description
The GGZ project makes free online gaming possible.



%package -n libggz2-devel
License:        GPL v2 or later ; LGPL v2.1 or later
Summary:        The GGZ project makes free online gaming possible
Group:          Amusements/Games/Other
Requires:       %{name} = %{version} glibc-devel
Requires:       gnutls-devel
Requires:       libgcrypt-devel

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



%package -n libggz2
License:        GPL v2 or later ; LGPL v2.1 or later
Summary:        The GGZ project makes free online gaming possible
Group:          Amusements/Games/Other
Requires:       %{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} %{?jobs:-j%jobs}

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

%post -n libggz2 -p /sbin/ldconfig

%postun -n libggz2 -p /sbin/ldconfig

%clean
rm -rf $RPM_BUILD_ROOT

%files
%defattr(-, root, root)
%doc AUTHORS NEWS README

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

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

%changelog
openSUSE Build Service is sponsored by