Mystro256 2b95803
# Because of the LuaJIT requirements:
Mystro256 e2e7ed7
%ifarch %{arm} %{ix86} x86_64 %{mips} aarch64
Mystro256 2b95803
%global luadep luajit
Mystro256 2b95803
%else
Mystro256 2b95803
%global luadep lua
Mystro256 2b95803
%endif
Mystro256 2b95803
mystro256 29ba7aa
Name:           love
Mystro256 2b95803
Version:        0.10.2
Mystro256 e2e7ed7
Release:        2%{?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
alexjnewt@hotmail.com 0310206
Source0:        https://bitbucket.org/rude/%{name}/get/%{version}.tar.gz
mystro256 29ba7aa
3f711b7
BuildRequires:  desktop-file-utils
mystro256 29ba7aa
BuildRequires:  DevIL-devel
mystro256 29ba7aa
BuildRequires:  flac-devel
3f711b7
BuildRequires:  freetype-devel
3f711b7
BuildRequires:  mesa-libGL
mystro256 29ba7aa
BuildRequires:  libmodplug-devel
mystro256 29ba7aa
BuildRequires:  libmng-devel
3f711b7
BuildRequires:  libogg-devel
Jeremy Newton 2b09ffe
BuildRequires:  libtheora-devel
3f711b7
BuildRequires:  libtiff-devel
mystro256 29ba7aa
BuildRequires:  libtool
3f711b7
BuildRequires:  libvorbis-devel
Mystro256 2b95803
BuildRequires:  %{luadep}-devel
3f711b7
BuildRequires:  openal-soft-devel
3f711b7
BuildRequires:  physfs-devel
3f711b7
BuildRequires:  SDL2-devel
Jeremy Newton 2b09ffe
Requires:       lib%{name}%{?_isa} = %{version}-%{release}
Jeremy Newton 2b09ffe
Requires:       hicolor-icon-theme
Jeremy Newton 2b09ffe
Jeremy Newton 2b09ffe
#The following is bundled.
Jeremy Newton 2b09ffe
#Upstream will not unbundle this code as the
Jeremy Newton 2b09ffe
#code has been modified to work better with love
Jeremy Newton 2b09ffe
#As well, it's not clear if it would be worth unbundling
Jeremy Newton 2b09ffe
#See below for the correspondence:
Jeremy Newton 2b09ffe
#https://bitbucket.org/rude/love/issues/870/allow-for-shared-version-of-libraries
Jeremy Newton 2b09ffe
Provides: bundled(Box2D) = 2.3.0
Jeremy Newton 2b09ffe
#Note, Unknown versions:
Jeremy Newton 2b09ffe
Provides: bundled(enet)
Jeremy Newton 2b09ffe
Provides: bundled(luasocket)
Jeremy Newton 2b09ffe
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
alexjnewt@hotmail.com ec787b4
%package -n lib%{name}
alexjnewt@hotmail.com ec787b4
Summary:        Library for Love, A free 2D game engine
alexjnewt@hotmail.com ec787b4
alexjnewt@hotmail.com ec787b4
%description -n lib%{name}
alexjnewt@hotmail.com ec787b4
This package includes the library files for LOVE.
alexjnewt@hotmail.com ec787b4
LOVE is an open source, cross platform 2D game engine which uses the
alexjnewt@hotmail.com ec787b4
Lua scripting language. LOVE can be used to make games of any license
alexjnewt@hotmail.com ec787b4
allowing it to be used for both free and non-free projects.
alexjnewt@hotmail.com ec787b4
mystro256 29ba7aa
%prep
Mystro256 2b95803
%setup -q -n rude-%{name}-afc69c4f7145
mystro256 29ba7aa
#Fixing line encoding:
Jeremy Newton 2b09ffe
sed -i 's/\r//' license.txt
mystro256 29ba7aa
#Fixing permissions:
Jeremy Newton 2b09ffe
chmod -x src/*/*/*.* src/libraries/Box2D/*/*.* src/libraries/Box2D/*/*/*.*
mystro256 29ba7aa
mystro256 29ba7aa
%build
alexjnewt@hotmail.com ea0fe1f
platform/unix/automagic
Mystro256 2b95803
%configure  --prefix=/usr --with-lua=%{luadep} \
Mystro256 2b95803
            --disable-mpg123 --enable-static=no
alexjnewt@hotmail.com ec787b4
make %{?_smp_mflags}
mystro256 29ba7aa
 
mystro256 29ba7aa
%install
alexjnewt@hotmail.com ec787b4
make %{?_smp_mflags} install DESTDIR=%{buildroot}
alexjnewt@hotmail.com ec787b4
#Check Desktop file
alexjnewt@hotmail.com ec787b4
desktop-file-validate \
alexjnewt@hotmail.com ec787b4
  %{buildroot}%{_datadir}/applications/%{name}.desktop
alexjnewt@hotmail.com ec787b4
#This seems to be built, despite disabling static libraries
alexjnewt@hotmail.com ec787b4
rm -f %{buildroot}%{_libdir}/lib%{name}.la
mystro256 29ba7aa
mystro256 29ba7aa
%post
alexjnewt@hotmail.com ec787b4
/sbin/ldconfig
mystro256 29ba7aa
/bin/touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
Rex Dieter 8ce434f
/bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
mystro256 29ba7aa
/usr/bin/update-desktop-database &> /dev/null || :
mystro256 29ba7aa
mystro256 29ba7aa
%postun
alexjnewt@hotmail.com ec787b4
/sbin/ldconfig
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 || :
Rex Dieter 8ce434f
    /bin/touch --no-create %{_datadir}/mime/packages &> /dev/null || :
Rex Dieter 8ce434f
    /usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
mystro256 29ba7aa
fi
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 || :
Rex Dieter 8ce434f
/usr/bin/update-mime-database %{?fedora:-n} %{_datadir}/mime &> /dev/null || :
alexjnewt@hotmail.com ec787b4
alexjnewt@hotmail.com ec787b4
%post -n lib%{name} -p /sbin/ldconfig
alexjnewt@hotmail.com ec787b4
alexjnewt@hotmail.com ec787b4
%postun -n lib%{name} -p /sbin/ldconfig
alexjnewt@hotmail.com ec787b4
mystro256 29ba7aa
%files
mystro256 29ba7aa
%doc changes.txt license.txt readme.md
mystro256 29ba7aa
%{_bindir}/%{name}
alexjnewt@hotmail.com ec787b4
%{_datadir}/pixmaps/%{name}.svg
alexjnewt@hotmail.com ec787b4
%{_datadir}/icons/hicolor/scalable/mimetypes/application-x-%{name}-game.svg
mystro256 29ba7aa
%{_datadir}/applications/%{name}.desktop
mystro256 29ba7aa
%{_datadir}/mime/packages/%{name}.xml
mystro256 2a1d966
%{_mandir}/man1/%{name}.*
alexjnewt@hotmail.com ec787b4
alexjnewt@hotmail.com ec787b4
%files -n lib%{name}
alexjnewt@hotmail.com ec787b4
%doc changes.txt license.txt readme.md
alexjnewt@hotmail.com ec787b4
#Note that liblove.so is just a symlink, so a devel package is useless
alexjnewt@hotmail.com ec787b4
%{_libdir}/lib%{name}.*
Mystro256 6cb2777
mystro256 29ba7aa
%changelog
Mystro256 e2e7ed7
* Tue Nov 8 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.10.2-2
Mystro256 e2e7ed7
- Add mips and aarch64 as supported by luajit
Mystro256 e2e7ed7
Mystro256 2b95803
* Mon Nov 7 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.10.2-1
Mystro256 2b95803
- Update to new version
Mystro256 2b95803
- Use lua instead lua-git on unsupported platforms
Mystro256 2b95803
d2cfaf6
* Fri Sep 16 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.10.1-3
d2cfaf6
- LuaJIT on aarch64 for 2.1.0 and later
d2cfaf6
Igor Gnatenko a762314
* Mon Aug 29 2016 Igor Gnatenko <ignatenko@redhat.com> - 0.10.1-2
Igor Gnatenko a762314
- Rebuild for LuaJIT 2.1.0
Igor Gnatenko a762314
Mystro256 6cb2777
* Sun Aug 21 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.10.1-1
Mystro256 6cb2777
- Update to new version
Mystro256 6cb2777
3f711b7
* Sat Aug 20 2016 Peter Robinson <pbrobinson@fedoraproject.org> 0.10.0-3
3f711b7
- Make exclusive arch to those supported by LuaJIT
3f711b7
cba618f
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.10.0-2
cba618f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
cba618f
Jeremy Newton 2b09ffe
* Fri Jan 1 2016 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.10.0-1
Jeremy Newton 2b09ffe
- Update to new version
Jeremy Newton 2b09ffe
- Update provides to include bundling
Jeremy Newton 2b09ffe
62a543a
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.2-2
62a543a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
62a543a
Jeremy Newton 2b09ffe
* Mon May 11 2015 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.9.2-1
Jeremy Newton 40d89f2
- Update to 0.9.2
Jeremy Newton 40d89f2
c7af862
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.9.1-2
c7af862
- Rebuilt for GCC 5 C++11 ABI change
c7af862
Jeremy Newton 2b09ffe
* Wed Nov 12 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.9.1-1
alexjnewt@hotmail.com 5c74bcf
- Update to 0.9.1
alexjnewt@hotmail.com 5c74bcf
Rex Dieter 8ce434f
* Mon Aug 18 2014 Rex Dieter <rdieter@fedoraproject.org> 0.9.0-5
Rex Dieter 8ce434f
- update mime scriptlets
Rex Dieter 8ce434f
3f56cf2
* Sun Aug 17 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-4
3f56cf2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
3f56cf2
3acc393
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.9.0-3
3acc393
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
3acc393
Jeremy Newton 2b09ffe
* Sun Jan 5 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.9.0-2
alexjnewt@hotmail.com ec787b4
- Use repo version, fixes opengl issue
alexjnewt@hotmail.com ec787b4
Jeremy Newton 2b09ffe
* Wed Jan 1 2014 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.9.0-1
alexjnewt@hotmail.com ec787b4
- New upstream 0.9.0
alexjnewt@hotmail.com ec787b4
- Removed all patches/sources (all fixed in 0.9.0)
alexjnewt@hotmail.com ec787b4
- Add disable-mpg123 flag and enable-static=no
alexjnewt@hotmail.com ec787b4
- Split into 2 packages, love and liblove
alexjnewt@hotmail.com 7bdcf8c
21eca5f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-5
21eca5f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
21eca5f
6fa14c8
* Thu Feb 14 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.0-4
6fa14c8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
6fa14c8
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
Jeremy Newton 2b09ffe
* Tue Apr 3 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.8.0-2
mystro256 2a1d966
- Fixed a typo in the manpage
mystro256 2a1d966
- Fixed minor typo in files
mystro256 2a1d966
Jeremy Newton 2b09ffe
* Tue Apr 3 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.8.0-1
mystro256 29ba7aa
- Updated spec for new upstream version
mystro256 29ba7aa
Jeremy Newton 2b09ffe
* Wed Mar 28 2012 Jeremy Newton <alexjnewt AT hotmail DOT 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
Jeremy Newton 2b09ffe
* Tue Mar 27 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.7.2-2
mystro256 29ba7aa
- Added missing build dependencies
mystro256 29ba7aa
Jeremy Newton 2b09ffe
* Tue Mar 6 2012 Jeremy Newton <alexjnewt AT hotmail DOT com> - 0.7.2-1
mystro256 29ba7aa
- Initial Package