Projects
Kolab:3.4
roundcubemail-plugins-kolab
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
Expand all
Collapse all
Changes of Revision 46
View file
roundcubemail-plugins-kolab.spec
Changed
@@ -22,28 +22,31 @@ %global roundcube_log %{_var}/log/roundcubemail %global roundcube_lib %{_var}/lib/roundcubemail -Name: roundcubemail-plugins-kolab -Version: 3.2 -Release: 0.4.dev20140624.gitb120d395%{?dist} -Summary: Kolab Groupware plugins for Roundcube Webmail +Name: roundcubemail-plugins-kolab +Version: 3.2 +Release: 0.4.dev20140624.gitb120d395%{?dist} +Summary: Kolab Groupware plugins for Roundcube Webmail -Group: Applications/Internet -License: AGPLv3+ and GPLv3+ -URL: http://www.kolab.org +Group: Applications/Internet +License: AGPLv3+ and GPLv3+ +URL: http://www.kolab.org # From git b120d3958fc934d3377fb15c15af8f666b2b00c5 -Source0: http://git.kolab.org/%{name}/snapshot/%{name}-%{version}.tar.gz -Source1: kolab_logo.png +Source0: http://git.kolab.org/%{name}/snapshot/%{name}-%{version}.tar.gz +Source1: kolab_logo.png -BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) -BuildArch: noarch +BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) +BuildArch: noarch -Requires: php-kolabformat >= 1.0 -Requires: php-kolab >= 0.5 -Requires: php-pear(HTTP_Request2) -Requires: roundcubemail >= 1.0 -Obsoletes: roundcubemail-kolab < %{version}-%{release} -Provides: roundcubemail-kolab = %{version}-%{release} +BuildRequires: python-cssmin +BuildRequires: uglify-js + +Requires: php-kolabformat >= 1.0 +Requires: php-kolab >= 0.5 +Requires: php-pear(HTTP_Request2) +Requires: roundcubemail >= 1.0 +Obsoletes: roundcubemail-kolab < %{version}-%{release} +Provides: roundcubemail-kolab = %{version}-%{release} %description A collection of Kolab Groupware plugins for Roundcube Webmail @@ -145,6 +148,32 @@ ln -s ../../../../..%{roundcube_conf}/tasklist.inc.php config.inc.php popd +# Compress the CSS +for file in `find %{buildroot}/%{roundcube} -type f -name "*.css"`; do + cat ${file} | python-cssmin > ${file}.min && mv -f ${file}.min ${file} +done + +# Compress the JS +for file in `find %{buildroot}/%{roundcube} -type f -name "*.js"`; do + uglifyjs ${file} > ${file}.min && mv -f ${file}.min ${file} +done + +# Fix anything executable that does not have a shebang +for file in `find %{buildroot}/%{roundcube} -type f -perm /a+x`; do + [ -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 644 $file +done + +# Find files with a shebang that do not have executable permissions +for file in `find %{buildroot}/%{roundcube} -type f ! -perm /a+x`; do + [ ! -z "`head -n 1 $file | grep \"^#!/\"`" ] && chmod -v 755 $file +done + +# Find files that have non-standard-executable-perm +find %{buildroot}/%{roundcube} -type f -perm /g+wx -exec chmod -v g-w {} \; + +# Find files that are not readable +find %{buildroot}/%{roundcube} -type f ! -perm /go+r -exec chmod -v go+r {} \; + %post if [ -f "%{php_inidir}/apc.ini" ]; then if [ ! -z "`grep apc.enabled=1 %{php_inidir}/apc.ini`" ]; then
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
.