From 13b21b678ac3c6e5110e502e6dc1c67d39d6df3f Mon Sep 17 00:00:00 2001 From: Ken Dreyer Date: Fri, 25 Jan 2013 15:54:14 -0700 Subject: Initial packaging --- .gitignore | 1 + raphael.conf | 1 + raphael.spec | 47 +++++++++++++++++++++++++++++++++++++++++++++++ sources | 1 + 4 files changed, 50 insertions(+) create mode 100644 .gitignore create mode 100644 raphael.conf create mode 100644 raphael.spec create mode 100644 sources 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 - 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 -- cgit