packages: jquery-pp/jquery-pp.spec (NEW)=?UTF-8?Q?=20?=- new

glen glen at pld-linux.org
Wed Feb 29 10:42:51 CET 2012


Author: glen                         Date: Wed Feb 29 09:42:51 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

---- Files affected:
packages/jquery-pp:
   jquery-pp.spec (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: packages/jquery-pp/jquery-pp.spec
diff -u /dev/null packages/jquery-pp/jquery-pp.spec:1.1
--- /dev/null	Wed Feb 29 10:42:51 2012
+++ packages/jquery-pp/jquery-pp.spec	Wed Feb 29 10:42:45 2012
@@ -0,0 +1,66 @@
+# $Revision$, $Date$
+%define		plugin	pp
+Summary:	jQuery PP framework
+Name:		jquery-%{plugin}
+Version:	1.0
+Release:	1
+License:	MIT / GPL
+Group:		Applications/WWW
+Source0:	https://github.com/atirip/jquery.pp/tarball/master/%{plugin}-%{version}.tgz
+# Source0-md5:	c8cd68f0507c93e87a0255c60c24440e
+URL:		https://github.com/atirip/jquery.pp
+BuildRequires:	js
+BuildRequires:	rpmbuild(macros) > 1.268
+BuildRequires:	closure-compiler
+Requires:	jquery >= 1.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_appdir	%{_datadir}/jquery/%{plugin}
+
+%description
+This packages contains base jQuery PP framework
+
+and additional optional plugins:
+- jQuery Calendar plugin for PP framework
+- jQuery Select plugin for PP framework
+
+%prep
+%setup -qc
+mv *-jquery.%{plugin}-*/* .
+
+%build
+install -d build
+# compress .js
+for js in *.js; do
+	# compress .js
+	out=build/${js#jquery.}
+	%if 0%{!?debug:1}
+	closure-compiler --js $js --charset UTF-8 --js_output_file $out
+	js -C -f $out
+	%else
+	cp -p $js $out
+	%endif
+done
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+cp -a build/* $RPM_BUILD_ROOT%{_appdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README
+%{_appdir}
+
+%define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
+%changelog
+* %{date} PLD Team <feedback at pld-linux.org>
+All persons listed below can be reached at <cvs_login>@pld-linux.org
+
+$Log$
+Revision 1.1  2012/02/29 09:42:45  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list