Mageia Bugzilla – Attachment 4222 Details for
Bug 10831
Review Request: The Legend of Edgar, a 2D platform game
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
Specfile for The Legend of Edgar
edgar.spec (text/x-rpm-spec), 2.24 KB, created by
Rémi Verschelde
on 2013-07-24 13:46:46 CEST
(
hide
)
Description:
Specfile for The Legend of Edgar
Filename:
MIME Type:
Creator:
Rémi Verschelde
Created:
2013-07-24 13:46:46 CEST
Size:
2.24 KB
patch
obsolete
>Name: edgar >Version: 1.10 >Release: %mkrel 0 >Summary: The Legend of Edgar - 2D platform game >Group: Games/Adventure ># License issues for the content were fixed in version 1.10 ># All sounds and music are now respectively CC0 or CC-BY or CC-BY-SA ># (see $SOURCE0/doc/changes and $SOURCE0/doc/music_and_sound_licences) >License: GPLv2+ and CC0 or CC-BY or CC-BY-SA >URL: http://www.parallelrealities.co.uk/p/legend-of-edgar.html > >Source0: http://downloads.sourceforge.net/legendofedgar/%{name}/%{name}-%{version}-1.tar.gz > >BuildRequires: desktop-file-utils >BuildRequires: gettext >BuildRequires: pkgconfig(SDL_image) >BuildRequires: pkgconfig(SDL_mixer) >BuildRequires: pkgconfig(SDL_ttf) >BuildRequires: pkgconfig(zlib) >Requires: hicolor-icon-theme > > >%description >When his father fails to return home after venturing out one dark and stormy >night, Edgar fears the worst: he has been captured by the evil sorcerer who >lives in a fortress beyond the forbidden swamp. > >Donning his armor, Edgar sets off to rescue him, but his quest will not be >easy... > > >%prep >%setup -q > ># Use standard Mageia CFLAGS to compile >sed -i 's/^CFLAGS = -Wall -pedantic/CFLAGS +=/' makefile > ># Fix permissions >for txtfile in src/graphics/font.h src/graphics/font.c src/system/random.h \ > src/system/random.c >do > chmod 644 $txtfile >done > > >%build >export CFLAGS="%{optflags}" >make %{?_smp_mflags} > > >%install >make install DESTDIR=%{buildroot} > >desktop-file-install \ > --delete-original \ > --remove-key Encoding \ > --add-category="AdventureGame;" \ > --dir %{buildroot}%{_datadir}/applications \ > %{buildroot}%{_datadir}/applications/%{name}.desktop > >%find_lang %{name} > ># Delete unneeded doc files, the needed ones are linked with %%doc >rm -rf %{buidlroot}%{_docdir} > > >%post >touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : > > >%postun >if [ $1 -eq 0 ] ; then > touch --no-create %{_datadir}/icons/hicolor &>/dev/null > gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : >fi > > >%posttrans >gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : > > >%files -f %{name}.lang >%doc doc/changes doc/music_and_sound_licences doc/*.html doc/*.gif doc/*.png >%{_gamesbindir}/%{name} >%{_gamesdatadir}/%{name} >%{_datadir}/applications/%{name}.desktop >%{_datadir}/icons/hicolor/*/apps/%{name}.png
Name: edgar Version: 1.10 Release: %mkrel 0 Summary: The Legend of Edgar - 2D platform game Group: Games/Adventure # License issues for the content were fixed in version 1.10 # All sounds and music are now respectively CC0 or CC-BY or CC-BY-SA # (see $SOURCE0/doc/changes and $SOURCE0/doc/music_and_sound_licences) License: GPLv2+ and CC0 or CC-BY or CC-BY-SA URL: http://www.parallelrealities.co.uk/p/legend-of-edgar.html Source0: http://downloads.sourceforge.net/legendofedgar/%{name}/%{name}-%{version}-1.tar.gz BuildRequires: desktop-file-utils BuildRequires: gettext BuildRequires: pkgconfig(SDL_image) BuildRequires: pkgconfig(SDL_mixer) BuildRequires: pkgconfig(SDL_ttf) BuildRequires: pkgconfig(zlib) Requires: hicolor-icon-theme %description When his father fails to return home after venturing out one dark and stormy night, Edgar fears the worst: he has been captured by the evil sorcerer who lives in a fortress beyond the forbidden swamp. Donning his armor, Edgar sets off to rescue him, but his quest will not be easy... %prep %setup -q # Use standard Mageia CFLAGS to compile sed -i 's/^CFLAGS = -Wall -pedantic/CFLAGS +=/' makefile # Fix permissions for txtfile in src/graphics/font.h src/graphics/font.c src/system/random.h \ src/system/random.c do chmod 644 $txtfile done %build export CFLAGS="%{optflags}" make %{?_smp_mflags} %install make install DESTDIR=%{buildroot} desktop-file-install \ --delete-original \ --remove-key Encoding \ --add-category="AdventureGame;" \ --dir %{buildroot}%{_datadir}/applications \ %{buildroot}%{_datadir}/applications/%{name}.desktop %find_lang %{name} # Delete unneeded doc files, the needed ones are linked with %%doc rm -rf %{buidlroot}%{_docdir} %post touch --no-create %{_datadir}/icons/hicolor &>/dev/null || : %postun if [ $1 -eq 0 ] ; then touch --no-create %{_datadir}/icons/hicolor &>/dev/null gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : fi %posttrans gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || : %files -f %{name}.lang %doc doc/changes doc/music_and_sound_licences doc/*.html doc/*.gif doc/*.png %{_gamesbindir}/%{name} %{_gamesdatadir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/icons/hicolor/*/apps/%{name}.png
View Attachment As Raw
Actions:
View
Attachments on
bug 10831
: 4222