Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:javihernandez:GPII:Cloud4all:Pilots2013
nodejs-connect
nodejs-connect.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File nodejs-connect.spec of Package nodejs-connect
%global enable_tests 0 Name: nodejs-connect Version: 2.7.3 Release: 3%{?dist} Summary: High performance middleware framework for Node.js License: MIT Group: System Environment/Libraries URL: https://github.com/senchalabs/connect Source0: http://registry.npmjs.org/connect/-/connect-%{version}.tgz # The test files are not included in the npm tarball. # Source1 is generated by running Source10, which pulls from the upstream # version control repository. Source1: tests-%{version}.tar.bz2 Source10: dl-tests.sh BuildArch: noarch BuildRequires: nodejs-devel %if 0%{?enable_tests} BuildRequires: npm(buffer-crc32) BuildRequires: npm(bytes) BuildRequires: npm(cookie) BuildRequires: npm(cookie-signature) BuildRequires: npm(debug) BuildRequires: npm(formidable) BuildRequires: npm(fresh) BuildRequires: npm(mocha) BuildRequires: npm(pause) BuildRequires: npm(qs) BuildRequires: npm(send) BuildRequires: npm(should) %endif %description Connect is an extensible HTTP server framework for node, providing high performance "plugins" known as middleware. Connect is bundled with over 20 commonly used middleware, including a logger, session support, cookie parser, and more. %prep %setup -q -n package %setup -T -D -a 1 -q -n package %nodejs_fixdep qs '0.5.x' %nodejs_fixdep buffer-crc32 '~0.1' %nodejs_fixdep bytes '~0.1' %nodejs_fixdep formidable '~1.0.11' %build #nothing to do %install mkdir -p %{buildroot}%{nodejs_sitelib}/connect # These non-javascript sources should be in %%{_datadir}. mkdir -p %{buildroot}%{_datadir}/%{name} cp -pr lib/public %{buildroot}%{_datadir}/%{name} rm -rf lib/public cp -pr package.json index.js lib/ \ %{buildroot}%{nodejs_sitelib}/connect ln -sf %{_datadir}/%{name}/public \ %{buildroot}%{nodejs_sitelib}/connect/lib/public %nodejs_symlink_deps %if 0%{?enable_tests} %check cp -pr %{nodejs_sitelib} . # Some of the tests require these to be present. mkdir docs ln -sf %{buildroot}%{_datadir}/%{name}/public lib/public NODE_ENV=test %{nodejs_sitelib}/mocha/bin/mocha \ --reporter dot --timeout 600 test/*.js %endif %files %doc LICENSE Readme.md %{nodejs_sitelib}/connect %{_datadir}/%{name} %changelog * Fri Mar 15 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.7.3-3 - make the versioned dependency on npm(formidable) less specific * Sat Mar 02 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.7.3-2 - move non-javascript sources from lib/public to %%{_datadir} - do not include lib-cov/ directory * Wed Feb 20 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.7.3-1 - update to upstream release 2.7.3 - remove nodejs-connect-2.7.2-deps.patch as it has now been applied upstream * Wed Feb 13 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.7.2-3 - make use of %%nodejs_fixdep * Tue Feb 12 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.7.2-2 - document how to retrieve tests * Mon Feb 11 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 2.7.2-1 - initial package
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor