Complete.Org: Mailing Lists: Archives: freeciv-dev: June 2000:
[Freeciv-Dev] Spec files for FreeCiv RPMs
Home

[Freeciv-Dev] Spec files for FreeCiv RPMs

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] Spec files for FreeCiv RPMs
From: Mathias Hasselmann <Mathias.Hasselmann@xxxxxx>
Date: Fri, 30 Jun 2000 20:35:38 +0200

The file attached should allow to build RPM packages for FreeCiv:

$ ln -s $PWD/freeciv-1.11.0.tar.gz /usr/src/redhat/SOURCES
$ su -c rpm -bb freeciv.spec

If you want to build the packages from the tarballs you have to
take care that freeciv.spec is included into the tarball before 
all the other .spec files (from the data directory):

$ tar cf freeciv-1.11.0.tar freeciv.spec
$ tar rf freeciv-1.11.0.tar freeciv-1.11.0/
$ gzip freeciv-1.11.0.tar
$ su -c rpm -tb freeciv-1.11.0.tar.gz

Ciao,
Mathias
-- 
PGP: 1024-Bit DSA: ID 55E572F3, 1024-Bit RSA: ID EAAF7CF1
WWW: http://www.informatik.hu-berlin.de/~hasselma/
     http://www.dominanz-haus.de/
%define package         freeciv
%define version         1.11.0

Summary: A multiplayer strategy game comparable with Civilization II
Name: %{package}
Version: %{version}
Release: 1
Copyright: GPL
Group: Amusements/Games
Source: %{package}-%{version}.tar.gz
URL: http://www.freeciv.org/
Packager: Mathias Hasselmann <mathias.hasselmann@xxxxxx>
BuildRoot: /tmp/build-%{package}-%{version}

%description
Freeciv is a free turn-based multiplayer strategy game, in which each player
becomes the leader of a civilization, fighting to obtain the ultimate goal: 

                To become the greatest civilization. 

Players of Civilization II® by Microprose® should feel at home, since one aim
of Freeciv is to have compatible rules. 

Freeciv is maintained by an international team of coders and enthusiasts, and
is easily one of the most fun and addictive network games out there! 

%prep

%setup

%build
CFLAGS="$RPM_OPT_FLAGS" ./configure --prefix=%{_prefix} 
--sysconfdir=%{_sysconfdir}
make

%install
make prefix=$RPM_BUILD_ROOT%{_prefix} sysconfdir=$RPM_BUILD_ROOT%{_sysconfdir} 
install

%clean
# rm -rf $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc COPYING AUTHORS PEOPLE HOWTOPLAY README* NEWS INSTALL ChangeLog BUGS TODO 
freeciv_hackers_guide.txt doc/*
%{_prefix}/share/freeciv/
%{_prefix}/share/locale/*/LC_MESSAGES/freeciv.mo 
%{_prefix}/bin/civserver
%{_prefix}/bin/civclient

[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] Spec files for FreeCiv RPMs, Mathias Hasselmann <=