mystro256 29ba7aa
Name:           love
Jeremy Newton 40d89f2
Version:        0.9.2
alexjnewt@hotmail.com 5c74bcf
Release:        1%{?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
mystro256 29ba7aa
BuildRequires:  DevIL-devel
alexjnewt@hotmail.com ec787b4
BuildRequires:  mesa-libGL
mystro256 29ba7aa
BuildRequires:  libtiff-devel
mystro256 29ba7aa
BuildRequires:  freetype-devel
alexjnewt@hotmail.com 7bdcf8c
BuildRequires:  luajit-devel
mystro256 29ba7aa
BuildRequires:  physfs-devel
alexjnewt@hotmail.com ec787b4
BuildRequires:  SDL2-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
alexjnewt@hotmail.com ec787b4
Requires: 	lib%{name}%{?_isa} = %{version}-%{release}
alexjnewt@hotmail.com ec787b4
Requires:	hicolor-icon-theme
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
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
alexjnewt@hotmail.com ea0fe1f
%setup -q -n rude-%{name}-8b113c345e97
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
alexjnewt@hotmail.com ea0fe1f
platform/unix/automagic
alexjnewt@hotmail.com ec787b4
%configure  --prefix=/usr --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 29ba7aa
 
mystro256 29ba7aa
%changelog
Jeremy Newton 40d89f2
* Mon May 11 2015 Jeremy Newton <alexjnewt@hotmail.com> - 0.9.2-1
Jeremy Newton 40d89f2
- Update to 0.9.2
Jeremy Newton 40d89f2
alexjnewt@hotmail.com 5c74bcf
* Wed Nov 12 2014 Jeremy Newton <alexjnewt@hotmail.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
alexjnewt@hotmail.com ec787b4
* Sun Jan 5 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.9.0-2
alexjnewt@hotmail.com ec787b4
- Use repo version, fixes opengl issue
alexjnewt@hotmail.com ec787b4
alexjnewt@hotmail.com ec787b4
* Wed Jan 1 2014 Jeremy Newton <alexjnewt@hotmail.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
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