Name: clutter-toys Summary: Clutter sample applications Version: 0.1 Release: 1 Group: System/Libraries License: LGPLv2+ URL: http://www.clutter-project.org/ Source0: %{name}-%{version}.tar.bz2 Patch1: fix-colors.patch Patch2: fix-image-path.patch Patch3: map-escape-key-to-quit.patch BuildRequires: pkgconfig(clutter-1.0) BuildRequires: pkgconfig(gl) %description Clutter toy sample applications. %prep %setup -q -n %{name}-%{version} #make color easier to see %patch1 -p1 #set image path to installed data directory %patch2 -p1 #map escape key to quit apps %patch3 -p1 %build cd arc-clock make -j8 cd .. cd circles make -j8 cd .. cd courasel make -j8 cd .. cd foofone make -j8 cd .. cd pong make -j8 cd .. cd ripples make -j8 cd .. %install rm -rf %{buildroot} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/clutter-toys mkdir -p %{buildroot}%{_datadir}/clutter-toys/courasel mkdir -p %{buildroot}%{_datadir}/clutter-toys/foofone mkdir -p %{buildroot}%{_datadir}/clutter-toys/pong install -m 755 arc-clock/arc-clock $RPM_BUILD_ROOT%{_bindir} install -m 755 circles/circles $RPM_BUILD_ROOT%{_bindir} install -m 755 courasel/courasel $RPM_BUILD_ROOT%{_bindir} install -m 644 courasel/*.png $RPM_BUILD_ROOT%{_datadir}/clutter-toys/courasel/ install -m 755 foofone/foofone $RPM_BUILD_ROOT%{_bindir} install -m 644 foofone/*.png $RPM_BUILD_ROOT%{_datadir}/clutter-toys/foofone/ install -m 755 pong/pong2 $RPM_BUILD_ROOT%{_bindir} install -m 755 ripples/ripples $RPM_BUILD_ROOT%{_bindir} %clean rm -rf "$RPM_BUILD_ROOT" %files %defattr(-,root,root,-) %{_bindir}/* %{_datadir}/clutter-toys