Projects
Kolab:3.4:Updates
roundcubemail-skin-chameleon
roundcubemail-skin-chameleon.spec
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File roundcubemail-skin-chameleon.spec of Package roundcubemail-skin-chameleon (Revision 6)
Currently displaying revision
6
,
Show latest
Name: roundcubemail-skin-chameleon Version: 0.3.1 Release: 1%{?dist} Summary: Kolab skin for Roundcube Group: Web/Applications License: CC-BY-SA URL: http://www.kolab.org Source0: http://mirror.kolabsys.com/pub/releases/%{name}-%{version}.tar.gz BuildArch: noarch %if 0%{?suse_version} < 1 BuildRequires: nodejs-less BuildRequires: uglify-js %endif BuildRequires: python Requires: roundcubemail(skin-chameleon) = %{?epoch:%%{epoch}:}%{version}-%{release} Requires: roundcubemail(skin-chameleon-assets) = %{?epoch:%%{epoch}:}%{version}-%{release} %description This package contains a Kolab Groupware skin for the Roundcube web mail interface. %package core Summary: Chameleon skin for Roundcube Group: Applications/Internet Requires: roundcubemail >= 1.1 Requires: roundcubemail(skin-larry) >= 1.1 Provides: roundcubemail(skin-chameleon) = %{?epoch:%%{epoch}:}%{version}-%{release} %description core Kolab skin for Roundcube %package assets Summary: Assets for the Chameleon skin Group: Applications/Internet Requires: roundcubemail(skin-larry-assets) >= 1.1 Provides: roundcubemail(skin-chameleon-assets) = %{?epoch:%%{epoch}:}%{version}-%{release} %description assets Assets for the Chameleon skin %prep %setup -q %build %install mkdir -p %{buildroot}/%{_datadir}/roundcubemail/skins/ cp -a skins/chameleon/ %{buildroot}/%{_datadir}/roundcubemail/skins/. orig_dir=%{buildroot}/%{_datadir}/roundcubemail/skins/chameleon/ asset_dir=%{buildroot}/%{_datadir}/roundcubemail/public_html/assets/skins/chameleon/ # Compile and compress the CSS for file in `find ${orig_dir} -type f -name "*.less" ! -name "colors.less" | grep -vE "${orig_dir}/(plugins|skins)/"`; do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|${orig_dir}|$asset_dir|g")) %{__mkdir_p} ${asset_loc} %{_bindir}/lessc -x ${file} > ${asset_loc}/$(basename ${file} .less).css && \ %{__rm} -rf ${file} || \ %{__mv} -v ${file} ${asset_loc}/$(basename ${file}) done # Compress the JS, but not the already minified for file in `find ${orig_dir} -type f -name "*.js" ! -name "*.min.js" | grep -vE "${orig_dir}/(plugins|skins)/"`; do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|${orig_dir}|$asset_dir|g")) %{__mkdir_p} ${asset_loc} uglifyjs ${file} > ${asset_loc}/$(basename ${file}) && \ %{__rm} -rf ${file} || \ %{__mv} -v ${file} ${asset_loc}/$(basename ${file}) done # The already minified JS can just be copied over to the assets location for file in `find ${orig_dir} -type f -name "*.min.js" | grep -vE "${orig_dir}/(plugins|skins)/"`; do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|${orig_dir}|$asset_dir|g")) %{__mkdir_p} ${asset_loc} %{__mv} -v ${file} ${asset_loc}/$(basename ${file}) done # Other assets for file in $(find ${orig_dir} -type f \ -name "*.eot" -o \ -name "*.gif" -o \ -name "*.ico" -o \ -name "*.jpg" -o \ -name "*.png" -o \ -name "*.svg" -o \ -name "*.swf" -o \ -name "*.tif" -o \ -name "*.ttf" -o \ -name "*.woff" | \ grep -vE "${orig_dir}/(plugins|skins)/" ); do asset_loc=$(dirname $(echo ${file} | %{__sed} -e "s|${orig_dir}|$asset_dir|g")) %{__mkdir_p} ${asset_loc} %{__mv} -vf ${file} ${asset_loc}/$(basename $file) done mv %{buildroot}/%{_datadir}/roundcubemail/skins/chameleon/watermark.html \ %{buildroot}/%{_datadir}/roundcubemail/public_html/assets/skins/chameleon/watermark.html %files %defattr(-,root,root,-) %files core %defattr(-,root,root,-) %if 0%{?suse_version} %dir %{_datadir}/roundcubemail/ %dir %{_datadir}/roundcubemail/skins/ %dir %{_datadir}/roundcubemail/public_html/ %dir %{_datadir}/roundcubemail/public_html/assets/ %dir %{_datadir}/roundcubemail/public_html/assets/skins/ %endif %{_datadir}/roundcubemail/skins/chameleon/ %files assets %{_datadir}/roundcubemail/public_html/assets/skins/chameleon/ %changelog * Wed Jan 7 2015 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3.1-1 - Multiple fixes for the Chameleon skin, see: https://issues.kolab.org/buglist.cgi?product=Chameleon Skin&target_milestone=0.3.1 * Fri Dec 19 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.3.0-1 - Multiple fixes for the Chameleon skin, see: https://issues.kolab.org/buglist.cgi?product=Chameleon Skin&target_milestone=0.3.0 * Tue Dec 9 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.2-1 - Some improvements and better icons * Sun Dec 7 2014 Jeroen van Meeuwen <vanmeeuwen@kolabsys.com> - 0.1-1 - First package
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.