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

glen glen at pld-linux.org
Fri Jun 4 15:45:31 CEST 2010


Author: glen                         Date: Fri Jun  4 13:45:31 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- new

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

---- Diffs:

================================================================
Index: packages/jquery-autocomplete/jquery-autocomplete.spec
diff -u /dev/null packages/jquery-autocomplete/jquery-autocomplete.spec:1.1
--- /dev/null	Fri Jun  4 15:45:31 2010
+++ packages/jquery-autocomplete/jquery-autocomplete.spec	Fri Jun  4 15:45:25 2010
@@ -0,0 +1,100 @@
+# $Revision$, $Date$
+Summary:	jQuery plugin: Autocomplete
+Name:		jquery-autocomplete
+Version:	1.1
+Release:	0.11
+License:	MIT / GPL v2
+Group:		Applications/WWW
+Source0:	http://jquery.bassistance.de/autocomplete/jquery.autocomplete.zip
+# Source0-md5:	7de19c33f0c08f20cc5e496eb10787f0
+URL:		http://bassistance.de/jquery-plugins/jquery-plugin-autocomplete/
+BuildRequires:	rpmbuild(macros) >= 1.565
+BuildRequires:	sed >= 4.0
+BuildRequires:	unzip
+Requires:	jquery >= 1.2.6
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/jquery
+
+%description
+Autocomplete an input field to enable users quickly finding and
+selecting some value, leveraging searching and filtering.
+
+By giving an autocompleted field focus or entering something into it,
+the plugin starts searching for matching entries and displays a list
+of values to choose from. By entering more characters, the user can
+filter down the list to better matches.
+
+This can be used to enter previous selected values, eg. for tags, to
+complete an address, eg. enter a city name and get the zip code, or
+maybe enter email addresses from an addressbook.
+
+%package demo
+Summary:	Demo for jQuery.autocomplete
+Group:		Development
+Requires:	%{name} = %{epoch}:%{version}-%{release}
+Requires:	jquery-thickbox
+
+%description demo
+Demonstrations and samples for jQuery.autocomplete.
+
+%prep
+%setup -qn %{name}
+%undos changelog.txt todo
+
+cd demo
+%undos -f html,js,css
+
+sed -i -e '
+	s,../lib/jquery.js,jquery.js,
+
+	s,../jquery.autocomplete.js,jquery.autocomplete.js,
+	s,../jquery.autocomplete.css,jquery.autocomplete.css,
+
+	s,../lib/thickbox.css,thickbox.css,
+	s,../lib/thickbox-compressed.js,thickbox.js,
+' index.html json.html
+
+ln -s %{_appdir}/jquery.js .
+
+ln -s %{_appdir}/jquery.autocomplete.js .
+ln -s %{_appdir}/jquery.autocomplete.css .
+
+ln -s %{_datadir}/jquery-thickbox/thickbox.css .
+ln -s %{_datadir}/jquery-thickbox/thickbox.js .
+
+%build
+install -d build
+cp -a jquery.autocomplete.css build
+cp -a jquery.autocomplete.min.js build/jquery.autocomplete.js
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
+cp -a build/* $RPM_BUILD_ROOT%{_appdir}
+cp -a demo/* $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc changelog.txt todo
+%{_appdir}/jquery.autocomplete.*
+
+%files demo
+%defattr(644,root,root,755)
+%{_examplesdir}/%{name}-%{version}
+
+%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  2010/06/04 13:45:25  glen
+- new
================================================================


More information about the pld-cvs-commit mailing list