diff --git a/form-data-0.2.0.tar.gz b/form-data-0.2.0.tar.gz new file mode 100644 index 0000000000000000000000000000000000000000..bca0d044009f578375e8c2d87e631cc321f4cb73 Binary files /dev/null and b/form-data-0.2.0.tar.gz differ diff --git a/nodejs-form-data.spec b/nodejs-form-data.spec new file mode 100644 index 0000000000000000000000000000000000000000..28f0e011c71eb320f9494bd21683eb12cd5b82ba --- /dev/null +++ b/nodejs-form-data.spec @@ -0,0 +1,48 @@ +%{?nodejs_find_provides_and_requires} +%global enable_tests 0 +Name: nodejs-form-data +Version: 0.2.0 +Release: 1 +Summary: A module to create readable "multipart/form-data" streams +License: MIT +URL: https://github.com/form-data/form-data +Source0: https://github.com/form-data/form-data/archive/0.2/form-data-%{version}.tar.gz +BuildArch: noarch +ExclusiveArch: %{nodejs_arches} noarch +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +BuildRequires: nodejs-packaging +BuildRequires: npm(async) npm(combined-stream) npm(mime-types) +%if 0%{?enable_tests} +BuildRequires: npm(fake) npm(far) npm(formidable) npm(request) +%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 form-data-0.2 +%nodejs_fixdep async "^1.5.0" +%nodejs_fixdep mime-types "^2.1.7" +%nodejs_fixdep combined-stream "^1.0.5" + +%build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/form-data +cp -pr package.json lib %{buildroot}%{nodejs_sitelib}/form-data + +%check +%nodejs_symlink_deps --check +%__nodejs -e "require('./')" +%if 0%{?enable_tests} +%__nodejs test/run.js +%endif + +%files +%doc Readme.md +%license License +%{nodejs_sitelib}/form-data + +%changelog +* Thu Aug 20 2020 Anan Fu - 0.2.0-1 +- package init diff --git a/nodejs-form-data.yaml b/nodejs-form-data.yaml new file mode 100644 index 0000000000000000000000000000000000000000..7a01bb895db1e325a2ba394ebe87649c93ff2b1f --- /dev/null +++ b/nodejs-form-data.yaml @@ -0,0 +1,4 @@ +version_control: github +src_repo: form-data/form-data +tag_prefix: "^v" +seperator: "."