Blob Blame History Raw
%global npm_name mongodb

Summary:       A node driver for MongoDB
Name:          nodejs-%{npm_name}
Version:       1.3.19
Release:       2%{?dist}
Group:         Development/Languages
License:       ASL 2.0
URL:           https://github.com/mongodb/node-mongodb-native
Source0:       http://registry.npmjs.org/%{npm_name}/-/%{npm_name}-%{version}.tgz
BuildRequires: nodejs-devel
BuildArch:     noarch

%description
This is a node driver for MongoDB. It's a port (or close to a port) of
the library for ruby at http://github.com/mongodb/mongo-ruby-driver

%prep
%setup -q -n package
%nodejs_fixdep bson '>=0.2.2'

%build
#nothing to do

%install
mkdir -p %{buildroot}%{nodejs_sitelib}/%{npm_name}
cp -pr index.js lib package.json t.js %{buildroot}%{nodejs_sitelib}/%{npm_name}

#Cleanup permissions
chmod 644 %{buildroot}%{nodejs_sitelib}/%{npm_name}/*.js
chmod 644 %{buildroot}%{nodejs_sitelib}/%{npm_name}/*.json

%files
%doc CONTRIBUTING.md LICENSE Readme.md
%{nodejs_sitelib}/%{npm_name}

%changelog
* Wed Jan 08 2014 Troy Dawson <tdawson@redhat.com> - 1.3.19-2
- Fix bson dependancy

* Thu Oct 03 2013 Troy Dawson <tdawson@redhat.com> - 1.3.19-1
- Updated to version 1.3.19

* Fri Aug 09 2013 Troy Dawson <tdawson@redhat.com> - 1.3.17-1
- Updated to version 1.3.17
- Package using the new Fedora guidelines

* Wed Jul 24 2013 Troy Dawson <tdawson@redhat.com> - 1.3.12-1
- Updated to version 1.3.12

* Wed Apr 17 2013 Haibo Lin <hlin@redhat.com> - 1.2.14-1
- Build under eng-rhel-6 and update to upstream version 1.2.14

* Thu Feb 16 2012 Troy Dawson <tdawson@redhat.com> - 0.9.9.1-1
- Initial build