diff --git a/.gitignore b/.gitignore index e69de29..409ce22 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/caniuse-db-1.0.20140717.tgz diff --git a/nodejs-caniuse-db.spec b/nodejs-caniuse-db.spec new file mode 100644 index 0000000..a6a045e --- /dev/null +++ b/nodejs-caniuse-db.spec @@ -0,0 +1,58 @@ +# This macro is needed at the start for building on EL6 +%{?nodejs_find_provides_and_requires} + +%global barename caniuse-db + +Name: nodejs-caniuse-db +Version: 1.0.20140717 +Release: 1%{?dist} +Summary: Raw browser/feature support data from caniuse.com + +Group: Development/Libraries +License: CC-BY +URL: https://www.npmjs.org/package/caniuse-db +Source0: http://registry.npmjs.org/%{barename}/-/%{barename}-%{version}.tgz +BuildArch: noarch + +%if 0%{?fedora} >= 19 +ExclusiveArch: %{nodejs_arches} noarch +%else +ExclusiveArch: %{ix86} x86_64 %{arm} noarch +%endif + + +BuildRequires: nodejs-packaging >= 6 + +%description +This repo contains raw data from the caniuse.com support tables. It servers +two purposes: + +%prep +%setup -q -n package + +# Remove bundled node_modules if there are any.. +rm -rf node_modules/ + +%nodejs_fixdep --caret + +%build +%nodejs_symlink_deps --build + +%install +mkdir -p %{buildroot}%{nodejs_sitelib}/caniuse-db +cp -pr package.json \ + %{buildroot}%{nodejs_sitelib}/caniuse-db + +%nodejs_symlink_deps + +%files +%doc README.md +%{nodejs_sitelib}/caniuse-db/ + +%changelog +* Mon Jul 21 2014 Ralph Bean - 1.0.20140717-1 +- Latest upstream. +- Specify noarch. + +* Tue Jul 08 2014 Ralph Bean - 1.0.20140702-1 +- Initial packaging for Fedora. diff --git a/sources b/sources index e69de29..15a6f63 100644 --- a/sources +++ b/sources @@ -0,0 +1 @@ +9791db14a7c950d56f92355afd3e5059 caniuse-db-1.0.20140717.tgz