]> git.pld-linux.org Git - packages/js-respond.git/commitdiff
new, version 1.4.2 master auto/th/js-respond-1.4.2-1
authorElan Ruusamäe <glen@delfi.ee>
Wed, 26 Mar 2014 10:20:44 +0000 (12:20 +0200)
committerElan Ruusamäe <glen@delfi.ee>
Wed, 26 Mar 2014 10:20:44 +0000 (12:20 +0200)
apache.conf [new file with mode: 0644]
js-respond.spec [new file with mode: 0644]
lighttpd.conf [new file with mode: 0644]

diff --git a/apache.conf b/apache.conf
new file mode 100644 (file)
index 0000000..c8802f9
--- /dev/null
@@ -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/js-respond.spec b/js-respond.spec
new file mode 100644 (file)
index 0000000..17ac32a
--- /dev/null
@@ -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/lighttpd.conf b/lighttpd.conf
new file mode 100644 (file)
index 0000000..5683c0e
--- /dev/null
@@ -0,0 +1,3 @@
+alias.url += (
+       "/js/respond" => "/usr/share/js-respond",
+)
This page took 0.283374 seconds and 4 git commands to generate.