[nodejs-mime/f18] initial import

T.C. Hollingsworth patches at fedoraproject.org
Mon Jan 14 18:48:10 UTC 2013


commit 88848d76c38739ab4a4b4927eca13be0628dde08
Author: T.C. Hollingsworth <tchollingsworth at gmail.com>
Date:   Mon Jan 14 11:47:54 2013 -0700

    initial import

 .gitignore       |    1 +
 nodejs-mime.spec |   45 +++++++++++++++++++++++++++++++++++++++++++++
 sources          |    1 +
 3 files changed, 47 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..71278d5 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/mime-1.2.7.tgz
diff --git a/nodejs-mime.spec b/nodejs-mime.spec
new file mode 100644
index 0000000..4def267
--- /dev/null
+++ b/nodejs-mime.spec
@@ -0,0 +1,45 @@
+Name:           nodejs-mime
+Version:        1.2.7
+Release:        2%{?dist}
+Summary:        A comprehensive library for mime-type mapping
+BuildArch:      noarch
+
+Group:          System Environment/Libraries
+License:        MIT
+URL:            https://github.com/broofa/node-mime
+Source0:        http://registry.npmjs.org/mime/-/mime-%{version}.tgz
+BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
+
+BuildRequires:  nodejs-devel
+
+%description
+Comprehensive MIME type mapping API. Includes all 600+ types and 800+ extensions
+defined by the Apache project, plus additional types submitted by the node.js
+community.
+
+%prep
+%setup -q -n package
+
+%build
+#nothing to do
+
+%install
+rm -rf %buildroot
+mkdir -p %{buildroot}%{nodejs_sitelib}/mime
+cp -pr package.json types mime.js %{buildroot}%{nodejs_sitelib}/mime
+
+%clean
+rm -rf %buildroot
+
+%files
+%defattr(-,root,root,-)
+%{nodejs_sitelib}/mime
+%doc LICENSE README.md
+
+%changelog
+* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.2.7-2
+- add missing build section
+- fix URL
+
+* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth at gmail.com> - 1.2.7-1
+- initial package generated by npm2rpm
diff --git a/sources b/sources
index e69de29..061bd71 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+2bc43b5c05224c5b334cf4d10e8728b5  mime-1.2.7.tgz


More information about the scm-commits mailing list