LogoopenSUSE Build Service > Projects
Sign Up | Log In

View File url.spec of Package nodejs-url (Project home:gsfjohnson:hubot)

%{?nodejs_find_provides_and_requires}

%define module url
%define pkg_name nodejs-%{module}
%define version 0.10.3
%define release 1
%define buildroot %(mktemp -ud %{_tmppath}/%{module}-%{version}-%{release}-XXXXXX)

Name: %{pkg_name}
Version: %{version}
Release: %{release}
Summary: The core `url` packaged standalone for use with Browserify.

Group: Installation Script
License: MIT
Source: %{module}-%{version}.tgz
BuildRoot: %{buildroot}
BuildArch:  noarch
ExclusiveArch: %{ix86} x86_64 %{arm} noarch

Requires: nodejs

BuildRequires: nodejs
%{?el6:BuildRequires: npm}
#AutoReqProv: no

%description
The core `url` packaged standalone for use with Browserify.

%clean
rm -rf %{buildroot}

%prep
%setup -q -n package

%build
# Nothing needed here!

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{module}
cp -prv . %{buildroot}%{nodejs_sitelib}/%{module}

%nodejs_symlink_deps

%files
%defattr(644, root, root, 755)
%{nodejs_sitelib}/%{module}