%define name ggz-gtk-client %define version 0.0.14.1 %define release %mkrel 12 %define major 1 %define libname %mklibname %{name} %{major} %define develname %mklibname -d %{name} %define libggz_version %{version} %define ggz_client_libs_version %{version} Name: %{name} Summary: GGZ Client with GTK+ user interface Version: %{version} Release: %{release} License: GPLv2+ Group: Games/Other URL: http://ggzgamingzone.org/ # http://download.sf.net/ggz/ Source: %{name}-%{version}.tar.bz2 Patch0: ggz-gtk-client-0.0.14.1-linkage_fix.diff BuildRequires: libggz-devel = %{libggz_version} BuildRequires: ggz-client-libs-devel = %{ggz_client_libs_version} BuildRequires: gtk+2-devel desktop-file-utils Requires: libggz = %{libggz_version} Requires: ggz-client-libs = %{ggz_client_libs_version} Suggests: ggz-game-modules = %{version} %description The official GGZ Gaming Zone client with GTK+ user interface. %package -n %{libname} Summary: GGZ Library client with GTK+ user interface Group: Games/Other Obsoletes: %{mklibname %name} < 0.0.14.1-2 %description -n %{libname} The official GGZ Gaming Zone client with GTK+ user interface. %package -n %{develname} Summary: Development files for GGZ Gaming Zone client with GTK+ user interface Group: Development/Other Requires: %{libname} = %{version} Requires: libggz-devel = %{libggz_version} Provides: %{name}-devel = %{version} %description -n %{develname} The GGZ client libraries are necessary for running and/or developing GGZ Gaming Zone clients and games. This package contains headers and other development files used for building GGZ Gaming Zone GTK2+ client. %prep %setup -q %patch0 -p0 %build autoreconf -fis %configure2_5x \ --bindir=%{_gamesbindir} \ --datadir="\${prefix}/share" \ --disable-static \ --with-libggz-libraries=%{_libdir} \ --with-ggzcore-libraries=%{_libdir} \ --with-ggzmod-libraries=%{_libdir} \ %make %install rm -rf %{buildroot} %makeinstall_std rm -f %{buildroot}%{_libdir}/*.la desktop-file-install --vendor="" \ --remove-category="Application" \ --remove-key="Encoding" \ --add-category="GTK;Game" \ --dir %{buildroot}%{_datadir}/applications %{buildroot}%{_datadir}/applications/* %find_lang ggz-gtk %clean rm -rf %{buildroot} %files -f ggz-gtk.lang %defattr(-,root,root) %doc AUTHORS COPYING ChangeLog INSTALL NEWS README TODO README.GGZ QuickStart.GGZ %{_gamesbindir}/ggz-gtk %{_datadir}/applications/* %{_datadir}/ggz/ggz-gtk-client/* %{_datadir}/ggz/help/* %{_mandir}/man?/* %files -n %{libname} %defattr(-,root,root) %{_libdir}/libggz-gtk.so.%{major}* %files -n %{develname} %defattr(-,root,root) %doc COPYING ChangeLog %{_includedir}/* %{_libdir}/lib*.so %changelog * Sat Jan 12 2013 umeabot <umeabot> 0.0.14.1-12.mga3 + Revision: 351525 - Mass Rebuild - https://wiki.mageia.org/en/Feature:Mageia3MassRebuild * Fri Sep 23 2011 dmorgan <dmorgan> 0.0.14.1-11.mga2 + Revision: 146960 - Drop .la files * Sun Feb 20 2011 eandry <eandry> 0.0.14.1-10.mga1 + Revision: 54824 - drop buildroot and old conditional - fix license - bump release for upgrade - imported package ggz-gtk-client