File impressjs.spec of Package impressjs
# Who knows why there are two git hashes. Github is crazy.
# The first one is the githash on the *name* of the tarball.
# The second one is the githash of the dir that the tarball unpacks to.
%global githash gedff5a0
%global other_githash e8fbd0c
%global gitdate 20130412
%global checkout %{gitdate}git%{githash}
Name: impressjs
Version: 1.1.0
Release: 1%{?dist}
Summary: Javascript presentation framework
BuildArch: noarch
# It is dual licensed under the MIT and GPL
# https://github.com/bartaz/impress.js/issues/279
License: MIT or GPLv2+
URL: https://impress.js.org/
Source0: https://github.com/impress/impress.js/archive/%{version}/impress.js-%{version}.tar.gz
# The demo that we ship in %%doc expects impress.js to be in a certain
# location. Here we patch that html demo to look for impress.js in
# %%{_datadir} where we actually install it.
Patch0: impressjs-patch-demo-url.patch
%description
It's a presentation framework based on the power of CSS3 transforms and
transitions in modern browsers and inspired by the idea behind prezi.com.
%prep
%autosetup -p1 -n impress.js-%{version}
%build
# Nothing to actually do here.
%install
# Simply copy files into place
%{__mkdir_p} %{buildroot}%{_datadir}/impressjs
install -D -m 0644 js/impress.js %{buildroot}%{_datadir}/impressjs/impress.js
%files
%doc README.md index.html css/
%{_datadir}/impressjs/