packages: jquery-json/jquery-json.spec - own plugin dir, less conflicts

glen glen at pld-linux.org
Fri Oct 8 17:26:05 CEST 2010


Author: glen                         Date: Fri Oct  8 15:26:05 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- own plugin dir, less conflicts

---- Files affected:
packages/jquery-json:
   jquery-json.spec (1.1 -> 1.2) 

---- Diffs:

================================================================
Index: packages/jquery-json/jquery-json.spec
diff -u packages/jquery-json/jquery-json.spec:1.1 packages/jquery-json/jquery-json.spec:1.2
--- packages/jquery-json/jquery-json.spec:1.1	Fri Oct  8 17:24:17 2010
+++ packages/jquery-json/jquery-json.spec	Fri Oct  8 17:26:00 2010
@@ -1,8 +1,9 @@
 # $Revision$, $Date$
+%define		plugin	json
 Summary:	JSON plugin for jQuery, provides simple ways to convert to JSON and back again
-Name:		jquery-json
+Name:		jquery-%{plugin}
 Version:	2.2
-Release:	0.1
+Release:	1
 License:	MIT
 Group:		Applications/WWW
 Source0:	http://jquery-json.googlecode.com/files/jquery.json-%{version}.min.js
@@ -13,7 +14,7 @@
 BuildArch:	noarch
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
-%define		_appdir		%{_datadir}/jquery
+%define		_appdir	%{_datadir}/jquery/%{plugin}
 
 %description
 JSON plugin for jQuery, provides simple ways to convert to JSON and
@@ -21,19 +22,18 @@
 
 %prep
 %setup -qcT
-cp -a %{SOURCE0} jquery.json.js
 
 %install
 rm -rf $RPM_BUILD_ROOT
 install -d $RPM_BUILD_ROOT%{_appdir}
-cp -a jquery.json.js $RPM_BUILD_ROOT%{_appdir}
+cp -a %{SOURCE0} $RPM_BUILD_ROOT%{_appdir}/json.js
 
 %clean
 rm -rf $RPM_BUILD_ROOT
 
 %files
 %defattr(644,root,root,755)
-%{_appdir}/jquery.json.js
+%{_appdir}
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -41,5 +41,8 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.2  2010/10/08 15:26:00  glen
+- own plugin dir, less conflicts
+
 Revision 1.1  2010/10/08 15:24:17  glen
 - new
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/jquery-json/jquery-json.spec?r1=1.1&r2=1.2&f=u



More information about the pld-cvs-commit mailing list