Mailinglist Archive: opensuse-buildservice (170 mails)

< Previous Next >
[opensuse-buildservice] BUG: BS don't expanding %{version} in Requires: nexuiz-data == %{version}
  • From: "Marek Stopka (M4r3k)" <marekstopka@xxxxxxxxx>
  • Date: Mon, 3 Dec 2007 23:40:13 +0100
  • Message-id: <ab6ee74d0712031440n62b1b48ao62e8dd80eff2ef6c@xxxxxxxxxxxxxx>
Hi! I have this construction in my spec...
Requires: nexuiz-data == %{version}

And if i try osc build openSUSE_10.3 i586 nexuiz.spec package is
builded fine and rpm report this:

mantisha:~ # rpm -qRp
/var/tmp/build-root/usr/src/packages/RPMS/i586/nexuiz-2.3-0.pm.0.i586.rpm
nexuiz-data = 2.3

But if i build my package in Build Service i get this...

marek@mantisha:~/tmp> rpm -qRp nexuiz-2.3-5.1.i586.rpm
nexuiz-data = %{version}

So.. You can see... Build service don't expand that %{version}.

In attachment is that buggy nexuiz.spec

--
S pozdravem / Best regards
Marek Stopka
Kontakty / Contacts
Mobil/Cell phone: 774 59 79 40
E-mail: marekstopka@xxxxxxxxx
WEB: www.m4r3k.org
#
# This file and all modifications and additions to the pristine
# package are under the same license as the package itself.
#

# norootforbuild
Name: nexuiz
BuildRequires: SDL-devel xorg-x11-Mesa-devel unzip
URL: http://www.nexuiz.com/
License: GPL
Group: Amusements/Games/3D/Shoot
BuildRoot: %{_tmppath}/%{name}-%{version}-build
Autoreqprov: on
Version: 2.3
Release: 0.pm.0
Summary: Deathmatch First-Person Shooter
Source: nexuiz-23.zip
Patch: snprintf.patch
Patch1: includeorder.patch
Patch2: makefile.patch
Requires: nexuiz-data == %{version}

%description
A 3D deathmatch game made entirely over the Internet. The purpose of
the game is to bring deathmatch back to the basics, with perfect weapon
balancing and fast paced action, keeping itself away from the current
trend of realistic shooters. It uses HFX textures by Evil Lair, and
currently has 17 maps to frag in. With an advanced UI, the user can
select between 15 different player models to use, with an average of
two skins for each, and can connect to the master server to play with
people from all over the world.

The game's content and source are GPL, meaning it is entirely free and
all of it can be used in other free projects, even if modified. This is
a first for any large game project of its type.



Authors:
--------
Lee Vermeulen
Forest "LordHavoc" Hale
Kurt Dereli
Andreas "Black" Kirsch
Reaper
Rick "Rat" Kelley
Yves "EviLair" Allaire
Gottfried "Toddd" Hofmann
SavageX
Innovati
Jody Gallagher
Juergen "LowDragon" Timm
Attila "WW3" Houtkooper
Garth "Zombie" Hendy
Dan "Digger" Korostelev
Sajt
Strahlemann

%package server
Summary: Nexuiz dedicated server
Group: Amusements/Games/3D/Shoot
License: GPL
Requires: nexuiz-data

%description server
Nexuiz dedicated server.

%package data
Summary: Nexuiz data package.
Group: Amusements/Games/3D/Shoot
License: GPL
Requires: nexuiz

%description data
Data files for Nexuiz, a 3D deathmatch game made entirely over the Internet.
The purpose of
the game is to bring deathmatch back to the basics, with perfect weapon
balancing and fast paced action, keeping itself away from the current
trend of realistic shooters. It uses HFX textures by Evil Lair, and
currently has 17 maps to frag in. With an advanced UI, the user can
select between 15 different player models to use, with an average of
two skins for each, and can connect to the master server to play with
people from all over the world.

%prep
%setup -cTn Nexuiz
cd ..
unzip %SOURCE0
cd Nexuiz/sources
unzip enginesource*.zip
unzip gamesource*.zip
cd ..
%patch
%patch1
%patch2

%build
cd sources/darkplaces
make release CPUOPTIMIZATIONS="$RPM_OPT_FLAGS" UNIX_X11LIBPATH=/usr/X11R6/%_lib
DP_FS_BASEDIR=/usr/share/nexuiz

%install
cd sources/darkplaces
install -d -m 755 $RPM_BUILD_ROOT/usr/games
install -d -m 755 $RPM_BUILD_ROOT/usr/share/nexuiz
install -d -m 755 $RPM_BUILD_ROOT/usr/share/nexuiz/data
install -m 755 darkplaces-sdl $RPM_BUILD_ROOT/usr/games/nexuiz
install -m 755 darkplaces-dedicated $RPM_BUILD_ROOT/usr/games/nexuiz-dedicated
install -m 755 darkplaces-glx $RPM_BUILD_ROOT/usr/games/nexuiz-glx
cd ../..
install -d -m 755 $RPM_BUILD_ROOT/usr/share/nexuiz
install -d -m 755 $RPM_BUILD_ROOT/usr/share/nexuiz/data
install -m 644 data/* $RPM_BUILD_ROOT/usr/share/nexuiz/data

%clean
rm -fr $RPM_BUILD_ROOT

%files
%defattr(-,root,root)
%doc Docs/*.* sources/darkplaces/COPYING
/usr/games/nexuiz
/usr/games/nexuiz-glx

%files server
%defattr(-,root,root)
%doc Docs/server/* sources/darkplaces/COPYING
/usr/games/nexuiz-dedicated

%files data
%defattr(-,root,root)
/usr/share/nexuiz
%changelog -n nexuiz
* Sun Dec 02 2007 - marekstopka@xxxxxxxxx
- update to 2.3
- one spec for all 3 packages data/server/client
* Wed Sep 20 2006 - uli@xxxxxxx
- update -> 2.1
- split into client/server/data package
* Wed May 24 2006 - schwab@xxxxxxx
- Don't strip binaries.
* Fri Jan 27 2006 - nadvornik@xxxxxxx
- fixed BuildRequires
* Wed Jan 25 2006 - mls@xxxxxxx
- converted neededforbuild to BuildRequires
* Tue Oct 11 2005 - uli@xxxxxxx
- update -> 1.2.1
* Thu Sep 29 2005 - dmueller@xxxxxxx
- add norootforbuild
* Thu Jun 09 2005 - uli@xxxxxxx
- initial package
< Previous Next >
Follow Ups