summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Dreyer <ktdreyer@ktdreyer.com>2013-01-25 15:54:14 -0700
committerKen Dreyer <ktdreyer@ktdreyer.com>2013-01-29 17:19:08 -0700
commit13b21b678ac3c6e5110e502e6dc1c67d39d6df3f (patch)
tree0e74c5e5ef301381029a3ea4db6da91b038b9ff0
downloadraphael-13b21b678ac3c6e5110e502e6dc1c67d39d6df3f.tar.gz
raphael-13b21b678ac3c6e5110e502e6dc1c67d39d6df3f.tar.xz
raphael-13b21b678ac3c6e5110e502e6dc1c67d39d6df3f.zip
Initial packagingHEADmaster
-rw-r--r--.gitignore1
-rw-r--r--raphael.conf1
-rw-r--r--raphael.spec47
-rw-r--r--sources1
4 files changed, 50 insertions, 0 deletions
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..e5b2e55
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1 @@
+/raphael-2.1.0-dbe241f.tar.gz
diff --git a/raphael.conf b/raphael.conf
new file mode 100644
index 0000000..b4e9325
--- /dev/null
+++ b/raphael.conf
@@ -0,0 +1 @@
+Alias /js/raphael /usr/share/raphael
diff --git a/raphael.spec b/raphael.spec
new file mode 100644
index 0000000..195b711
--- /dev/null
+++ b/raphael.spec
@@ -0,0 +1,47 @@
+%global commit dbe241f4c5310dd9bf3b451c538d78c6c4a0e288
+%global shortcommit %(c=%{commit}; echo ${c:0:7})
+
+%global checkout 20130124git%{shortcommit}
+
+Name: raphael
+Version: 2.1.0
+Release: 1.%{checkout}%{?dist}
+Summary: JavaScript Vector Library
+Group: Applications/Internet
+License: MIT
+URL: http://raphaeljs.com/
+Source0: https://github.com/DmitryBaranovskiy/raphael/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
+Source1: %{name}.conf
+BuildArch: noarch
+
+#BuildRequires:
+Requires: httpd
+
+%description
+Raphaƫl is a small JavaScript library that should simplify your work
+with vector graphics on the web. If you want to create your own specific
+chart or image crop and rotate widget, for example, you can achieve it
+simply and easily with this library.
+
+
+%prep
+%setup -q -n %{name}-%{commit}
+
+%build
+
+%install
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -p raphael.js $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -p raphael-min.js $RPM_BUILD_ROOT%{_datadir}/%{name}
+cp -p -r plugins $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 README.markdown license.txt reference.html
+%{_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
diff --git a/sources b/sources
new file mode 100644
index 0000000..fb319a1
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+76a65dadc27f515a7097f661acf72bdd raphael-2.1.0-dbe241f.tar.gz