diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..8e1093a --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/mime-1.2.11.tgz diff --git a/.nodejs010-nodejs-mime.metadata b/.nodejs010-nodejs-mime.metadata new file mode 100644 index 0000000..2ac9e61 --- /dev/null +++ b/.nodejs010-nodejs-mime.metadata @@ -0,0 +1 @@ +58203eed86e3a5ef17aed2b7d9ebd47f0a60dd10 SOURCES/mime-1.2.11.tgz diff --git a/README.md b/README.md deleted file mode 100644 index ce46a88..0000000 --- a/README.md +++ /dev/null @@ -1,5 +0,0 @@ -\ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/nodejs-mime.spec b/SPECS/nodejs-mime.spec new file mode 100644 index 0000000..da375ec --- /dev/null +++ b/SPECS/nodejs-mime.spec @@ -0,0 +1,81 @@ +%{?scl:%scl_package nodejs-mime} +%{!?scl:%global pkg_name %{name}} +%{?nodejs_find_provides_and_requires} + +Name: %{?scl_prefix}nodejs-mime +Version: 1.2.11 +Release: 3%{?dist} +Summary: A comprehensive library for mime-type mapping + +Group: System Environment/Libraries +License: MIT +URL: https://github.com/broofa/node-mime +Source0: http://registry.npmjs.org/mime/-/mime-%{version}.tgz +BuildRoot: %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n) + +BuildRequires: %{?scl_prefix}nodejs-devel + +BuildArch: noarch +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + +%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 +%nodejs_symlink_deps + +%clean +rm -rf %buildroot + +%files +%defattr(-,root,root,-) +%{nodejs_sitelib}/mime +%doc LICENSE README.md + +%changelog +* Tue Mar 04 2014 Tomas Hrcka - 1.2.11-3 +- Add missing nodejs_symlink_deps macro + +* Thu Oct 17 2013 Tomas Hrcka - 1.2.11-2 +- replace provides and requires with macro + +* Mon Aug 26 2013 Jamie Nguyen - 1.2.11-1 +- update to upstream release 1.2.11 +- add ExclusiveArch logic + +* Tue Jul 30 2013 T.C. Hollingsworth - 1.2.10-1 +- new upstream release 1.2.10 + +* Sat Jun 22 2013 T.C. Hollingsworth - 1.2.9-3 +- restrict to compatible arches + +* Mon Apr 15 2013 T.C. Hollingsworth - 1.2.9-2 +- add macro for EPEL6 dependency generation + +* Thu Apr 11 2013 Stanislav Ochotnicky - 1.2.9-2 +- Add support for software collections + +* Sat Feb 09 2013 T.C. Hollingsworth - 1.2.9-1 +- new upstream release 1.2.9 + +* Tue Jan 08 2013 T.C. Hollingsworth - 1.2.7-2 +- add missing build section +- fix URL + +* Mon Dec 31 2012 T.C. Hollingsworth - 1.2.7-1 +- initial package generated by npm2rpm