[packages/htmlgrid-charisma] new, version 1.0.0

glen glen at pld-linux.org
Wed Apr 17 16:46:05 CEST 2013


commit b39ac567ca1f7f5215c233550653a1d1e2efebc7
Author: Elan Ruusamäe <glen at delfi.ee>
Date:   Wed Apr 17 17:45:12 2013 +0300

    new, version 1.0.0
    
    - cleaned up obvious duplicates
    - package just css/js/img

 apache.conf            |  12 ++++++
 htmlgrid-charisma.spec | 100 +++++++++++++++++++++++++++++++++++++++++++++++++
 lighttpd.conf          |   3 ++
 3 files changed, 115 insertions(+)
---
diff --git a/htmlgrid-charisma.spec b/htmlgrid-charisma.spec
new file mode 100644
index 0000000..a189689
--- /dev/null
+++ b/htmlgrid-charisma.spec
@@ -0,0 +1,100 @@
+Summary:	Charisma - free, responsive, multiple skin admin template
+Name:		htmlgrid-charisma
+Version:	1.0.0
+Release:	0.4
+License:	Apache v2.0
+Group:		Applications/WWW
+Source0:	https://github.com/usmanhalalit/charisma/archive/master.tar.gz?/charisma.tgz
+# Source0-md5:	b0278cac300ee0f6d22c957a124c4b0f
+Source1:	apache.conf
+Source2:	lighttpd.conf
+URL:		http://usman.it/free-responsive-admin-template/
+BuildRequires:	rpmbuild(macros) >= 1.268
+Requires:	webapps
+Requires:	webserver(access)
+Requires:	webserver(alias)
+BuildArch:	noarch
+BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%define		_webapps	/etc/webapps
+%define		_webapp		%{name}
+%define		_sysconfdir	%{_webapps}/%{_webapp}
+%define		_appdir		%{_datadir}/%{_webapp}
+
+%description
+Charisma is a fully featured, free, premium quality, responsive, HTML5
+admin template (or backend template) based on Bootstrap from Twitter,
+it comes with 9 different themes to suit your style and application
+type.
+
+%prep
+%setup -qc
+mv charisma-master/* .
+
+# samples
+rm -r img/gallery
+
+# jquery
+rm -v js/jquery{,-1.7.2.min}.js
+
+# jquery-datatables
+rm -v js/jquery.dataTables.min.js
+
+# jquery-history
+rm -v js/jquery.history.js
+
+# jquery-twitter-bootstrap
+rm -vf `grep 2.0.4 {css,js}/bootstrap-* -l`
+rm -v img/glyphicons-halflings*
+
+# jquery-cookie
+rm -v js/jquery.cookie.js
+
+# jquery-ui
+rm -v js/jquery-ui-1.8.21.custom.min.js
+rm -v css/jquery-ui-1.8.21.custom.css
+rm -vf img/ui-{bg_,icons_}*
+
+# jquery-uploadify
+rm -v js/jquery.uploadify-3.1.min.js
+rm -v img/uploadify-cancel.png
+rm -v css/uploadify.css
+
+%install
+rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT{%{_sysconfdir},%{_appdir}}
+cp -a js css img  $RPM_BUILD_ROOT%{_appdir}
+
+cp -p %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/apache.conf
+cp -p %{SOURCE2} $RPM_BUILD_ROOT%{_sysconfdir}/lighttpd.conf
+cp -p $RPM_BUILD_ROOT%{_sysconfdir}/{apache,httpd}.conf
+
+%triggerin -- apache1 < 1.3.37-3, apache1-base
+%webapp_register apache %{_webapp}
+
+%triggerun -- apache1 < 1.3.37-3, apache1-base
+%webapp_unregister apache %{_webapp}
+
+%triggerin -- apache < 2.2.0, apache-base
+%webapp_register httpd %{_webapp}
+
+%triggerun -- apache < 2.2.0, apache-base
+%webapp_unregister httpd %{_webapp}
+
+%triggerin -- lighttpd
+%webapp_register lighttpd %{_webapp}
+
+%triggerun -- lighttpd
+%webapp_unregister lighttpd %{_webapp}
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc README.md license.txt
+%dir %attr(750,root,http) %{_sysconfdir}
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/apache.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/httpd.conf
+%attr(640,root,root) %config(noreplace) %verify(not md5 mtime size) %{_sysconfdir}/lighttpd.conf
+%{_appdir}
diff --git a/apache.conf b/apache.conf
new file mode 100644
index 0000000..1cff060
--- /dev/null
+++ b/apache.conf
@@ -0,0 +1,12 @@
+Alias /themes/charisma /usr/share/htmlgrid-charisma
+<Directory /usr/share/htmlgrid-charisma>
+	# Apache 1.3 / 2.0
+	<IfModule mod_access.c>
+		Allow from all
+	</IfModule>
+	# Apache 2.2+
+	<IfModule mod_authz_host.c>
+		Allow from all
+	</IfModule>
+	Options +FollowSymLinks
+</Directory>
diff --git a/lighttpd.conf b/lighttpd.conf
new file mode 100644
index 0000000..cfcfafc
--- /dev/null
+++ b/lighttpd.conf
@@ -0,0 +1,3 @@
+alias.url += (
+	"/themes/charisma" => "/usr/share/htmlgrid-charisma",
+)
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/htmlgrid-charisma.git/commitdiff/b39ac567ca1f7f5215c233550653a1d1e2efebc7



More information about the pld-cvs-commit mailing list