%global debug_package %{nil} %global title tiled Name: tiled-qt Version: 0.5.1 Release: 1%{?dist} Summary: General purpose tile map editor. Group: Development/Tools License: GPLv2+ URL: http://www.mapeditor.org/ Source0: http://sourceforge.net/projects/tiled/files/%{name}/%{version}/%{name}-%{version}.tar.gz #Upstream Patch to compile with zlib: http://gitorious.org/tiled/tiled-qt/commit/6324ba29a1f0f056bec91a4337f9afd633beab5f Patch0: tiled-qt-zlib.patch #Allows compiling for lib64 Patch1: tiled-lib.patch Patch2: tiled-plugin.patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) BuildRequires: qt-devel BuildRequires: zlib-static %description Tiled is a general purpose tile map editor. It's built to be easy to use, yet flexible enough to work with varying game engines, whether your game is an RPG, platformer or Breakout clone. %prep %setup -q %patch0 -p1 %patch1 -p1 %patch2 -p1 %build qmake-qt4 -r PREFIX=%{_prefix} LIBDIR=%{_libdir} make %install rm -rf %{buildroot} make install INSTALL_ROOT=%{buildroot} %post %postun %posttrans %clean rm -rf %{buildroot} %files %defattr(-,root,root,-) %doc AUTHORS COPYING %{_bindir}/%{title} %{_libdir}/* %{_datadir}/%{title}/ %changelog * Tue Dec 7 2010 Juan Rodriguez - 0.5.1-1 - First RPM of Tiled