]> git.pld-linux.org Git - SPECS.git/blob - nodejs-mime.spec
SPECS updated Sat 31 Jul 21:27:02 CEST 2021
[SPECS.git] / nodejs-mime.spec
1 %define         pkg     mime
2 Summary:        A comprehensive library for mime-type mapping
3 Name:           nodejs-%{pkg}
4 Version:        1.2.11
5 Release:        1
6 License:        MIT
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
12 Requires:       nodejs
13 BuildArch:      noarch
14 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
15
16 %description
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.
20
21 %prep
22 %setup -qc
23 mv package/* .
24
25 %install
26 rm -rf $RPM_BUILD_ROOT
27
28 install -d $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
29 cp -pr types %{pkg}.js package.json $RPM_BUILD_ROOT%{nodejs_libdir}/%{pkg}
30
31 %clean
32 rm -rf $RPM_BUILD_ROOT
33
34 %files
35 %defattr(644,root,root,755)
36 %doc README.md
37 %{nodejs_libdir}/%{pkg}
This page took 0.736928 seconds and 3 git commands to generate.