Группа :: Development/Tools
Пакет: lessjs
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
%define node_module lessjs
Name: lessjs
Version: 3.10.3
Release: alt1
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
# everything else is ASL 2.0
License: ASL 2.0 and BSD
Group: Development/Tools
Url: http://lesscss.org
BuildArch: noarch
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/less/less.js/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-production-%version.tar
# Use /usr/share paths instead of /usr/lib
# Remove pre-built files from the dist/ directory
BuildRequires: rpm-macros-nodejs
#BuildRequires: node
Requires: node
%description
LESS extends CSS with dynamic behavior such as variables, mixins,
operations and functions. LESS runs on both the client-side (Chrome,
Safari, Firefox) and server-side, with Node.js and Rhino.
%prep
%setup -a 1
%build
# Nothing to be built, we're just carrying around flat files
# TODO
#check
#make_build test
chmod a+rx bin/lessc
%install
mkdir -p %buildroot%_bindir
ln -sr %buildroot%nodejs_sitelib/%node_module/bin/lessc %buildroot%_bindir/lessc
mkdir -p %buildroot%nodejs_sitelib/%node_module/
cp -a * %buildroot/%nodejs_sitelib/%node_module/
#rm -rf %buildroot/%nodejs_sitelib/%node_module/docs/
%files
%doc LICENSE README.md
%_bindir/lessc
%nodejs_sitelib/%node_module/
%changelog
…
Полный changelog можно просмотреть здесь
Name: lessjs
Version: 3.10.3
Release: alt1
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
# everything else is ASL 2.0
License: ASL 2.0 and BSD
Group: Development/Tools
Url: http://lesscss.org
BuildArch: noarch
Packager: Vitaly Lipatov <lav at altlinux.ru>
# Source-url: https://github.com/less/less.js/archive/v%version.tar.gz
Source: %name-%version.tar
Source1: %name-production-%version.tar
# Use /usr/share paths instead of /usr/lib
# Remove pre-built files from the dist/ directory
BuildRequires: rpm-macros-nodejs
#BuildRequires: node
Requires: node
%description
LESS extends CSS with dynamic behavior such as variables, mixins,
operations and functions. LESS runs on both the client-side (Chrome,
Safari, Firefox) and server-side, with Node.js and Rhino.
%prep
%setup -a 1
%build
# Nothing to be built, we're just carrying around flat files
# TODO
#check
#make_build test
chmod a+rx bin/lessc
%install
mkdir -p %buildroot%_bindir
ln -sr %buildroot%nodejs_sitelib/%node_module/bin/lessc %buildroot%_bindir/lessc
mkdir -p %buildroot%nodejs_sitelib/%node_module/
cp -a * %buildroot/%nodejs_sitelib/%node_module/
#rm -rf %buildroot/%nodejs_sitelib/%node_module/docs/
%files
%doc LICENSE README.md
%_bindir/lessc
%nodejs_sitelib/%node_module/
%changelog
…
Полный changelog можно просмотреть здесь