X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=plewww.spec;h=dc0dd4c6cc81ebb5222cbb3079fd42e87d80a587;hb=40f8bf1514ef4194dab680f60814ed7642bb5ae1;hp=d538c4cb5e79eb6ca8b33ce65df8dd35dd24306e;hpb=1a13d37898223fd91481994eef1a1b940cce735c;p=plewww.git diff --git a/plewww.spec b/plewww.spec index d538c4c..dc0dd4c 100644 --- a/plewww.spec +++ b/plewww.spec @@ -20,6 +20,7 @@ Group: Applications/Systems Source0: %{name}-%{version}.tar.gz BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root BuildArch: noarch +BuildRequires: python Vendor: OneLab Packager: OneLab @@ -57,8 +58,8 @@ This subset of the plewww package has general purpose features for the benefit o %setup -q %build -echo "There is no build stage for this component" -echo "All files just need to be installed as is from the codebase" +echo "Compressing javascript files" +make compress %install rm -rf $RPM_BUILD_ROOT @@ -71,7 +72,7 @@ rm -rf $RPM_BUILD_ROOT echo "* PLEWWW: Installing web pages" mkdir -p $RPM_BUILD_ROOT/var/www/html # exclude codebase just in case -rsync -a --exclude Makefile --exclude httpd --exclude \*.spec --exclude .svn ./ $RPM_BUILD_ROOT/var/www/html/ +rsync -a --exclude jsmin.py --exclude Makefile --exclude httpd --exclude \*.spec --exclude .svn ./ $RPM_BUILD_ROOT/var/www/html/ echo "* PLEWWW: Installing conf files for httpd" mkdir -p $RPM_BUILD_ROOT/etc/httpd/conf.d