Sophie

Sophie

distrib > * > 2008.0 > x86_64 > by-pkgid > 0a10bd9ca5ed067b8182d9c6f9afd35f > files > 3

openarena-data-0.7.1-3mdv2008.0.src.rpm

%define gamename openarena
%define name %{gamename}-data
%define rversion 0.7
%define patchlevel 1
%define release %mkrel 3

%define baseversion %{rversion}.0
%define bversion %(echo %{baseversion} | sed -e 's/\\.//g')
%if %{patchlevel}
%define patchversion %{rversion}.%{patchlevel}
%define pversion %(echo %{patchversion} | sed -e 's/\\.//g')
%endif
%define version %{?patchversion}%{!?patchversion:%{baseversion}}

Summary: An open-source content package for Quake III Arena
Name: %{name}
Version: %{version}
Release: %{release}
Source0: http://openarena.ws/rel/%{bversion}/oa%{bversion}.zip
%if %{patchlevel}
Source1: oa%{pversion}-patch.zip
%endif
License: Creative Commons
Group: Games/Arcade
Url: http://openarena.ws/
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-buildroot
BuildArch: noarch
Conflicts: openarena <= 0.7.0-2%{distsuffix}%{mandriva_release}

%description
OpenArena is an open-source content package for Quake III Arena
licensed under the GPL, effectively creating a free stand-alone
game. You do not need Quake III Arena to play this game.

This package contains data files for OpenArena.

%prep
%setup -q -n %{gamename}-%{baseversion}
chmod 644 CHANGES CREDITS README
%if %{patchlevel}
yes | unzip -qq -d .. %{SOURCE1}
%endif

%build

%install
rm -rf %{buildroot}
install -d %{buildroot}%{_gamesdatadir}/%{gamename}/baseoa
install -m644 baseoa/* %{buildroot}%{_gamesdatadir}/%{gamename}/baseoa

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root)
%doc CHANGES CREDITS README
%{_gamesdatadir}/%{gamename}/baseoa


%changelog
* Wed Sep 19 2007 Guillaume Rousse <guillomovitch@mandriva.org> 0.7.1-3mdv2008.0
+ Revision: 90022
- rebuild

* Fri Aug 10 2007 Olivier Blin <oblin@mandriva.com> 0.7.1-2mdv2008.0
+ Revision: 61654
- use mandriva_release macro in conflicts to ease backports

* Thu Aug 09 2007 Olivier Blin <oblin@mandriva.com> 1mdv2008.0-current
+ Revision: 60899
- 0.7.1 (add additionnal patch pk3)

* Mon Jul 16 2007 Olivier Blin <oblin@mandriva.com> 0.7.0-2mdv2008.0
+ Revision: 52409
- conflicts with openarena releases that did not convert the baseoa dir to a symlink

* Thu Jul 12 2007 Olivier Blin <oblin@mandriva.com> 0.7.0-1mdv2008.0
+ Revision: 51576
- initial openarena-data package (split out of openarena)
- Create openarena-data