From c9727c366dff0239797c8855687f6cfeb08f9382 Mon Sep 17 00:00:00 2001 From: lisu Date: Mon, 30 Mar 2009 12:57:45 +0000 Subject: [PATCH 1/1] - new spec Changed files: bfruit.spec -> 1.1 --- bfruit.spec | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) create mode 100644 bfruit.spec diff --git a/bfruit.spec b/bfruit.spec new file mode 100644 index 0000000..434b9f1 --- /dev/null +++ b/bfruit.spec @@ -0,0 +1,42 @@ +Summary: Slot machine game +Summary(pl.UTF-8): Jednoręki bandyta +Name: bfruit +Version: 0.1.2 +Release: 1 +License: GPL +Group: X11/Applications/Games +Source0: http://dl.sourceforge.net//bfruit/%{name}-%{version}.tar.bz2 +# Source0-md5: 8022b31e716d5a5878c58435a8d531e7 +URL: http://bfruit.sourceforge.net/ +BuildRequires: sed >= 4.0 +Requires: python-pygame +BuildArch: noarch +BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) + +%description +BFruit is an open source, GPL licensed fruit machine game written in +python and pygame. + +%description -l pl.UTF-8 +BFruit jest to gra w "Jednorękiego bandytę" oparta na licencji GPL, +napisana w pythonie z wykorzystaniem biblioteki pygame. + +%prep +%setup -q +%{__sed} -i -e 's#data/#%{_datadir}/%{name}/#' bfruit.py + +%install +rm -rf $RPM_BUILD_ROOT +install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name}} + +install bfruit.py $RPM_BUILD_ROOT%{_bindir}/%{name} +cp -r data/* $RPM_BUILD_ROOT%{_datadir}/%{name} + +%clean +rm -rf $RPM_BUILD_ROOT + +%files +%defattr(644,root,root,755) +#%%doc AUTHORS CREDITS ChangeLog NEWS README THANKS TODO +%attr(755,root,root) %{_bindir}/bfruit +%{_datadir}/%{name} -- 2.43.0