2 Summary: A comprehensive library for mime-type mapping
7 Group: Development/Libraries
8 Source0: http://registry.npmjs.org/%{pkg}/-/%{pkg}-%{version}.tgz
9 # Source0-md5: a96a25013bf4693868ceb6d75983174d
10 URL: https://github.com/broofa/node-mime
11 BuildRequires: rpmbuild(macros) >= 1.634
14 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17 Comprehensive MIME type mapping API. Includes all 600+ types and 800+
18 extensions defined by the Apache project, plus additional types
19 submitted by the node.js community.
26 rm -rf $RPM_BUILD_ROOT
28 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
29 cp -pr types %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
32 rm -rf $RPM_BUILD_ROOT
35 %defattr(644,root,root,755)
37 %{nodejs_libdir}/%{pkg}