Author: musuruan
Update of /cvs/nonfree/rpms/edgar/F-17
In directory old02.ovh.rpmfusion.lan:/tmp/cvs-serv19332/F-17
Modified Files:
.cvsignore sources
Added Files:
edgar.spec
Log Message:
First import
--- NEW FILE edgar.spec ---
Name: edgar
Version: 1.04
Release: 2%{?dist}
Summary: A platform game
# edgar contains sounds licensed under a "bad" Fedora license:
#
https://bugzilla.redhat.com/show_bug.cgi?id=816565
License: GPLv2+ and freely redistributable, no commercial use
URL:
http://www.parallelrealities.co.uk/p/legend-of-edgar.html
Source0:
http://downloads.sourceforge.net/legendofedgar/%{name}/%{name}-%{version}...
BuildRequires: SDL_image-devel
BuildRequires: SDL_mixer-devel
BuildRequires: SDL_ttf-devel
BuildRequires: zlib-devel
BuildRequires: gettext
BuildRequires: desktop-file-utils
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
# Fix Makefile
sed -i 's:$(PREFIX)/share/games/edgar/:$(PREFIX)/share/edgar/:' \
makefile
# Use standard Fedora CFLAGS to compile
sed -i 's/^CFLAGS = -Wall -pedantic/CFLAGS +=/' makefile
# Fix end-of-line encoding
for txtfile in src/graphics/font.h src/system/random.h
do
sed -i 's/\r//' $txtfile
done
# Fix premissions
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
rm -rf %{buildroot}
make install DESTDIR=%{buildroot} \
BIN_DIR=%{buildroot}%{_bindir}/ \
DATA_DIR=%{buildroot}%{_datadir}/%{name}/ \
DOC_DIR=%{buildroot}%{_docdir}/%{name}-%{version}/
desktop-file-install \
--delete-original \
--remove-key Encoding \
--add-category=ActionGame \
--dir %{buildroot}%{_datadir}/applications \
%{buildroot}%{_datadir}/applications/%{name}.desktop
%find_lang %{name}
%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
%{_bindir}/%{name}
%{_datadir}/%{name}
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*/apps/*
%doc %{_docdir}/%{name}-%{version}
%changelog
* Sun Oct 28 2012 Andrea Musuruane <musuruan(a)gmail.com> - 1.04-2
- Fixed license (BZ #2378)
* Sat Sep 22 2012 Andrea Musuruane <musuruan(a)gmail.com> - 1.04-1
- Updated to upstream 1.04-1
* Wed Aug 08 2012 Andrea Musuruane <musuruan(a)gmail.com> - 1.03-1
- Updated to upstream 1.03-1
* Sat Jun 23 2012 Andrea Musuruane <musuruan(a)gmail.com> - 1.02-2
- Updated to upstream 1.02-2
* Sun Jun 17 2012 Andrea Musuruane <musuruan(a)gmail.com> - 1.02-1
- Updated to upstream 1.02-1
* Wed May 16 2012 Andrea Musuruane <musuruan(a)gmail.com> - 1.01-1
- Updated to upstream 1.01-2
* Thu Apr 26 2012 Andrea Musuruane <musuruan(a)gmail.com> - 1.00-1
- First release
Index: .cvsignore
===================================================================
RCS file: /cvs/nonfree/rpms/edgar/F-17/.cvsignore,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- .cvsignore 30 Oct 2012 20:42:25 -0000 1.1
+++ .cvsignore 1 Nov 2012 09:24:43 -0000 1.2
@@ -0,0 +1 @@
+edgar-1.04-1.tar.gz
Index: sources
===================================================================
RCS file: /cvs/nonfree/rpms/edgar/F-17/sources,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- sources 30 Oct 2012 20:42:26 -0000 1.1
+++ sources 1 Nov 2012 09:24:43 -0000 1.2
@@ -0,0 +1 @@
+bce13737cf40ac2a46c3d8175520f2fb edgar-1.04-1.tar.gz