|
mystro256 |
29ba7aa |
Name: love
|
|
mystro256 |
29ba7aa |
Version: 0.8.0
|
|
|
31b2a28 |
Release: 3%{?dist}
|
|
mystro256 |
29ba7aa |
Summary: A free 2D game engine which enables easy game creation in Lua
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
#All is licensed as zlib with one exception:
|
|
mystro256 |
29ba7aa |
#SOURCE/platform/unix/ltmain.sh is public domain
|
|
mystro256 |
29ba7aa |
License: zlib and Public Domain
|
|
mystro256 |
29ba7aa |
URL: http://love2d.org
|
|
mystro256 |
29ba7aa |
#Only available download link at the moment:
|
|
mystro256 |
29ba7aa |
#https://bitbucket.org/rude/love/get/e0f98d53debb.tar.gz
|
|
mystro256 |
29ba7aa |
Source0: rude-%{name}-e0f98d53debb.tar.gz
|
|
mystro256 |
29ba7aa |
#Source1 currently only contains a custom man page:
|
|
mystro256 |
29ba7aa |
#Upstream Bug: https://bitbucket.org/rude/love/issue/405/include-extras-desktop-mime-etc-files-for
|
|
mystro256 |
29ba7aa |
Source1: %{name}-extra.tar.xz
|
|
mystro256 |
29ba7aa |
#Patch0 makes the mpg123 requirement optional (modified for 0.8.0 from openSUSE)
|
|
mystro256 |
29ba7aa |
#Upstream Bug: https://bitbucket.org/rude/love/issue/404/make-mpg123-optional
|
|
mystro256 |
29ba7aa |
Patch0: %{name}-optional_mpg123.patch
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
BuildRequires: DevIL-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: libtiff-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: freetype-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: lua-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: physfs-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: SDL-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: openal-soft-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: libogg-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: libvorbis-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: flac-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: libmodplug-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: libmng-devel
|
|
mystro256 |
29ba7aa |
BuildRequires: desktop-file-utils
|
|
mystro256 |
29ba7aa |
BuildRequires: libtool
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%description
|
|
mystro256 |
29ba7aa |
LOVE is an open source, cross platform 2D game engine which uses the
|
|
mystro256 |
29ba7aa |
Lua scripting language. LOVE can be used to make games of any license
|
|
mystro256 |
29ba7aa |
allowing it to be used for both free and non-free projects.
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%prep
|
|
mystro256 |
29ba7aa |
%setup -q -a 1 -n rude-%{name}-e0f98d53debb
|
|
mystro256 |
29ba7aa |
%patch0
|
|
mystro256 |
29ba7aa |
#Fixing line encoding:
|
|
mystro256 |
29ba7aa |
sed -i 's/\r//' license.txt src/libraries/Box2D/*/*.* src/libraries/Box2D/*/*/*.*
|
|
mystro256 |
29ba7aa |
#Fixing permissions:
|
|
mystro256 |
29ba7aa |
chmod -x license.txt src/libraries/*/*/*.* src/libraries/Box2D/*/*/*.*
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%build
|
|
mystro256 |
29ba7aa |
platform/unix/automagic
|
|
mystro256 |
29ba7aa |
%configure --prefix=/usr
|
|
mystro256 |
29ba7aa |
make
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%install
|
|
mystro256 |
29ba7aa |
make install DESTDIR=%{buildroot}
|
|
mystro256 |
29ba7aa |
#Install desktop, icons, and mime info:
|
|
mystro256 |
29ba7aa |
desktop-file-install \
|
|
mystro256 |
29ba7aa |
--dir %{buildroot}%{_datadir}/applications \
|
|
mystro256 |
29ba7aa |
platform/unix/%{name}.desktop
|
|
mystro256 |
29ba7aa |
install -p -D -m 0644 platform/unix/app.svg %{buildroot}%{_datadir}/icons/hicolor/scalable/apps/%{name}.svg
|
|
mystro256 |
29ba7aa |
install -p -D -m 0644 platform/unix/game.svg %{buildroot}/%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-%{name}-game.svg
|
|
mystro256 |
29ba7aa |
install -p -D -m 0644 platform/unix/%{name}.xml %{buildroot}%{_datadir}/mime/packages/%{name}.xml
|
|
mystro256 |
29ba7aa |
install -p -D -m 0644 %{name}-extra/%{name}.1 %{buildroot}/%{_mandir}/man1/%{name}.1
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%post
|
|
mystro256 |
29ba7aa |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
|
|
mystro256 |
29ba7aa |
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
mystro256 |
29ba7aa |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%postun
|
|
mystro256 |
29ba7aa |
if [ $1 -eq 0 ] ; then
|
|
mystro256 |
29ba7aa |
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null
|
|
mystro256 |
29ba7aa |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
mystro256 |
29ba7aa |
fi
|
|
mystro256 |
29ba7aa |
/usr/bin/update-mime-database %{_datadir}/mime &> /dev/null || :
|
|
mystro256 |
29ba7aa |
/usr/bin/update-desktop-database &> /dev/null || :
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%posttrans
|
|
mystro256 |
29ba7aa |
/usr/bin/gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%files
|
|
mystro256 |
29ba7aa |
%doc changes.txt license.txt readme.md
|
|
mystro256 |
29ba7aa |
%{_bindir}/%{name}
|
|
mystro256 |
29ba7aa |
%{_datadir}/icons/hicolor/scalable/*/*.svg
|
|
mystro256 |
29ba7aa |
%{_datadir}/applications/%{name}.desktop
|
|
mystro256 |
29ba7aa |
%{_datadir}/mime/packages/%{name}.xml
|
|
mystro256 |
2a1d966 |
%{_mandir}/man1/%{name}.*
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
%changelog
|
|
|
31b2a28 |
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-3
|
|
|
31b2a28 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
31b2a28 |
|
|
mystro256 |
2a1d966 |
* Tue Apr 3 2012 Jeremy Newton <alexjnewt@hotmail.com> - 0.8.0-2
|
|
mystro256 |
2a1d966 |
- Fixed a typo in the manpage
|
|
mystro256 |
2a1d966 |
- Fixed minor typo in files
|
|
mystro256 |
2a1d966 |
|
|
mystro256 |
29ba7aa |
* Tue Apr 3 2012 Jeremy Newton <alexjnewt@hotmail.com> - 0.8.0-1
|
|
mystro256 |
29ba7aa |
- Updated spec for new upstream version
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
* Wed Mar 28 2012 Jeremy Newton <alexjnewt@hotmail.com> - 0.7.2-3
|
|
mystro256 |
29ba7aa |
- Added man page
|
|
mystro256 |
29ba7aa |
- Made more use of the name macro
|
|
mystro256 |
29ba7aa |
- Removed unnecessary build flags
|
|
mystro256 |
29ba7aa |
- Fixed typo in changelog
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
* Tue Mar 27 2012 Jeremy Newton <alexjnewt@hotmail.com> - 0.7.2-2
|
|
mystro256 |
29ba7aa |
- Added missing build dependencies
|
|
mystro256 |
29ba7aa |
|
|
mystro256 |
29ba7aa |
* Tue Mar 6 2012 Jeremy Newton <alexjnewt@hotmail.com> - 0.7.2-1
|
|
mystro256 |
29ba7aa |
- Initial Package
|