1 %define php_min_version 5.1.0
2 Summary: lessphp is a compiler for LESS written in PHP
8 Source0: https://github.com/marcusschwarz/lesserphp/archive/v%{version}/lesserphp-%{version}.tar.gz
9 # Source0-md5: d10869d75c1468b0e918a538f58076f1
11 URL: http://leafo.net/lessphp/
12 BuildRequires: rpm-php-pearprov >= 4.4.2-11
13 Requires: /usr/bin/php
14 Requires: php(core) >= %{php_min_version}
19 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
22 lessphp is a compiler that generates CSS from a small superset
23 language that adds many additional features seen in other languages.
24 It is based off an original Ruby implementation called LESS.
27 %setup -q -n lesserphp-%{version}
31 rm -rf $RPM_BUILD_ROOT
32 install -d $RPM_BUILD_ROOT{%{_bindir},%{php_data_dir}}
33 install -p plessc $RPM_BUILD_ROOT%{_bindir}
34 cp -p lessc.inc.php $RPM_BUILD_ROOT%{php_data_dir}
37 rm -rf $RPM_BUILD_ROOT
40 %defattr(644,root,root,755)
41 %doc LICENSE README.md
42 %attr(755,root,root) %{_bindir}/plessc
43 %{php_data_dir}/lessc.inc.php