From e302b5a0db6d5740344e61aba7d57dab6d34007d Mon Sep 17 00:00:00 2001 From: Remi Collet Date: Wed, 16 Jan 2013 16:03:03 +0100 Subject: prototype: new package --- prototype.spec | 74 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 74 insertions(+) create mode 100644 prototype.spec (limited to 'prototype.spec') diff --git a/prototype.spec b/prototype.spec new file mode 100644 index 0000000..fc3625b --- /dev/null +++ b/prototype.spec @@ -0,0 +1,74 @@ +Name: prototype +Version: 1.7.1.0 +Release: 1%{?dist} +Summary: JavaScript framework +Group: Applications/Internet +License: MIT +URL: http://www.prototypejs.org/ + +# We cannot use the archive tarball from github +# as we don't have yet requirement for build (rake, sprockets) +Source0: https://ajax.googleapis.com/ajax/libs/prototype/%{version}/prototype.js +Source1: https://raw.github.com/sstephenson/prototype/master/LICENSE +Source2: prototype.conf + +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch + + +%description +Prototype is a JavaScript framework that aims to ease development of dynamic +web applications. It offers a familiar class-style OO framework, extensive +Ajax support, higher-order programming constructs, and easy DOM manipulation. + +%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 prototype library. + + +%prep +%setup -qcT + +cp -p %{SOURCE1} LICENSE + + +%build +# Nothing to build + + +%install +rm -rf %{buildroot} + +# JavaScript +mkdir -p %{buildroot}%{_datadir}/%{name} +cp -p %{SOURCE0} %{buildroot}%{_datadir}/%{name}/%{name}.js + +# Apache +mkdir -p %{buildroot}%{_sysconfdir}/httpd/conf.d +install -p -m 0644 %{SOURCE2} %{buildroot}%{_sysconfdir}/httpd/conf.d/%{name}.conf + + +%clean +rm -rf %{buildroot} + + +%files +%defattr(-,root,root,-) +%doc LICENSE +%{_datadir}/%{name} + + +%files httpd +%defattr(-,root,root,-) +%config(noreplace) %{_sysconfdir}/httpd/conf.d/%{name}.conf + + +%changelog +* Wed Jan 16 2013 Remi Collet - 1.7.1.0-1 +- initial package -- cgit