From 1ef29139ec2b6af4b2c21270d5ae89269c394be6 Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Thu, 24 Jan 2013 14:48:51 +0100 Subject: scriptaculous: new package --- Makefile | 4 +++ scriptaculous.conf | 14 ++++++++++ scriptaculous.spec | 78 ++++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 96 insertions(+) create mode 100644 Makefile create mode 100644 scriptaculous.conf create mode 100644 scriptaculous.spec diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e65467 --- /dev/null +++ b/Makefile @@ -0,0 +1,4 @@ +SRCDIR := $(shell pwd) +NAME := $(shell basename $(SRCDIR)) +include ../common/Makefile + diff --git a/scriptaculous.conf b/scriptaculous.conf new file mode 100644 index 0000000..bf35c9e --- /dev/null +++ b/scriptaculous.conf @@ -0,0 +1,14 @@ +Alias /scriptaculous /usr/share/scriptaculous + + + + # Apache 2.4 + Require all granted + + + # Apache 2.2 + Order deny,allow + Allow from all + + + diff --git a/scriptaculous.spec b/scriptaculous.spec new file mode 100644 index 0000000..0f00cab --- /dev/null +++ b/scriptaculous.spec @@ -0,0 +1,78 @@ +Name: scriptaculous +Version: 1.9.0 +Release: 1%{?dist} +Summary: JavaScript library +Group: Applications/Internet +License: MIT +URL: http://script.aculo.us/ + +# We cannot use the archive tarball from github +# as we don't have yet requirement for build (rake, sprockets) +Source0: http://script.aculo.us/dist/%{name}-js-%{version}.zip +Source1: %{name}.conf + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch + +Requires: prototype + + +%description +script.aculo.us provides you with easy-to-use, +cross-browser user interface JavaScript libraries +to make your web sites and web applications fly. + +%package httpd +Summary: Apache configuration for %{name} +Group: Applications/Internet +Requires: %{name} = %{version}-%{release} +Requires: httpd + +%description httpd +This package provides the Apache configuration for +applications using an Alias to scriptaculous library. + + +%prep +%setup -q -n %{name}-js-%{version} + +# fix encoding +iconv -f iso-8859-1 -t utf8 CHANGELOG >CHANGELOG.new +touch -r CHANGELOG CHANGELOG.new +mv CHANGELOG.new CHANGELOG + + +%build +# Nothing to build + + +%install +rm -rf %{buildroot} + +# JavaScript +install -m 0755 -d %{buildroot}%{_datadir}/%{name} +install -m 0644 -p src/*.js %{buildroot}%{_datadir}/%{name} + +# Apache +install -m 0755 -d %{buildroot}%{_sysconfdir}/httpd/conf.d +install -m 0644 -p %{SOURCE1} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc CHANGELOG README.rdoc MIT-LICENSE +%{_datadir}/%{name} + + +%files httpd +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf + + +%changelog +* Thu Jan 24 2013 Remi Collet - 1.9.0-1 +- initial package -- cgit