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

glen glen at pld-linux.org
Thu Dec 22 14:17:36 CET 2011


Author: glen                         Date: Thu Dec 22 13:17:36 2011 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/jquery-photoswipe/jquery-photoswipe.spec
diff -u /dev/null packages/jquery-photoswipe/jquery-photoswipe.spec:1.1
--- /dev/null	Thu Dec 22 14:17:36 2011
+++ packages/jquery-photoswipe/jquery-photoswipe.spec	Thu Dec 22 14:17:30 2011
@@ -0,0 +1,62 @@
+# $Revision$, $Date$
+# NOTE
+# - I'm installing jquery version, because then I have webserver alias already
+#   setup for it
+%define		plugin	photoswipe
+Summary:	PhotoSwipe - The web image gallery for your mobile device
+Name:		jquery-%{plugin}
+Version:	3.0.4
+Release:	1
+License:	MIT
+Group:		Applications/WWW
+Source0:	https://github.com/downloads/codecomputerlove/PhotoSwipe/code.photoswipe-%{version}.zip
+# Source0-md5:	c690d4d8d44c52a695ee04c813b619e7
+URL:		http://www.photoswipe.com/
+BuildRequires:	rpmbuild(macros) >= 1.553
+Requires:	jquery
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_appdir	%{_datadir}/jquery/%{plugin}
+
+%description
+Inspired by the iOS photo viewer and Google images for mobile,
+PhotoSwipe is a HTML/CSS/JavaScript based image gallery specifically
+targeting mobile devices.
+
+The current version supports mobile handsets running WebKit based
+browsers, i.e. iOS, Android and Blackberry 6.
+
+PhotoSwipe also runs on the desktop and has been tested on Chrome,
+Firefox, Safari and Internet Explorer 8 and above and in a limited
+capacity on Windows Phone 7 (Mango).
+
+%prep
+%setup -qc
+mv %{version}/* .
+
+%undos -f txt,js
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+cp -p code.photoswipe.jquery-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+cp -p code.photoswipe.jquery-%{version}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
+ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc MIT-license.txt README.md change.log
+%{_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  2011/12/22 13:17:30  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list