|
|
83df289 |
%global fontconf 64-%{name}-mutante.conf
|
|
|
83df289 |
|
|
|
32cb2ca |
Name: cave9
|
|
Victor Bogado |
f1768b1 |
Version: 0.4
|
|
Victor Bogado |
4ba2f4b |
Release: 1%{?dist}
|
|
|
32cb2ca |
Summary: 3d game of cave exploration
|
|
|
32cb2ca |
|
|
|
32cb2ca |
Group: Amusements/Games
|
|
|
83df289 |
License: LGPLv3 and CC-BY-SA and Public Domain
|
|
|
32cb2ca |
URL: http://code.google.com/p/cave9
|
|
|
32cb2ca |
Source0: http://cave9.googlecode.com/files/cave9_src-%{version}.tgz
|
|
|
32cb2ca |
Source1: http://cave9.googlecode.com/files/cave9_data-4.tgz
|
|
|
32cb2ca |
Source2: cave9.desktop
|
|
|
32cb2ca |
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
|
|
32cb2ca |
|
|
|
83df289 |
BuildRequires: SDL_image-devel, SDL_net-devel, SDL_ttf-devel, mesa-libGL-devel, desktop-file-utils, fontpackages-devel
|
|
|
83df289 |
Requires: cave9-mutante-fonts
|
|
|
83df289 |
|
|
|
32cb2ca |
|
|
|
32cb2ca |
%description
|
|
|
32cb2ca |
Cave9 is a gravity cave-exploration game.
|
|
|
32cb2ca |
|
|
|
83df289 |
%package mutante-fonts
|
|
|
83df289 |
|
|
Victor Bogado |
267144d |
Summary: Mutante font used by the HUD in cave9 game
|
|
|
83df289 |
BuildArch: noarch
|
|
|
83df289 |
Group: User Interface/X
|
|
|
83df289 |
License: CC-BY
|
|
|
83df289 |
Requires: fontpackages-filesystem
|
|
|
83df289 |
Source3: %{name}-mutante-fontconfig.conf
|
|
|
83df289 |
|
|
|
83df289 |
%description mutante-fonts
|
|
|
83df289 |
Fantasy/display font used by the cave9 game, this font has only the basic
|
|
Victor Bogado |
267144d |
characters used in the Portuguese language was made as an experiment by the
|
|
|
83df289 |
designer Jonas K├╝hner (http://www.criatipos.com/) the font was altered by
|
|
|
83df289 |
the game developer to also include numbers.
|
|
|
83df289 |
|
|
|
83df289 |
%_font_pkg -n mutante -f %{fontconf} mutante.ttf
|
|
|
83df289 |
%doc data_README.txt
|
|
|
83df289 |
|
|
|
32cb2ca |
%prep
|
|
|
32cb2ca |
%setup -q -a1
|
|
|
32cb2ca |
sed -i src/GNUmakefile -e "s/-Wall -Werror -ggdb//"
|
|
|
32cb2ca |
|
|
|
32cb2ca |
%build
|
|
|
32cb2ca |
CFLAGS="%{optflags}" make %{?_smp_mflags}
|
|
|
32cb2ca |
|
|
|
32cb2ca |
%install
|
|
|
83df289 |
rm -rf %{buildroot}
|
|
|
83df289 |
mkdir -p %{buildroot}/usr/bin %{buildroot}/usr/share/cave9
|
|
|
32cb2ca |
install -m 755 -p cave9 $RPM_BUILD_ROOT/usr/bin
|
|
|
83df289 |
cp -p data/wall.jpg data/icon.png data/thrust.wav data/crash.wav data/hit.wav $RPM_BUILD_ROOT/usr/share/cave9
|
|
|
83df289 |
|
|
|
83df289 |
install -m 0755 -d %{buildroot}%{_fontdir}
|
|
|
83df289 |
install -m 0644 -p data/*.ttf %{buildroot}%{_fontdir}/mutante.ttf
|
|
|
83df289 |
|
|
|
83df289 |
install -m 0755 -d %{buildroot}%{_fontconfig_templatedir} \
|
|
|
83df289 |
%{buildroot}%{_fontconfig_confdir}
|
|
|
83df289 |
|
|
|
83df289 |
install -m 0644 -p %{SOURCE3} \
|
|
|
83df289 |
%{buildroot}%{_fontconfig_templatedir}/%{fontconf}
|
|
|
83df289 |
ln -s %{_fontconfig_templatedir}/%{fontconf} \
|
|
|
83df289 |
%{buildroot}%{_fontconfig_confdir}/%{fontconf}
|
|
|
83df289 |
|
|
|
83df289 |
ln -s ../../..%{_fontdir}/mutante.ttf $RPM_BUILD_ROOT/usr/share/cave9/hud.ttf
|
|
|
83df289 |
|
|
|
32cb2ca |
mv data/README.txt data_README.txt
|
|
|
32cb2ca |
desktop-file-install --vendor="fedora" \
|
|
|
32cb2ca |
--dir=${RPM_BUILD_ROOT}%{_datadir}/applications \
|
|
|
32cb2ca |
%{SOURCE2}
|
|
|
32cb2ca |
|
|
|
32cb2ca |
%clean
|
|
|
32cb2ca |
rm -rf $RPM_BUILD_ROOT
|
|
|
32cb2ca |
|
|
|
32cb2ca |
%files
|
|
|
32cb2ca |
%defattr(-,root,root,-)
|
|
|
32cb2ca |
%doc AUTHORS.txt README.txt COPYING.txt data_README.txt
|
|
|
32cb2ca |
%{_bindir}/cave9
|
|
|
32cb2ca |
%{_datadir}/cave9
|
|
|
32cb2ca |
%{_datadir}/applications/fedora-cave9.desktop
|
|
|
32cb2ca |
|
|
|
32cb2ca |
%changelog
|
|
Victor Bogado |
ff1746b |
* Wed Aug 04 2010 Victor Bogado da Silva Lins <victor@bogado.net> 0.4-1
|
|
Victor Bogado |
ff1746b |
- new upstream release
|
|
Victor Bogado |
ff1746b |
|
|
|
453edfa |
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.3-9
|
|
|
453edfa |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
|
|
|
453edfa |
|
|
|
83df289 |
* Wed Jun 24 2009 Victor Bogado <victor@bogado.net> 0.3-8
|
|
|
83df289 |
- removed the redundant ownership of the fontdir.
|
|
|
83df289 |
- lowered the priority
|
|
|
83df289 |
- Updated the font configuration to better match the suggested template.
|
|
|
83df289 |
|
|
|
83df289 |
* Tue Jun 23 2009 Victor Bogado <victor@bogado.net> 0.3-7
|
|
|
83df289 |
- following the tips from Nicolas Mailhot on bug#477371
|
|
|
83df289 |
|
|
|
83df289 |
* Mon Jun 22 2009 Victor Bogado <victor@bogado.net> 0.3-6
|
|
|
83df289 |
- adapted the font subpackge to the new template on Fedora 11
|
|
|
83df289 |
|
|
|
83df289 |
* Wed Jan 14 2009 Victor Bogado <victor@bogado.net> 0.3-5
|
|
|
83df289 |
- Added a fontconfig file.
|
|
|
83df289 |
- Renamed the font file subpackage to follow the font package naming convention.
|
|
|
83df289 |
|
|
|
83df289 |
* Tue Dec 30 2008 Victor Bogado <victor@bogado.net> 0.3-4
|
|
|
83df289 |
- Separate the font into a new package.
|
|
|
8e3f2f9 |
|
|
|
32cb2ca |
* Sun Nov 09 2008 Victor Bogado <victor@bogado.net> 0.3-3
|
|
|
32cb2ca |
- Use install -m 755 to ensure correct mode for binaries.
|
|
|
32cb2ca |
- Final dot missing on description.
|
|
|
32cb2ca |
- Missing "Public Domain" for nasa data files.
|
|
|
32cb2ca |
|
|
|
32cb2ca |
* Fri Nov 07 2008 Victor Bogado <victor@bogado.net> 0.3-2
|
|
|
32cb2ca |
- better description
|
|
|
32cb2ca |
- use of macros
|
|
|
32cb2ca |
- BuildRequires was missing 'desktop-file-utils'
|
|
|
32cb2ca |
- Flag to preserve timestamps on 'cp'
|
|
|
32cb2ca |
|
|
|
32cb2ca |
* Mon Sep 15 2008 Victor Bogado <victor@bogado.net> 0.3-1
|
|
|
32cb2ca |
- update version and data file.
|
|
|
32cb2ca |
- new data file is now compleatly free.
|
|
|
32cb2ca |
|
|
|
32cb2ca |
* Sat Apr 19 2008 Victor Bogado <victor@bogado.net> 0.2-2
|
|
|
32cb2ca |
- Use the compiler flags from fedora
|
|
|
32cb2ca |
|
|
|
32cb2ca |
* Wed Apr 16 2008 Victor Bogado <victor@bogado.net> 0.2-1
|
|
|
32cb2ca |
- initial spec
|