packages: jquery-datepicker/jquery-datepicker.spec - use svn 108 checkout, ...
glen
glen at pld-linux.org
Mon Nov 21 21:35:51 CET 2011
Author: glen Date: Mon Nov 21 20:35:51 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- use svn 108 checkout, fixes jquery 1.7 compat
---- Files affected:
packages/jquery-datepicker:
jquery-datepicker.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: packages/jquery-datepicker/jquery-datepicker.spec
diff -u packages/jquery-datepicker/jquery-datepicker.spec:1.1 packages/jquery-datepicker/jquery-datepicker.spec:1.2
--- packages/jquery-datepicker/jquery-datepicker.spec:1.1 Mon Nov 21 21:30:37 2011
+++ packages/jquery-datepicker/jquery-datepicker.spec Mon Nov 21 21:35:46 2011
@@ -1,14 +1,18 @@
# $Revision$, $Date$
+%define svnrev 108
+%define rel 1
%define plugin datepicker
Summary: A flexible unobtrusive calendar component for jQuery
Name: jquery-%{plugin}
+# last tag is 2.1.2, so no actual version of package
Version: 2.1.2
-Release: 0.2
+Release: 0.%{svnrev}.%{rel}
License: MIT
Group: Applications/WWW
# svn export http://jquery-datepicker.googlecode.com/svn/tags/2.1.2 jquery-datepicker-2.1.2
# tar cjf jquery-datepicker-2.1.2.tar.bz2 jquery-datepicker-2.1.2
Source0: %{name}-%{version}.tar.bz2
+Source1: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/scripts/jquery.datePicker.js
# Source0-md5: df393f932ff6d5a37d4a0856c1cbb216
URL: http://www.kelvinluck.com/assets/jquery/datePicker/v2/demo/
BuildRequires: js
@@ -37,10 +41,21 @@
%prep
%setup -q
+cp -p %{SOURCE1} dist
%build
install -d build
+# compress .js
+js=dist/jquery.datePicker.js
+out=build/jquery.datePicker.js
+%if 0%{!?debug:1}
+yuicompressor --charset UTF-8 $js -o $out
+js -C -f $out
+%else
+cp -p $js $out
+%endif
+
# pack .css
css=demo/styles/datePicker.css
out=build/datePicker.css
@@ -53,7 +68,7 @@
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
-cp -p dist/jquery.datePicker.min-%{version}.js $RPM_BUILD_ROOT%{_appdir}/jquery.datePicker.js
+cp -p build/jquery.datePicker.js $RPM_BUILD_ROOT%{_appdir}
cp -p build/datePicker.css $RPM_BUILD_ROOT%{_appdir}
cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
@@ -75,5 +90,8 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2011/11/21 20:35:46 glen
+- use svn 108 checkout, fixes jquery 1.7 compat
+
Revision 1.1 2011/11/21 20:30:37 glen
- new, use 2.1.2 tag checkout to include demo data
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jquery-datepicker/jquery-datepicker.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list