rpms/escape/FC-6 escape.desktop, NONE, 1.1 escape.spec, NONE, 1.1 sources, 1.1, 1.2

Adam Goode (agoode) fedora-extras-commits at redhat.com
Sun Apr 22 13:20:00 UTC 2007


Author: agoode

Update of /cvs/extras/rpms/escape/FC-6
In directory cvs-int.fedora.redhat.com:/tmp/cvs-serv15510

Modified Files:
	sources 
Added Files:
	escape.desktop escape.spec 
Log Message:
devel -> FC-6


--- NEW FILE escape.desktop ---
[Desktop Entry]
Encoding=UTF-8
Type=Application
Name=Escape
Comment=Push the blocks to find the exit
Exec=escape
Icon=escape.png
Terminal=false
Categories=Game;LogicGame;


--- NEW FILE escape.spec ---
Name:		escape
Version:	200704130
Release:	3%{?dist}
Summary:	A fun puzzle game in the tradition of Adventures of Lolo or Chip's Challenge

Group:		Amusements/Games
License:	GPL
URL:		http://escape.spacebar.org/

Source0:	http://escape.spacebar.org/source/%{name}-src-%{version}.tar.bz2
Source1:	%{name}.desktop

BuildRoot:	%{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:	SDL-devel SDL_image-devel SDL_net-devel
BuildRequires:	pkgconfig desktop-file-utils
Requires:	hicolor-icon-theme


%description
Escape is a tile-based puzzle game in the style of "Adventures of
Lolo" or "Chip's Challenge." Unlike either of those games, Escape
doesn't rely at all on reflexes--it's all about your brain.

Although Escape comes with hundreds of levels, the game places an
emphasis on the composition of new puzzles. Thus Escape has a
built-in level editor and facilities for automatically sharing
puzzles with other players.


%prep
%setup -q -n %{name}-src

# fix permissions for debuginfo packages
find . \( -name '*.h' -o -name '*.cpp' \) -type f -print0 | xargs -0 chmod 0644


%build
make LINUX=1 \
	LDFLAGS="" \
	LDLIBS="`pkg-config --libs sdl` -lSDL_image -lSDL_net" \
	CXXFLAGS="`pkg-config --cflags sdl` $RPM_OPT_FLAGS" \
	CPPFLAGS="-DMULTIUSER -DDATADIR=\\\"%{_datadir}/%{name}/data/\\\" -DSTARTUP_LEVELS=\\\"%{_datadir}/%{name}/levels/\\\" -DNOSOUND" \
	%{?_smp_mflags}


%install
rm -rf $RPM_BUILD_ROOT
install -D -m0755 -p escape.exe \
	$RPM_BUILD_ROOT%{_bindir}/escape

# graphics
mkdir -p $RPM_BUILD_ROOT%{_datadir}/escape/data
install -D -m0644 -p -t $RPM_BUILD_ROOT%{_datadir}/escape/data *.png

# levels
mkdir -p $RPM_BUILD_ROOT%{_datadir}/escape/levels
cp -a official triage mylevels $RPM_BUILD_ROOT%{_datadir}/escape/levels
find $RPM_BUILD_ROOT%{_datadir}/escape/levels -type f -print0 | xargs -0 chmod 0644
find $RPM_BUILD_ROOT%{_datadir}/escape/levels -type d -name CVS -print0 | xargs -0 rm -rf

# icon
install -d $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps
cp -a icon.png $RPM_BUILD_ROOT%{_datadir}/icons/hicolor/32x32/apps/%{name}.png

# desktop file
desktop-file-install --vendor fedora \
	--dir $RPM_BUILD_ROOT%{_datadir}/applications \
	%{SOURCE1}


%post
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%postun
touch --no-create %{_datadir}/icons/hicolor || :
%{_bindir}/gtk-update-icon-cache --quiet %{_datadir}/icons/hicolor || :


%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc COPYING design.txt escape.txt README
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/icons/hicolor/32x32/apps/%{name}.png
%{_datadir}/applications/*.desktop


%changelog
* Tue Apr 17 2007 Adam Goode <adam at spicenitz.org> - 200704130-3
- REALLY fix spurious-executable-perm

* Mon Apr 16 2007 Adam Goode <adam at spicenitz.org> - 200704130-2
- Fix permissions in debuginfo package
- Generate SRPM with source matching upstream MD5

* Fri Apr 13 2007 Adam Goode <adam at spicenitz.org> - 200704130-1
- Merge -data package into this
- Install icon into correct place and update the icon cache
- Use upstream tarball, created by upstream at my request
- Remove X-Fedora category

* Sat Apr  7 2007 Adam Goode <adam at spicenitz.org> - 200704070-1
- Initial packaging


Index: sources
===================================================================
RCS file: /cvs/extras/rpms/escape/FC-6/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources	21 Apr 2007 21:14:14 -0000	1.1
+++ sources	22 Apr 2007 13:19:26 -0000	1.2
@@ -0,0 +1 @@
+07263976a54607792dbbe4bc442f0735  escape-src-200704130.tar.bz2




More information about the scm-commits mailing list