From 8f8a1cfb55eea8f7ec7fd1873de0925cc63b6cfb Mon Sep 17 00:00:00 2001 From: Jared K. Smith Date: Oct 22 2015 20:56:32 +0000 Subject: Initial packaging --- diff --git a/.gitignore b/.gitignore index e69de29..43b1aba 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/2.1.7.tar.gz diff --git a/nodejs-mime-types.spec b/nodejs-mime-types.spec new file mode 100644 index 0000000..93c77d2 --- /dev/null +++ b/nodejs-mime-types.spec @@ -0,0 +1,59 @@ +%{?nodejs_find_provides_and_requires} + +%global packagename mime-types +%global enable_tests 1 + +Name: nodejs-mime-types +Version: 2.1.7 +Release: 1%{?dist} +Summary: The ultimate javascript content-type utility + +License: MIT +URL: https://github.com/jshttp/mime-types +Source0: https://github.com/jshttp/mime-types/archive/2.1.7.tar.gz + +ExclusiveArch: %{nodejs_arches} noarch +BuildArch: noarch + +BuildRequires: nodejs-packaging +%if 0%{?enable_tests} +BuildRequires: mocha +BuildRequires: npm(mime-db) +%endif + +Requires: nodejs + +%description +The ultimate javascript content-type utility + +%prep +%setup -q -n %{packagename}-%{version} + + +%build +# nothing to do! + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} +cp -pr package.json *.js \ + %{buildroot}%{nodejs_sitelib}/%{packagename} + +%nodejs_symlink_deps + +%if 0%{?enable_tests} +%check +%nodejs_symlink_deps --check +/usr/bin/mocha -R spec +%endif + + +%files +%doc README.md HISTORY.md +%license LICENSE +%{nodejs_sitelib}/%{packagename} + + + +%changelog +* Wed Oct 7 2015 Jared Smith - 2.1.7-1 +- Initial packaging diff --git a/sources b/sources index e69de29..5c59846 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +b96e83e25b48ffdd6be51be34bc05936 2.1.7.tar.gz