Blame SPECS/nodejs-mime.spec

1237c8
%{?scl:%scl_package nodejs-mime}
1237c8
%{!?scl:%global pkg_name %{name}}
1237c8
%{?nodejs_find_provides_and_requires}
1237c8
1237c8
Name:           %{?scl_prefix}nodejs-mime
1237c8
Version:        1.2.11
1237c8
Release:        3%{?dist}
1237c8
Summary:        A comprehensive library for mime-type mapping
1237c8
1237c8
Group:          System Environment/Libraries
1237c8
License:        MIT
1237c8
URL:            https://github.com/broofa/node-mime
1237c8
Source0:        http://registry.npmjs.org/mime/-/mime-%{version}.tgz
1237c8
BuildRoot:      %{_tmppath}/%{pkg_name}-%{version}-%{release}-root-%(%{__id_u} -n)
1237c8
1237c8
BuildRequires:  %{?scl_prefix}nodejs-devel
1237c8
1237c8
BuildArch:  noarch
1237c8
%if 0%{?fedora} >= 19
1237c8
ExclusiveArch: %{nodejs_arches} noarch
1237c8
%else
1237c8
ExclusiveArch: %{ix86} x86_64 %{arm} noarch
1237c8
%endif
1237c8
1237c8
%description
1237c8
Comprehensive MIME type mapping API. Includes all 600+ types and 800+ extensions
1237c8
defined by the Apache project, plus additional types submitted by the node.js
1237c8
community.
1237c8
1237c8
%prep
1237c8
%setup -q -n package
1237c8
1237c8
%build
1237c8
#nothing to do
1237c8
1237c8
%install
1237c8
rm -rf %buildroot
1237c8
mkdir -p %{buildroot}%{nodejs_sitelib}/mime
1237c8
cp -pr package.json types mime.js %{buildroot}%{nodejs_sitelib}/mime
1237c8
%nodejs_symlink_deps
1237c8
1237c8
%clean
1237c8
rm -rf %buildroot
1237c8
1237c8
%files
1237c8
%defattr(-,root,root,-)
1237c8
%{nodejs_sitelib}/mime
1237c8
%doc LICENSE README.md
1237c8
1237c8
%changelog
1237c8
* Tue Mar 04 2014 Tomas Hrcka <thrcka@redhat.com> - 1.2.11-3
1237c8
- Add missing nodejs_symlink_deps macro
1237c8
1237c8
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 1.2.11-2
1237c8
- replace provides and requires with macro
1237c8
1237c8
* Mon Aug 26 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 1.2.11-1
1237c8
- update to upstream release 1.2.11
1237c8
- add ExclusiveArch logic
1237c8
1237c8
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.10-1
1237c8
- new upstream release 1.2.10
1237c8
1237c8
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.9-3
1237c8
- restrict to compatible arches
1237c8
1237c8
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.9-2
1237c8
- add macro for EPEL6 dependency generation
1237c8
1237c8
* Thu Apr 11 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.2.9-2
1237c8
- Add support for software collections
1237c8
1237c8
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.9-1
1237c8
- new upstream release 1.2.9
1237c8
1237c8
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.7-2
1237c8
- add missing build section
1237c8
- fix URL
1237c8
1237c8
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1.2.7-1
1237c8
- initial package generated by npm2rpm