]> git.pld-linux.org Git - SPECS.git/blob - lessphp.spec
SPECS updated Sun 1 Aug 11:02:02 CEST 2021
[SPECS.git] / lessphp.spec
1 %define         php_min_version 5.1.0
2 Summary:        lessphp is a compiler for LESS written in PHP
3 Name:           lessphp
4 Version:        0.5.1
5 Release:        1
6 License:        MIT/GPL v3
7 Group:          Applications
8 Source0:        https://github.com/marcusschwarz/lesserphp/archive/v%{version}/lesserphp-%{version}.tar.gz
9 # Source0-md5:  d10869d75c1468b0e918a538f58076f1
10 Patch0:         fixes.patch
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}
15 Requires:       php(ctype)
16 Requires:       php(date)
17 Requires:       php(pcre)
18 BuildArch:      noarch
19 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
20
21 %description
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.
25
26 %prep
27 %setup -q -n lesserphp-%{version}
28 %patch0 -p1
29
30 %install
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}
35
36 %clean
37 rm -rf $RPM_BUILD_ROOT
38
39 %files
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
This page took 0.122888 seconds and 3 git commands to generate.