rpms/freeciv/devel freeciv.spec,1.34,1.35
Rex Dieter (rdieter)
fedora-extras-commits at redhat.com
Fri Feb 8 19:40:35 UTC 2008
Author: rdieter
Update of /cvs/pkgs/rpms/freeciv/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv18538
Modified Files:
freeciv.spec
Log Message:
* Fri Feb 8 2008 Rex Dieter <rdieter at fedoraproject.org> 2.1.3-3
- fixup ggz integration (#431726)
per http://fedoraproject.org/wiki/PackagingDrafts/GGZ
Index: freeciv.spec
===================================================================
RCS file: /cvs/pkgs/rpms/freeciv/devel/freeciv.spec,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- freeciv.spec 5 Feb 2008 00:09:51 -0000 1.34
+++ freeciv.spec 8 Feb 2008 19:39:58 -0000 1.35
@@ -1,6 +1,6 @@
Name: freeciv
Version: 2.1.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: The Freeciv multi-player strategy game
Group: Amusements/Games
@@ -21,6 +21,9 @@
BuildRequires: desktop-file-utils
BuildRequires: gettext
+Requires(post): ggz-client-lib
+Requires(preun): ggz-client-lib
+
%description
Freeciv is a turn-based, multi-player, X based strategy game. Freeciv
@@ -55,6 +58,11 @@
# Remove civmanual
rm $RPM_BUILD_ROOT%{_bindir}/civmanual
+# ggz config
+# omit ggz.modules, to register at install, not build, time.
+rm $RPM_BUILD_ROOT%{_sysconfdir}/ggz.modules
+# include .dsc files
+install -p -D -m644 data/civclient.dsc $RPM_BUILD_ROOT%{_ggz_datadir}/civclient.dsc
%clean
@@ -62,11 +70,16 @@
%post
+%{_ggz_config} --install --force --modfile=%{_ggz_datadir}/civclient.dsc || :
touch --no-create %{_datadir}/icons/hicolor
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi
+%preun
+if [ $1 -eq 0 ]; then
+%{_ggz_config} --remove --modfile=%{_ggz_datadir}/civclient.dsc || :
+fi
%postun
touch --no-create %{_datadir}/icons/hicolor
@@ -94,10 +107,13 @@
%{_datadir}/pixmaps/%{name}-client.png
%{_mandir}/man6/civserver.6.gz
%{_mandir}/man6/civclient.6.gz
-%config(noreplace) %{_sysconfdir}/ggz.modules
+%{_ggz_datadir}/civclient.dsc
%changelog
+* Fri Feb 8 2008 Rex Dieter <rdieter at fedoraproject.org> 2.1.3-3
+- fixup ggz integration (#431726)
+
* Mon Feb 4 2008 Brian Pepple <bpepple at fedoraproject.org> - 2.1.3-2
- Add ggz gaming support.
More information about the fedora-extras-commits
mailing list