[projects/template-specs] template for jquery plugins
glen
glen at pld-linux.org
Wed Jan 22 12:45:54 CET 2014
commit 60f23575b8c1ad638f4a3348651c3715bee5425d
Author: Elan Ruusamäe <glen at delfi.ee>
Date: Wed Nov 27 21:14:58 2013 +0200
template for jquery plugins
jquery-plugin.spec | 46 ++++++++++++++++++++++++++++++++++++++++++++++
1 file changed, 46 insertions(+)
---
diff --git a/jquery-plugin.spec b/jquery-plugin.spec
new file mode 100644
index 0000000..9893f02
--- /dev/null
+++ b/jquery-plugin.spec
@@ -0,0 +1,46 @@
+%define plugin TEMPLATE
+Summary: TEMPLATE
+Name: jquery-%{plugin}
+Version: 0.1
+Release: 0.1
+License: MIT/GPL
+Group: Applications/WWW
+Source0: -
+# Source0-md5: -
+URL: -
+Requires: jquery
+BuildArch: noarch
+BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define _appdir %{_datadir}/jquery/%{plugin}
+
+%description
+...
+
+%package demo
+Summary: Demo for jQuery.%{plugin}
+Summary(pl.UTF-8): Pliki demonstracyjne dla pakietu jQuery.%{plugin}
+Group: Development
+Requires: %{name} = %{version}-%{release}
+
+%description demo
+Demonstrations and samples for jQuery.%{plugin}.
+
+%prep
+%setup -qc
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_appdir},%{_examplesdir}/%{name}-%{version}}
+
+cp -p jquery.%{plugin}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.min.js
+ln -s %{plugin}-%{version}.min.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.js
+cp -p jquery.%{plugin}.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}-%{version}.src.js
+ln -s %{plugin}-%{version}.src.js $RPM_BUILD_ROOT%{_appdir}/%{plugin}.src.js
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%{_appdir}
================================================================
---- gitweb:
http://git.pld-linux.org/gitweb.cgi/projects/template-specs.git/commitdiff/912a46848802abafd0dfb32968039f5c05ce182c
More information about the pld-cvs-commit
mailing list