File nodejs-jade.spec of Package nodejs-jade

Name:       nodejs-jade
Version:    0.28.1
Release:    1%{?dist}
Summary:    Jade template engine
License:    MIT
Group:      Development/Libraries
URL:        https://github.com/visionmedia/jade
Source0:    http://registry.npmjs.org/jade/-/jade-%{version}.tgz
Patch0:     relax-commander-dependency.patch
BuildRoot:  %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildArch:  noarch

BuildRequires:  nodejs-devel

%description
Jade is a high performance template engine heavily influenced by Haml and implemented with JavaScript for node. For discussion join the Google Group.

%prep
%setup -q -n package
%patch0 -p1

%build
#nothing to do

%install
rm -rf %{buildroot}

mkdir -p %{buildroot}%{nodejs_sitelib}/jade
cp -pr *.js package.json %{buildroot}%{nodejs_sitelib}/jade
cp -rf lib/ testing/ %{buildroot}%{nodejs_sitelib}/jade/
mkdir -p %{buildroot}%{_bindir}
cp -p bin/jade %{buildroot}%{_bindir}/jade


%nodejs_symlink_deps

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%{nodejs_sitelib}/jade
%{_bindir}/jade
%doc Readme.md LICENSE

%changelog
openSUSE Build Service is sponsored by