Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 852349 Details for
Bug 1055177
uglify-js should be using the proper system for packaging multiple npm versions
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Patch to update spec file
uglify-js.patch (text/plain), 2.66 KB, created by
Tom Hughes
on 2014-01-19 12:05:10 UTC
(
hide
)
Description:
Patch to update spec file
Filename:
MIME Type:
Creator:
Tom Hughes
Created:
2014-01-19 12:05:10 UTC
Size:
2.66 KB
patch
obsolete
>commit c6ed1a67e19a46191e3c2280c6a6ad7cabf20baf >Author: Tom Hughes <tom@compton.nu> >Date: Sun Jan 19 11:58:12 2014 +0000 > > use new multi-version packaging rules > >diff --git a/uglify-js.spec b/uglify-js.spec >index 7ccb2cb..b0e7770 100644 >--- a/uglify-js.spec >+++ b/uglify-js.spec >@@ -5,7 +5,7 @@ > > Name: uglify-js > Version: 2.2.5 >-Release: 2%{?dist} >+Release: 3%{?dist} > Summary: JavaScript parser, mangler/compressor and beautifier toolkit > BuildArch: noarch > >@@ -15,8 +15,10 @@ License: BSD > URL: https://github.com/mishoo/UglifyJS2 > Source0: http://registry.npmjs.org/uglify-js/-/uglify-js-%{version}.tgz > BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) >+BuildArch: noarch >+ExclusiveArch: %{nodejs_arches} noarch > >-BuildRequires: nodejs-devel >+BuildRequires: nodejs-packaging > > %if 0%{?enable_tests} > BuildRequires: npm(optimist) >@@ -55,29 +57,36 @@ rm -rf %buildroot > mkdir -p %{buildroot}%{_datadir}/%{name} > cp -pr lib/* %{buildroot}%{_datadir}/%{name}/ > >-mkdir -p %{buildroot}%{nodejs_sitelib}/%{name} >-cp -pr bin tools package.json %{buildroot}%{nodejs_sitelib}/%{name} >-ln -sf %{_datadir}/%{name} %{buildroot}%{nodejs_sitelib}/%{name}/lib >+mkdir -p %{buildroot}%{nodejs_sitelib}/uglify-js@2 >+cp -pr bin tools package.json %{buildroot}%{nodejs_sitelib}/uglify-js@2 >+ln -sf %{_datadir}/%{name} %{buildroot}%{nodejs_sitelib}/uglify-js@2/lib > > mkdir -p %{buildroot}%{_bindir} >-ln -sf ../lib/node_modules/uglify-js/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs >+ln -sf ../lib/node_modules/uglify-js@2/bin/uglifyjs %{buildroot}%{_bindir}/uglifyjs > > %nodejs_symlink_deps > >+ln -sf uglify-js@2 %{buildroot}%{nodejs_sitelib}/uglify-js >+ > %if 0%{?enable_tests} > %check >-mkdir -p node_modules >-ln -sf %{nodejs_sitelib}/source-map node_modules/source-map >-ln -sf %{nodejs_sitelib}/optimist node_modules/optimist >+%nodejs_symlink_deps --check > %__nodejs test/run-tests.js > %endif > > %clean > rm -rf %buildroot > >+%pretrans -p <lua> >+st = posix.stat("%{nodejs_sitelib}/uglify-js") >+if st and st.type == "directory" then >+ os.execute("rm -rf %{nodejs_sitelib}/uglify-js") >+end >+ > %files > %defattr(-,root,root,-) >-%{nodejs_sitelib}/%{name} >+%{nodejs_sitelib}/uglify-js >+%{nodejs_sitelib}/uglify-js@2 > %{_bindir}/uglifyjs > > %files common >@@ -86,6 +95,10 @@ rm -rf %buildroot > %doc README.md > > %changelog >+* Sun Jan 19 2014 Tom Hughes <tom@compton.nu> - 2.2.5-3 >+- use new multi-version packaging rules >+- update to latest nodejs packaging standards >+ > * Sun Aug 04 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.5-2 > - Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1055177
: 852349