mystro256 29ba7aa
Name:           love
alexjnewt@hotmail.com 17f6732
Version:        0.9.0
alexjnewt@hotmail.com 17f6732
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 17f6732
Source0:        https://bitbucket.org/rude/%{name}/get/%{version}.tar.gz
mystro256 29ba7aa
mystro256 29ba7aa
BuildRequires:  DevIL-devel
alexjnewt@hotmail.com 17f6732
BuildRequires:  mesa-libGL
mystro256 29ba7aa
BuildRequires:  libtiff-devel
mystro256 29ba7aa
BuildRequires:  freetype-devel
alexjnewt@hotmail.com 24eeb81
BuildRequires:  luajit-devel
mystro256 29ba7aa
BuildRequires:  physfs-devel
alexjnewt@hotmail.com 17f6732
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 17f6732
Requires: 	lib%{name}%{?_isa} = %{version}-%{release}
alexjnewt@hotmail.com 17f6732
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 17f6732
%package -n lib%{name}
alexjnewt@hotmail.com 17f6732
Summary:        Library for Love, A free 2D game engine
alexjnewt@hotmail.com 17f6732
alexjnewt@hotmail.com 17f6732
%description -n lib%{name}
alexjnewt@hotmail.com 17f6732
This package includes the library files for LOVE.
alexjnewt@hotmail.com 17f6732
LOVE is an open source, cross platform 2D game engine which uses the
alexjnewt@hotmail.com 17f6732
Lua scripting language. LOVE can be used to make games of any license
alexjnewt@hotmail.com 17f6732
allowing it to be used for both free and non-free projects.
alexjnewt@hotmail.com 17f6732
mystro256 29ba7aa
%prep
alexjnewt@hotmail.com 17f6732
%setup -q -n rude-%{name}-38c00c788bcb
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
alexjnewt@hotmail.com 17f6732
%configure  --prefix=/usr --disable-mpg123 --enable-static=no
alexjnewt@hotmail.com 17f6732
make %{?_smp_mflags}
mystro256 29ba7aa
 
mystro256 29ba7aa
%install
alexjnewt@hotmail.com 17f6732
make %{?_smp_mflags} install DESTDIR=%{buildroot}
alexjnewt@hotmail.com 17f6732
#Check Desktop file
alexjnewt@hotmail.com 17f6732
desktop-file-validate \
alexjnewt@hotmail.com 17f6732
  %{buildroot}%{_datadir}/applications/%{name}.desktop
alexjnewt@hotmail.com 17f6732
#This seems to be built, despite disabling static libraries
alexjnewt@hotmail.com 17f6732
rm -f %{buildroot}%{_libdir}/lib%{name}.la
mystro256 29ba7aa
mystro256 29ba7aa
%post
alexjnewt@hotmail.com 17f6732
/sbin/ldconfig
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
alexjnewt@hotmail.com 17f6732
/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 || :
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 || :
alexjnewt@hotmail.com 17f6732
alexjnewt@hotmail.com 17f6732
%post -n lib%{name} -p /sbin/ldconfig
alexjnewt@hotmail.com 17f6732
alexjnewt@hotmail.com 17f6732
%postun -n lib%{name} -p /sbin/ldconfig
alexjnewt@hotmail.com 17f6732
mystro256 29ba7aa
%files
mystro256 29ba7aa
%doc changes.txt license.txt readme.md
mystro256 29ba7aa
%{_bindir}/%{name}
alexjnewt@hotmail.com 17f6732
%{_datadir}/pixmaps/%{name}.svg
alexjnewt@hotmail.com 17f6732
%{_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 17f6732
alexjnewt@hotmail.com 17f6732
%files -n lib%{name}
alexjnewt@hotmail.com 17f6732
%doc changes.txt license.txt readme.md
alexjnewt@hotmail.com 17f6732
#Note that liblove.so is just a symlink, so a devel package is useless
alexjnewt@hotmail.com 17f6732
%{_libdir}/lib%{name}.*
mystro256 29ba7aa
 
mystro256 29ba7aa
%changelog
alexjnewt@hotmail.com 17f6732
* Sun Jan 5 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.9.0-2
alexjnewt@hotmail.com 17f6732
- Use repo version, fixes opengl issue
alexjnewt@hotmail.com 17f6732
alexjnewt@hotmail.com 17f6732
* Wed Jan 1 2014 Jeremy Newton <alexjnewt@hotmail.com> - 0.9.0-1
alexjnewt@hotmail.com 17f6732
- New upstream 0.9.0
alexjnewt@hotmail.com 17f6732
- Removed all patches/sources (all fixed in 0.9.0)
alexjnewt@hotmail.com 17f6732
- Add disable-mpg123 flag and enable-static=no
alexjnewt@hotmail.com 17f6732
- Split into 2 packages, love and liblove
alexjnewt@hotmail.com 24eeb81
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