rpms/liquidwar/devel liquidwar.spec, NONE, 1.1 .cvsignore, 1.1, 1.2 sources, 1.1, 1.2

Hans de Goede (jwrdegoede) fedora-extras-commits at redhat.com
Thu Nov 23 20:19:19 UTC 2006


Author: jwrdegoede

Update of /cvs/extras/rpms/liquidwar/devel
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv26165/devel

Modified Files:
	.cvsignore sources 
Added Files:
	liquidwar.spec 
Log Message:
auto-import liquidwar-5.6.3-1.fc7 on branch devel from liquidwar-5.6.3-1.fc7.src.rpm


--- NEW FILE liquidwar.spec ---
Name:           liquidwar
Version:        5.6.3
Release:        1%{?dist}
Summary:        Multiplayer wargame with liquid armies
Group:          Amusements/Games
License:        GPL
URL:            http://www.ufoot.org/liquidwar/v5
Source:         http://download.savannah.nongnu.org/releases/%{name}/%{name}-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires:  allegro-devel allegro-tools tetex-latex python texinfo
Requires(post): /sbin/install-info
Requires(preun): /sbin/install-info

%description
Liquid War is a unique multiplayer wargame. You control an army of liquid
and have to try and eat your opponents. A single player mode is available,
but the game is definitely designed to be multiplayer, and has network
support. 


%package doc
Summary:        Documentation for the LiquidWar game in additional formats
Group:          Documentation
Requires:       %{name} = %{version}-%{release}

%description doc
This package contains the documentation of LiquidWar in html, pdf, ps and txt
format.


%prep
%setup -q
# don't strip the binaries please 
sed -i 's/install -s/install/g' Makefile.in
# fix manpage doc reference
sed -i \
  -e 's:^\.B /usr/share/doc/liquidwar $:\.B %{_docdir}/%{name}-doc-%{version}:' \
  -e 's:^or $:directory (from :' \
  -e 's:^\.B /usr/local/share/doc/liquidwar$:the %{name}-doc :' \
  -e 's:^directories, :package), :' \
  doc/man/begin.man.in
# fix metaserer url
sed -i 's#http://www.ufoot.org/liquidwar/metaserver.php3#http://www.ufoot.org/liquidwar/v5/metaserver#g' \
  doc/xml/*.xml


%build
%configure \
%ifnarch %{ix86}
  --disable-asm
%endif

make %{?_smp_mflags} GAMEDIR=%{_bindir} DATADIR=%{_datadir}/%{name}

# make docs utf-8
iconv -f ISO-8859-1 -t UTF8 doc/man/%{name}.6 | gzip > doc/man/%{name}.6.gz
gzip -cd doc/info/%{name}.info.gz | \
  iconv -f ISO-8859-1 -t UTF8 > doc/info/%{name}.info
gzip -f doc/info/%{name}.info


%install
rm -rf $RPM_BUILD_ROOT
make install_nolink DESTDIR=$RPM_BUILD_ROOT GAMEDIR=%{_bindir} \
  DATADIR=%{_datadir}/%{name} 
mv $RPM_BUILD_ROOT%{_datadir}/doc/%{name} liquidwardocs
rm $RPM_BUILD_ROOT%{_datadir}/pixmaps/%{name}.xpm

# below is the desktop file and icon stuff.
desktop-file-install --delete-original --vendor fedora \
  --dir $RPM_BUILD_ROOT%{_datadir}/applications        \
  $RPM_BUILD_ROOT%{_datadir}/applications/%{name}.desktop
mkdir -p $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/{32x32,48x48}/apps
install -p -m 644 misc/%{name}_32x32.xpm \
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.xpm
install -p -m 644 misc/%{name}.xpm \
  $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/48x48/apps/%{name}.xpm


%clean
rm -rf $RPM_BUILD_ROOT


%post
/sbin/install-info %{_infodir}/%{name}.info %{_infodir}/dir || :
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 = 0 ]; then
    /sbin/install-info --delete %{_infodir}/%{name}.info %{_infodir}/dir || :
fi

%postun
touch --no-create %{_datadir}/icons/hicolor || :
if [ -x %{_bindir}/gtk-update-icon-cache ]; then
   %{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :
fi


%files
%defattr(-,root,root,-)
%doc COPYING README
%{_bindir}/%{name}*
%{_datadir}/%{name}
%{_infodir}/%{name}.*
%{_mandir}/man6/%{name}*.6.gz
%{_datadir}/applications/fedora-%{name}.desktop
%{_datadir}/icons/hicolor/*/apps/%{name}.xpm

%files doc
%defattr(-,root,root,-)
%doc liquidwardocs/*


%changelog
* Sun Nov 19 2006 Hans de Goede <j.w.r.degoede at hhs.nl> 5.6.3-1
- Initial Fedora Extras package


Index: .cvsignore
===================================================================
RCS file: /cvs/extras/rpms/liquidwar/devel/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore	23 Nov 2006 20:16:29 -0000	1.1
+++ .cvsignore	23 Nov 2006 20:18:49 -0000	1.2
@@ -0,0 +1 @@
+liquidwar-5.6.3.tar.gz


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/liquidwar/devel/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	23 Nov 2006 20:16:29 -0000	1.1
+++ sources	23 Nov 2006 20:18:49 -0000	1.2
@@ -0,0 +1 @@
+a41473c281f214c1ac96ab50f98537c9  liquidwar-5.6.3.tar.gz




More information about the scm-commits mailing list