Blame SPECS/nodejs-qs.spec

35f26d
%{?scl:%scl_package nodejs-qs}
35f26d
%{!?scl:%global pkg_name %{name}}
35f26d
%{?nodejs_find_provides_and_requires}
35f26d
35f26d
%global enable_tests 0
35f26d
35f26d
Name:       %{?scl_prefix}nodejs-qs
35f26d
Version:    0.6.5
35f26d
Release:    4%{?dist}
35f26d
Summary:    Query string parser for Node.js
35f26d
# License text is included in Readme.md
35f26d
License:    MIT
35f26d
Group:      System Environment/Libraries
35f26d
URL:        https://github.com/visionmedia/node-querystring
35f26d
Source0:    http://registry.npmjs.org/qs/-/qs-%{version}.tgz
35f26d
# The test files are not included in the npm tarball.
35f26d
# Source1 is generated by running Source10, which pulls from the upstream
35f26d
# version control repository.
35f26d
Source1:    tests-%{version}.tar.bz2
35f26d
Source10:   dl-tests.sh
35f26d
35f26d
BuildArch:  noarch
35f26d
%if 0%{?fedora} >= 19
35f26d
ExclusiveArch: %{nodejs_arches} noarch
35f26d
%else
35f26d
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
35f26d
%endif
35f26d
35f26d
BuildRequires:  %{?scl_prefix}nodejs-devel
35f26d
35f26d
%if 0%{?enable_tests}
35f26d
BuildRequires:  npm(expect.js)
35f26d
BuildRequires:  npm(growl)
35f26d
BuildRequires:  npm(jade)
35f26d
BuildRequires:  npm(mocha)
35f26d
BuildRequires:  npm(querystring)
35f26d
%endif
35f26d
35f26d
%description
35f26d
This is a query string parser for node and the browser supporting nesting,
35f26d
as it was removed from 0.3.x, so this library provides the previous and
35f26d
commonly desired behavior (and twice as fast). Used by express, connect
35f26d
and others.
35f26d
35f26d
%prep
35f26d
%setup -q -n package
35f26d
%setup -q -T -D -a 1 -n package
35f26d
35f26d
%build
35f26d
#nothing to do
35f26d
35f26d
%install
35f26d
mkdir -p %{buildroot}%{nodejs_sitelib}/qs
35f26d
cp -pr package.json index.js \
35f26d
    %{buildroot}%{nodejs_sitelib}/qs
35f26d
35f26d
%nodejs_symlink_deps
35f26d
35f26d
35f26d
%if 0%{?enable_tests}
35f26d
35f26d
%check
35f26d
%nodejs_symlink_deps --check
35f26d
%{nodejs_sitelib}/mocha/bin/mocha --ui bdd
35f26d
%endif
35f26d
35f26d
%files
35f26d
%doc Readme.md
35f26d
%{nodejs_sitelib}/qs
35f26d
35f26d
%changelog
35f26d
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 0.6.5-4
35f26d
- replace provides and requires with macro
35f26d
35f26d
* Sun Jul 28 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.5-3
35f26d
- add ExclusiveArch logic
35f26d
35f26d
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.6.5-2
35f26d
- restrict to compatible arches
35f26d
35f26d
* Sat May 25 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.6.5-1
35f26d
- update to upstream release 0.6.5
35f26d
35f26d
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.5.6-2
35f26d
- add macro to enable dependency generation in EPEL
35f26d
35f26d
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.5.6-2
35f26d
- Add support for software collections
35f26d
35f26d
* Wed Apr 10 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.6-1
35f26d
- update to upstream release 0.5.6
35f26d
35f26d
* Fri Mar 22 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.5-1
35f26d
- update to upstream release 0.5.5
35f26d
35f26d
* Sat Mar 16 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.4-1
35f26d
- update to upstream release 0.5.4
35f26d
35f26d
* Wed Feb 20 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.3-3
35f26d
- fix typo in %%description
35f26d
35f26d
* Wed Feb 20 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.3-2
35f26d
- fix typo in %%summary
35f26d
35f26d
* Mon Feb 11 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.5.3-1
35f26d
- initial package