Description of problem: The package creates bad symlinks when installed: [root@relrod-test SPECS]# ll /usr/lib/node_modules/typeahead.js total 4 lrwxrwxrwx. 1 root root 26 Jun 17 2015 dist -> /usr/share/javascript/dist -rw-r--r--. 1 root root 1459 Aug 8 2014 package.json lrwxrwxrwx. 1 root root 25 Jun 17 2015 src -> /usr/share/javascript/src The directories /usr/share/javascript/dist and /usr/share/javascript/src don't exist and should be /usr/share/javascript/typeahead.js/dist and /usr/share/javascript/typeahead.js/src respectively. Version-Release number of selected component (if applicable): nodejs-typeahead.js.noarch 0.10.5-3.fc23
Thanks for the repo. Just a dumb typo I made in the spec. --- a/nodejs-typeahead.js.spec +++ b/nodejs-typeahead.js.spec @@ -76,7 +76,7 @@ mkdir -p %{buildroot}%{_jsdir}/%{modname} cp -pr src/ dist/ %{buildroot}%{_jsdir}/%{modname}/ mkdir -p %{buildroot}%{nodejs_sitelib}/%{modname} cp -p package.json %{buildroot}%{nodejs_sitelib}/%{modname}/ -ln -s %{_jsdir}/src %{_jsdir}/dist %{buildroot}%{nodejs_sitelib}/%{modname}/ +ln -s %{_jsdir}/%{modname}/src %{_jsdir}/%{modname}/dist %{buildroot}%{nodejs_sitelib}/%{modname}/ %nodejs_symlink_deps %files Tests are unfortunately not executed in %check because they need a browser. I will see if I can at least require() the module in %check as a last resort kind of sanity check. But even more unfortunately, nodejs-typeahead.js FTBFS right now because of a separate bug in grunt-contrib-uglify: bug 1295295. :-(
(In reply to Dan Callaghan from comment #1) > Thanks for the repo. I mean, report.
(In reply to Dan Callaghan from comment #1) > Tests are unfortunately not executed in %check because they need a browser. > I will see if I can at least require() the module in %check as a last resort > kind of sanity check. Doesn't seem like I can, since it assumes _ and jQuery and window are defined... not even sure how this is supposed to work as an NPM module really...
At this point nodejs-typeahead.js is still FTBFS in F24 so I can only fix this in F25 and rawhide.
nodejs-typeahead.js-0.10.5-5.fc25 has been submitted as an update to Fedora 25. https://bodhi.fedoraproject.org/updates/FEDORA-2016-6ebab72d0d
nodejs-typeahead.js-0.10.5-5.fc25 has been pushed to the Fedora 25 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2016-6ebab72d0d
nodejs-typeahead.js-0.10.5-5.fc25 has been pushed to the Fedora 25 stable repository. If problems still persist, please make note of it in this bug report.