packages: jquery-lightbox/jquery-lightbox.spec (NEW) - new

glen glen at pld-linux.org
Sun Jan 1 17:15:08 CET 2012


Author: glen                         Date: Sun Jan  1 16:15:08 2012 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/jquery-lightbox/jquery-lightbox.spec
diff -u /dev/null packages/jquery-lightbox/jquery-lightbox.spec:1.1
--- /dev/null	Sun Jan  1 17:15:08 2012
+++ packages/jquery-lightbox/jquery-lightbox.spec	Sun Jan  1 17:15:03 2012
@@ -0,0 +1,60 @@
+# $Revision$, $Date$
+# TODO
+# - demo package
+%define		plugin	lightbox
+Summary:	jQuery lightBox plugin
+Name:		jquery-%{plugin}
+Version:	0.5
+Release:	1
+License:	CC Attribution SA 2.5
+Group:		Applications/WWW
+Source0:	http://leandrovieira.com/projects/jquery/lightbox/releases/jquery-lightbox-%{version}.zip
+# Source0-md5:	6ea2479de1e85b45993c1cfa9bacf15f
+URL:		http://leandrovieira.com/projects/jquery/lightbox
+BuildRequires:	rpmbuild(macros) >= 1.268
+BuildRequires:	yuicompressor
+Requires:	jquery >= 1.2.3
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_appdir	%{_datadir}/jquery/%{plugin}
+
+%description
+jQuery lightBox plugin is simple, elegant, unobtrusive, no need extra
+markup and is used to overlay images on the current page through the
+power and flexibility of jQuery's selector.
+
+lightBox is a plugin for jQuery. It was inspired in Lightbox JS by
+Lokesh Dhakar.
+
+%prep
+%setup -qc
+
+%build
+install -d build/css
+css=css/jquery.lightbox-0.5.css
+yuicompressor --charset UTF-8 --type css $css -o build/$css
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+cp -p js/jquery.%{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+cp -p js/jquery.%{plugin}-%{version}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
+ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
+cp -p build/css/jquery.%{plugin}-%{version}.css $RPM_BUILD_ROOT%{_appdir}/%{plugin}.css
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_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/01/01 16:15:03  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list