SPECS: scalar.spec (NEW) - new
lisu
lisu at pld-linux.org
Sat Oct 28 15:47:42 CEST 2006
Author: lisu Date: Sat Oct 28 13:47:42 2006 GMT
Module: SPECS Tag: HEAD
---- Log message:
- new
---- Files affected:
SPECS:
scalar.spec (NONE -> 1.1) (NEW)
---- Diffs:
================================================================
Index: SPECS/scalar.spec
diff -u /dev/null SPECS/scalar.spec:1.1
--- /dev/null Sat Oct 28 15:47:42 2006
+++ SPECS/scalar.spec Sat Oct 28 15:47:36 2006
@@ -0,0 +1,73 @@
+# $Revision$, $Date$
+#
+# Conditional build:
+%bcond_without SDL_mixer # build without SDL_mixer
+#
+Summary: Addictive puzzle game to kill time
+Summary(pl): Uzależniająca gra logiczna, która pomaga zabić czas
+Name: scalar
+Version: 1.02
+Release: 1
+License: GPL v2+
+Group: X11/Applications/Games
+Source0: http://dl.sourceforge.net/scalar/%{name}-%{version}-src.tar.bz2
+# Source0-md5: 85526f8abf84ed4f5fa4cda67c75b47d
+Source1: %{name}.desktop
+Source2: %{name}.png
+Patch0: %{name}-images_dir.patch
+URL: http://scalar.sourceforge.net/
+BuildRequires: SDL-devel
+BuildRequires: SDL_image-devel
+%{?with_SDL_mixer:BuildRequires: SDL_mixer-devel}
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+The goal of the game is to assemble the picture from pieces. Each
+picture is divided into pieces which are shuffled. You need to get
+each piece back to its original position.
+
+%description -l pl
+Celem gry jest ułożenie obrazka z kawałków. Każdy obrazek został
+podzielony na kawałki, które zostały pomieszane. Twoim zadaniem jest
+przywrócenie oryginalnego wyglądu obrazka.
+
+%prep
+%setup -q -n %{name}-%{version}-src
+%patch0 -p1
+sed -i 's at data@%{_datadir}/%{name}/data@' %{name}.cpp
+
+%build
+%{__make} \
+ CXX="%{__cxx}" \
+ OPTIMIZE="%{rpmcflags}"
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_bindir},%{_datadir}/%{name},%{_desktopdir},%{_pixmapsdir}}
+
+install %{name} $RPM_BUILD_ROOT%{_bindir}
+install %{SOURCE1} $RPM_BUILD_ROOT%{_desktopdir}
+install %{SOURCE2} $RPM_BUILD_ROOT%{_pixmapsdir}
+cp -r data/ $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -r images/ $RPM_BUILD_ROOT%{_datadir}/%{name}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%attr(755,root,root) %{_bindir}/*
+%{_datadir}/%{name}
+%{_desktopdir}/%{name}.desktop
+%{_pixmapsdir}/%{name}.png
+
+%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1 2006/10/28 13:47:36 lisu
+- new
+
================================================================
More information about the pld-cvs-commit
mailing list