summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-01-30 18:33:53 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-01-30 18:33:53 -0700
commitabd54576c4914ab9d4fbf0751f16da7ed577fda5 (patch)
treeddffc3810b15c3cfb4bf24ef2f27708cbf0a9c96
downloadspin.js-master.zip
spin.js-master.tar.gz
spin.js-master.tar.xz
Initial packagingHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--sources1
-rw-r--r--spin.js.conf1
-rw-r--r--spin.js.spec43
4 files changed, 46 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..cb8e538
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/spin.js-1.2.7-63b791d.tar.gz
diff --git a/sources b/sources
new file mode 100644
index 0000000..528a86d
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+39cf49d18830ca83b35c9bc0e09e44d4 spin.js-1.2.7-63b791d.tar.gz
diff --git a/spin.js.conf b/spin.js.conf
new file mode 100644
index 0000000..f555e70
--- /dev/null
+++ b/spin.js.conf
@@ -0,0 +1 @@
+Alias /js/spin.js /usr/share/spin.js
diff --git a/spin.js.spec b/spin.js.spec
new file mode 100644
index 0000000..ed54f64
--- /dev/null
+++ b/spin.js.spec
@@ -0,0 +1,43 @@
+%global commit 63b791dd1e7139694f1caf02726dab1ac33e0177
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+%global checkout 20130125git%{shortcommit}
+
+Name: spin.js
+Version: 1.2.7
+Release: 1.%{checkout}%{?dist}
+Summary: A spinning activity indicator
+Group: Applications/Internet
+License: MIT
+URL: http://fgnass.github.com/spin.js/
+Source0: https://github.com/fgnass/spin.js/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+Source1: %{name}.conf
+BuildArch: noarch
+
+#BuildRequires:
+Requires: httpd
+
+%description
+An animated CSS3 loading spinner with VML fallback for IE.
+
+
+%prep
+%setup -q -n %{name}-%{commit}
+
+%build
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -p dist/spin.js $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -p dist/spin.min.js $RPM_BUILD_ROOT%{_datadir}/%{name}
+mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
+install -p -m 0644 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/httpd/conf.d
+
+%files
+%doc assets index.html LICENSE.txt README.md
+%{_datadir}/%{name}
+%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf
+
+%changelog
+* Fri Jan 24 2013 Ken Dreyer <ktdreyer@ktdreyer.com> - 2.1.0-1.20130124gitdbe241f
+- Initial packaging