%{?scl:%scl_package nodejs-form-data}
%{!?scl:%global pkg_name %{name}}
%global enable_tests 0
%{?nodejs_find_provides_and_requires}
Name: %{?scl_prefix}nodejs-form-data
Version: 2.0.0
Release: 2%{?dist}
Summary: A module to create readable "multipart/form-data" streams
License: MIT
URL: https://github.com/form-data/form-data
Source0: http://registry.npmjs.org/form-data/-/form-data-%{version}.tgz
BuildRequires: %{?scl_prefix}nodejs-devel
BuildArch: noarch
%if 0%{?fedora} >= 19
ExclusiveArch: %{nodejs_arches} noarch
%else
ExclusiveArch: %{nodejs_arches} noarch
%endif
%description
A module to create readable "multipart/form-data" streams. Can be used to
submit forms and file uploads to other web applications.
%prep
%setup -q -n package
%build
#nothing to do
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/form-data
cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/form-data
%nodejs_symlink_deps
%if 0%{enable_tests}
%check
%nodejs_symlink_deps --check
%endif
%files
%{nodejs_sitelib}/form-data
%doc License README.md
%changelog
* Mon May 28 2018 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-2
- Resolves: RHBZ#1543198, rebuild for multiarch
* Thu Jan 05 2017 Zuzana Svetlikova <zsvetlik@redhat.com> - 2.0.0-1
- Updated with script
* Wed Sep 07 2016 Zuzana Svetlikova <zsvetlik@redhat.com>
- Updated with script, change URL
* Sun Feb 14 2016 Zuzana Svetlikova <zsvetlik@redhat.com> - 0.1.1-4
- rebuilt
* Tue Mar 04 2014 Tomas Hrcka <thrcka@redhat.com> - 0.1.1-3
- Add missing nodejs_symlink_deps macro
* Thu Oct 17 2013 Tomas Hrcka <thrcka@redhat.com> - 0.1.1-2
- replace provides and requires with macro
* Mon Aug 26 2013 Jamie Nguyen <jamielinux@fedoraproject.org> - 0.1.1-1
- update to upstream release 0.1.1
- add ExclusiveArch logic
* Tue Jul 30 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.1.0-1
- new upstream release 0.1.0
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.10-1
- new upstream release 0.0.10
* Sat Jun 22 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.7-3
- restrict to compatible arches
* Mon Apr 15 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.7-2
- add macro for EPEL6 dependency generation
* Fri Apr 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0.0.7-2
- Add support for software collections
* Wed Feb 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.7-1
- new upstream release 0.0.7
- combined-stream dep good now
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.6-4
- fix combined-stream dep for 0.0.4
* Sat Feb 09 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.6-3
- fix async dep for new version
* Mon Jan 14 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.6-2
- add missing dist macro to Release
* Thu Jan 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.6-1
- new upstream release 0.0.6
* Tue Jan 08 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.5-2
- add missing build section
* Mon Dec 31 2012 T.C. Hollingsworth <tchollingsworth@gmail.com> - 0.0.5-1
- initial package generated by npm2rpm