[packages/jquery-datatables] new, version 1.9.4

glen glen at pld-linux.org
Fri Feb 15 17:46:18 CET 2013


commit b73e1c41d8d4d78e24bad882f8ef5580e88fe38a
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Fri Feb 15 18:45:59 2013 +0200

    new, version 1.9.4

 jquery-datatables.spec | 53 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 53 insertions(+)
---
diff --git a/jquery-datatables.spec b/jquery-datatables.spec
new file mode 100644
index 0000000..8d05f79
--- /dev/null
+++ b/jquery-datatables.spec
@@ -0,0 +1,53 @@
+%define		plugin	datatables
+Summary:	DataTables (table plug-in for jQuery)
+Name:		jquery-%{plugin}
+Version:	1.9.4
+Release:	1
+License:	GPL v2, BSD
+Group:		Applications/WWW
+Source0:	http://www.datatables.net/releases/DataTables-%{version}.zip
+# Source0-md5:	136f9ce380015161a6543cc17221908c
+URL:		http://www.datatables.net/
+BuildRequires:	rpmbuild(macros) >= 1.553
+BuildRequires:	sed >= 4.0
+BuildRequires:	unzip
+Requires:	jquery >= 1.8
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_appdir	%{_datadir}/jquery/%{plugin}
+
+%description
+DataTables is a plug-in for the jQuery JavaScript library. It is a
+highly flexible tool, based upon the foundations of progressive
+enhancement, which will add advanced interaction controls to any HTML
+table.
+
+%prep
+%setup -qn DataTables-%{version}
+
+%{__sed} -i -e 's,../images/,,' media/css/*.css
+%{__rm} media/images/*.psd
+%{__rm} media/images/*.ico
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_appdir}
+
+cp -p media/js/jquery.dataTables.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+cp -p media/js/jquery.dataTables.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.js
+ln -s %{plugin}-%{version}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
+ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
+
+cp -p media/css/jquery.dataTables.css $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.css
+ln -s %{plugin}-%{version}.css $RPM_BUILD_ROOT%{_appdir}/%{plugin}.css
+
+cp -a media/images/* $RPM_BUILD_ROOT%{_appdir}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc Readme.txt
+%{_appdir}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/jquery-datatables.git/commitdiff/b73e1c41d8d4d78e24bad882f8ef5580e88fe38a



More information about the pld-cvs-commit mailing list