Name: snake-js Version: 1.0 Release: 1%{?dist} Summary: Snake Summary(ar): الثعبان License: MIT URL: https://github.com/patorjk/JavaScript-Snake Source0: %{name}-%{version}.tar.xz Requires: pywebkitgtk Buildarch: noarch %description Snake %description -l ar الثعبان %prep %setup -q -n %{name} sed -i "s:/usr/share:%{_datadir}:g" %{name} %install mkdir -p %{buildroot}%{_datadir}/%{name} mkdir -p %{buildroot}%{_bindir} mkdir -p %{buildroot}%{_datadir}/applications mkdir -p %{buildroot}%{_datadir}/appdata mkdir -p %{buildroot}%{_datadir}/pixmaps cp -pr css js %{buildroot}%{_datadir}/%{name} install -Dp -m 0644 index.html %{buildroot}%{_datadir}/%{name} install -Dp -m 0755 %{name} %{buildroot}%{_bindir} install -Dp -m 0755 %{name}.desktop %{buildroot}%{_datadir}/applications install -Dp -m 0644 %{name}.appdata.xml %{buildroot}%{_datadir}/appdata install -Dp -m 0644 %{name}.png %{buildroot}%{_datadir}/pixmaps %files %license LICENSE %doc README.md %{_datadir}/%{name}/* %{_bindir}/%{name} %{_datadir}/applications/%{name}.desktop %{_datadir}/appdata/%{name}.appdata.xml %{_datadir}/pixmaps/%{name}.png %changelog * Sat Mar 18 2017 Mosaab Alzoubi - 1.0-1 - Initial