packages: jquery-notify-bar/jquery-notify-bar.spec - each plugin it's own d...
glen
glen at pld-linux.org
Fri Jun 4 16:56:03 CEST 2010
Author: glen Date: Fri Jun 4 14:56:03 2010 GMT
Module: packages Tag: HEAD
---- Log message:
- each plugin it's own dir in jquery is more cleaner; rel 2
---- Files affected:
packages/jquery-notify-bar:
jquery-notify-bar.spec (1.2 -> 1.3)
---- Diffs:
================================================================
Index: packages/jquery-notify-bar/jquery-notify-bar.spec
diff -u packages/jquery-notify-bar/jquery-notify-bar.spec:1.2 packages/jquery-notify-bar/jquery-notify-bar.spec:1.3
--- packages/jquery-notify-bar/jquery-notify-bar.spec:1.2 Fri Jun 4 15:31:46 2010
+++ packages/jquery-notify-bar/jquery-notify-bar.spec Fri Jun 4 16:55:58 2010
@@ -1,13 +1,14 @@
# $Revision$, $Date$
# TODO
# - make -demo package
+%define plugin notify-bar
Summary: jQuery Notify Bar plugin
-Name: jquery-notify-bar
+Name: jquery-%{plugin}
Version: 1.2.2
-Release: 1
+Release: 2
License: MIT
Group: Applications/WWW
-Source0: http://github.com/dknight/jQuery-Notify-bar/tarball/master?/notify-bar.tgz
+Source0: http://github.com/dknight/jQuery-Notify-bar/tarball/master?/%{plugin}.tgz
# Source0-md5: e6929d46a44fcad5559970b5fe6d7e3b
URL: http://www.dmitri.me/blog/notify-bar/
BuildRequires: js
@@ -18,7 +19,7 @@
BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
-%define _appdir %{_datadir}/jquery
+%define _appdir %{_datadir}/jquery/%{plugin}
%description
Simple plugin (basically it's not a plugin, but widget) to show notify
@@ -32,21 +33,16 @@
install -d build
# compress .js
-for js in *.js; do
- yuicompressor --charset UTF-8 $js -o build/$js
- js -C -f build/$js
-done
+yuicompressor --charset UTF-8 jquery.notifyBar.js -o build/notifyBar.js
+js -C -f build/notifyBar.js
# compress .css
-for css in *.css; do
- # compress with yui to get rid of comments, etc
- yuicompressor --charset UTF-8 $css -o build/$css
-done
+yuicompressor --charset UTF-8 jquery.notifyBar.css -o build/notifyBar.css
%install
rm -rf $RPM_BUILD_ROOT
install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
-cp -a build/jquery.notifyBar.* $RPM_BUILD_ROOT%{_appdir}
+cp -a build/* $RPM_BUILD_ROOT%{_appdir}
%clean
rm -rf $RPM_BUILD_ROOT
@@ -54,7 +50,7 @@
%files
%defattr(644,root,root,755)
%doc README.textile
-%{_appdir}/jquery.*
+%{_appdir}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -62,6 +58,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.3 2010/06/04 14:55:58 glen
+- each plugin it's own dir in jquery is more cleaner; rel 2
+
Revision 1.2 2010/06/04 13:31:46 glen
- typo
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jquery-notify-bar/jquery-notify-bar.spec?r1=1.2&r2=1.3&f=u
More information about the pld-cvs-commit
mailing list