From 727e5daf7c7403de3f77bf556ca82b1d33eb0419 Mon Sep 17 00:00:00 2001 From: Piotr Popieluch Date: Feb 19 2017 16:29:40 +0000 Subject: Update to latest 0.x release --- diff --git a/.gitignore b/.gitignore index 16f18a4..2167214 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,2 @@ /showdown-0.3.1.tgz +/showdown-0.5.4.tgz diff --git a/nodejs-showdown.spec b/nodejs-showdown.spec index 0858b44..5093c92 100644 --- a/nodejs-showdown.spec +++ b/nodejs-showdown.spec @@ -1,24 +1,21 @@ -%{?nodejs_find_provides_and_requires} - %global enable_tests 1 Name: nodejs-showdown -Version: 0.3.1 -Release: 9%{?dist} +Version: 0.5.4 +Release: 1%{?dist} Summary: A JavaScript port of the original Perl version of Markdown License: BSD -Group: System Environment/Libraries URL: https://github.com/coreyti/showdown -Source0: http://registry.npmjs.org/showdown/-/showdown-%{version}.tgz +Source0: https://registry.npmjs.org/showdown/-/showdown-%{version}.tgz BuildArch: noarch -%if 0%{?fedora} >= 19 ExclusiveArch: %{nodejs_arches} noarch -%else -ExclusiveArch: %{ix86} x86_64 %{arm} noarch -%endif BuildRequires: nodejs-packaging +#BuildRequires: npm(grunt-cli) +#BuildRequires: npm(grunt-contrib-concat) +#BuildRequires: npm(grunt-contrib-uglify) +#BuildRequires: npm(grunt-simple-mocha) %if 0%{?enable_tests} BuildRequires: npm(mocha) @@ -30,13 +27,14 @@ BuildRequires: npm(should) %prep -%setup -q -n package +%autosetup -n package # Fix wrong-file-end-of-line-encoding rpmlint warnings. -sed -i -e 's/\r//' license.txt example/showdown-gui.js README.md - +sed -i -e 's/\r//' license.txt example/showdown-gui.js README.md example/syntax.txt +#rm -rf compressed %build -#nothing to do +#%%nodejs_symlink_deps --build +#grunt %install @@ -47,19 +45,24 @@ cp -pr package.json compressed/ src/ \ %nodejs_symlink_deps -%if 0%{?enable_tests} %check %nodejs_symlink_deps --check +%{__nodejs} -e 'require("./")' +%if 0%{?enable_tests} %{nodejs_sitelib}/mocha/bin/mocha --require should --ui bdd %endif %files -%doc license.txt README.md example/ +%doc README.md example/ +%license license.txt %{nodejs_sitelib}/showdown %changelog +* Sun Feb 19 2017 Piotr Popieluch - 0.5.4-1 +- Update to latest 0.x release + * Fri Feb 10 2017 Fedora Release Engineering - 0.3.1-9 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild diff --git a/sources b/sources index b01e5c9..918fa03 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -d45dfc791c6002b40f734b865d81dafb showdown-0.3.1.tgz +SHA512 (showdown-0.5.4.tgz) = 5a7dbff36d2bce640d3c8794cf5fd6feb1869d979d8c0a0006dcfff51f5505e71fcec17cf9b7545089967b5bf7527508c2f4ac78e57c3e0461dca4673489a0ed