[packages/js-respond] new, version 1.4.2

glen glen at pld-linux.org
Wed Mar 26 11:21:02 CET 2014


commit 081637174a61600d6f51431d31a8368f59bfbb56
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Mar 26 12:20:44 2014 +0200

    new, version 1.4.2

 apache.conf     |  5 ++++
 js-respond.spec | 75 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 lighttpd.conf   |  3 +++
 3 files changed, 83 insertions(+)
---
diff --git a/js-respond.spec b/js-respond.spec
new file mode 100644
index 0000000..17ac32a
--- /dev/null
+++ b/js-respond.spec
@@ -0,0 +1,75 @@
+%define		plugin	respond
+Summary:	A fast & lightweight polyfill for min/max-width CSS3 Media Queries (for IE 6-8, and more)
+Name:		js-%{plugin}
+Version:	1.4.2
+Release:	1
+License:	MIT
+Group:		Applications/WWW
+Source0:	https://github.com/scottjehl/Respond/archive/%{version}/%{plugin}-%{version}.tar.gz
+# Source0-md5:	58df08a8efaffaa555fbea8bef08cfb5
+Source1:	apache.conf
+Source2:	lighttpd.conf
+URL:		https://github.com/scottjehl/Respond
+Requires:	webserver(access)
+Requires:	webserver(alias)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+
+%description
+A fast & lightweight polyfill for min/max-width CSS3 Media Queries
+(for IE 6-8, and more)
+
+%prep
+%setup -qn Respond-%{version}
+
+mv cross-domain/example.html .
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
+cp -p dest/%{plugin}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+cp -p dest/%{plugin}.src.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
+ln -s %{plugin}-%{version}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
+ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
+
+cp -p cross-domain/* $RPM_BUILD_ROOT%{_appdir}/
+
+install -d $RPM_BUILD_ROOT%{_sysconfdir}
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
+%files
+%defattr(644,root,root,755)
+%doc README.md LICENSE-MIT
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
+%{_appdir}
diff --git a/apache.conf b/apache.conf
new file mode 100644
index 0000000..c8802f9
--- /dev/null
+++ b/apache.conf
@@ -0,0 +1,5 @@
+Alias /js/respond /usr/share/js-respond
+<Directory /usr/share/js-respond>
+	Allow from all
+	Options +FollowSymLinks
+</Directory>
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644
index 0000000..5683c0e
--- /dev/null
+++ b/lighttpd.conf
@@ -0,0 +1,3 @@
+alias.url += (
+	"/js/respond" => "/usr/share/js-respond",
+)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/js-respond.git/commitdiff/081637174a61600d6f51431d31a8368f59bfbb56



More information about the pld-cvs-commit mailing list