The package rpms/nodejs-less.git has added or updated architecture specific content in
its
spec file (ExclusiveArch/ExcludeArch or %ifarch/%ifnarch) in commit(s):
https://src.fedoraproject.org/cgit/rpms/nodejs-less.git/commit/?id=42d7eb...
https://src.fedoraproject.org/cgit/rpms/nodejs-less.git/commit/?id=a9c10d...
https://src.fedoraproject.org/cgit/rpms/nodejs-less.git/commit/?id=763093...
https://src.fedoraproject.org/cgit/rpms/nodejs-less.git/commit/?id=30492f....
Change:
+ExclusiveArch: %{nodejs_arches} noarch
-ExclusiveArch: %{nodejs_arches} noarch
-ExclusiveArch: %{nodejs_arches} noarch
+ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change:
============
commit 508519cd8996df57b2a6db8fa7bd6fe322e61e49
Merge: b61aa34 42d7eb4
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed Mar 2 10:25:16 2022 -0500
Merge branch 'rawhide' into epel7
commit 42d7eb47591a8a7c4672b7944471b196e9dcafbf
Author: Tomas Hrcka <thrcka(a)redhat.com>
Date: Tue Mar 1 10:55:30 2022 +0100
Unretirement request:
https://pagure.io/releng/issue/10675
diff --git a/.gitignore b/.gitignore
new file mode 100644
index 0000000..33ebfbc
--- /dev/null
+++ b/.gitignore
@@ -0,0 +1,19 @@
+/less-1.3.3.tgz
+/less-1.4.0.tgz
+/less-1.4.1.tgz
+/less-1.5.0.tgz
+/less-1.5.1.tgz
+/less-1.6.0.tgz
+/less-1.6.1.tgz
+/less-1.6.3.tgz
+/less-1.7.0.tgz
+/less-1.7.5.tgz
+/less-2.6.1.tgz
+/less-2.7.1.tgz
+/less-2.7.2.tgz
+/less-3.8.1.tgz
+/less-3.9.0.tgz
+/less-3.10.0.tgz
+/less-3.10.1.tgz
+/less-3.10.2.tgz
+/less-3.10.3.tgz
diff --git a/dead.package b/dead.package
deleted file mode 100644
index 5204a84..0000000
--- a/dead.package
+++ /dev/null
@@ -1 +0,0 @@
-Orphaned for 6+ weeks
diff --git a/nodejs-less-mime2.patch b/nodejs-less-mime2.patch
new file mode 100644
index 0000000..92317b2
--- /dev/null
+++ b/nodejs-less-mime2.patch
@@ -0,0 +1,70 @@
+commit 1cbb465aa92f7cb903f7900e0e43cc08294fc649
+Author: Tom Hughes <tom(a)compton.nu>
+Date: Thu Sep 20 18:55:15 2018 +0100
+
+ Update for npm(mime) version 2.x
+
+diff --git a/bin/lessc b/bin/lessc
+index 0ffe6dbc..11c11d45 100644
+--- a/bin/lessc
++++ b/bin/lessc
+@@ -180,10 +180,10 @@ var environment = {
+ return buffer.toString('base64');
+ },
+ mimeLookup: function mimeLookup(filename) {
+- return require('mime').lookup(filename);
++ return require('mime').getType(filename);
+ },
+ charsetLookup: function charsetLookup(mime) {
+- return require('mime').charsets.lookup(mime);
++ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8' :
null;
+ },
+ getSourceMapGenerator: function getSourceMapGenerator() {
+ return require('source-map').SourceMapGenerator;
+diff --git a/dist/less.cjs.js b/dist/less.cjs.js
+index 41b01742..cfc307e9 100644
+--- a/dist/less.cjs.js
++++ b/dist/less.cjs.js
+@@ -11,10 +11,10 @@ var environment = {
+ return buffer.toString('base64');
+ },
+ mimeLookup: function mimeLookup(filename) {
+- return require('mime').lookup(filename);
++ return require('mime').getType(filename);
+ },
+ charsetLookup: function charsetLookup(mime) {
+- return require('mime').charsets.lookup(mime);
++ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8' :
null;
+ },
+ getSourceMapGenerator: function getSourceMapGenerator() {
+ return require('source-map').SourceMapGenerator;
+diff --git a/lib/less-node/environment.js b/lib/less-node/environment.js
+index a9b790c9..a24cf481 100644
+--- a/lib/less-node/environment.js
++++ b/lib/less-node/environment.js
+@@ -5,10 +5,10 @@ export default {
+ return buffer.toString('base64');
+ },
+ mimeLookup: function (filename) {
+- return require('mime').lookup(filename);
++ return require('mime').getType(filename);
+ },
+ charsetLookup: function (mime) {
+- return require('mime').charsets.lookup(mime);
++ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8'
: null;
+ },
+ getSourceMapGenerator: function getSourceMapGenerator() {
+ return require('source-map').SourceMapGenerator;
+diff --git a/package.json b/package.json
+index b9887fcf..50599f21 100644
+--- a/package.json
++++ b/package.json
+@@ -42,7 +42,7 @@
+ "errno": "^0.1.1",
+ "graceful-fs": "^4.1.2",
+ "image-size": "~0.5.0",
+- "mime": "^1.4.1",
++ "mime": "^2.0.0",
+ "mkdirp": "^0.5.0",
+ "promise": "^7.1.1",
+ "request": "^2.83.0",
diff --git a/nodejs-less.spec b/nodejs-less.spec
new file mode 100644
index 0000000..8da1e47
--- /dev/null
+++ b/nodejs-less.spec
@@ -0,0 +1,474 @@
+%{?nodejs_find_provides_and_requires}
+
+Name: nodejs-less
+Version: 3.10.3
+Release: 5%{?dist}
+Summary: Less.js The dynamic stylesheet language
+
+# cssmin.js is licensed under BSD license
+# everything else is ASL 2.0
+License: ASL 2.0 and BSD
+URL:
http://lesscss.org
+Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
+Patch0: nodejs-less-mime2.patch
+BuildArch: noarch
+ExclusiveArch: %{nodejs_arches} noarch
+
+BuildRequires: nodejs-packaging
+
+BuildRequires: npm(clone)
+BuildRequires: npm(image-size)
+BuildRequires: npm(less-plugin-clean-css)
+BuildRequires: npm(mime)
+BuildRequires: npm(source-map)
+
+Provides: lessjs = %{version}-%{release}
+Obsoletes: lessjs < 1.3.3-2
+
+
+%description
+LESS extends CSS with dynamic behavior such as variables, mixins, operations
+and functions. LESS runs on both the client-side (Chrome, Safari, Firefox)
+and server-side, with Node.js and Rhino.
+
+
+%prep
+%autosetup -p 1 -n package
+%nodejs_fixdep clone "^1.0.2"
+%nodejs_fixdep --optional --remove errno
+%nodejs_fixdep --optional --remove mkdirp
+%nodejs_fixdep --optional image-size "^0.6.3"
+%nodejs_fixdep --optional promise "^8.0.1"
+%nodejs_fixdep --optional request "^2.67.0"
+%nodejs_fixdep --optional source-map "^0.5.6"
+rm -rf node_modules
+
+
+%build
+# Nothing to be built, we're just carrying around flat files
+
+
+%check
+%nodejs_symlink_deps --check --optional
+rm test/less/import-module.less
+rm test/css/3rd-party/*.css
+rm test/less/3rd-party/*.less
+%{__nodejs} test
+
+
+%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/less
+cp -pr package.json index.js dist lib %{buildroot}/%{nodejs_sitelib}/less
+mkdir -p %{buildroot}%{nodejs_sitelib}/less/bin
+install -m755 -p bin/lessc %{buildroot}%{nodejs_sitelib}/less/bin
+mkdir -p %{buildroot}%{_bindir}
+ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
+%nodejs_symlink_deps
+
+
+%files
+%doc README.md CHANGELOG.md CONTRIBUTING.md
+%license LICENSE
+%{_bindir}/lessc
+%{nodejs_sitelib}/less
+
+
+%changelog
+* Sat Aug 01 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-5
+- Second attempt - Rebuilt for
+
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Tue Jul 28 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
+* Wed Jan 29 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
+* Thu Oct 31 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-2
+- Install lessc with executable permission
+
+* Fri Aug 23 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-1
+- Update to 3.10.3 upstream release
+
+* Wed Aug 21 2019 Tom Hughes <tom(a)compton.nu> - 3.10.2-1
+- Update to 3.10.2 upstream release
+
+* Tue Aug 20 2019 Tom Hughes <tom(a)compton.nu> - 3.10.1-1
+- Update to 3.10.1 upstream release
+
+* Fri Jul 26 2019 Tom Hughes <tom(a)compton.nu> - 3.9.0-1
+- Update to 3.9.0 upstream release
+
+* Thu Jul 25 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
+* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
+* Thu Sep 20 2018 Tom Hughes <tom(a)compton.nu> - 3.8.1-1
+- Update to 3.8.1 upstream release
+
+* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-6
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
+* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 2.7.2-5
+- Escape macros in %%changelog
+
+* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
+* Thu Jul 27 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
+* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
+* Thu Jan 19 2017 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.2-1
+- Update to 2.7.2
+
+* Tue May 10 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.1-1
+- Update to 2.7.1
+- Compatibility with Node.js 6.x
+-
https://github.com/less/less.js/blob/v2.7.1/CHANGELOG.md
+
+* Fri Apr 08 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-2
+- Fix missing lib components
+- Add basic test for lessc
+- Drop unused patches
+- Resolves# RHBZ#1324883
+
+* Tue Mar 29 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-1
+- Upgrade to latest upstream stable release 2.6.1
+-
https://github.com/less/less.js/blob/v2.6.1/CHANGELOG.md
+
+* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.7.5-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.5-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
+* Thu Sep 04 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.5-1
+- New upstream release 1.7.5
+-
https://github.com/less/less.js/blob/v1.7.5/CHANGELOG.md
+- Enable tests in RPM build
+- Disable broken source-map test
+
+* Mon Jun 23 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.3-1
+- New upstream release 1.7.3
+-
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
+- Fix detection of recursive mixins
+- Fix the paths option for later versions of node (0.10+)
+- Fix paths joining bug
+- Fix a number precision issue on some versions of node
+- Fix an IE8 issue with importing css files
+- Fix IE11 detection for xhr requests
+- Modify var works if the last line of a less file is a comment.
+- Better detection of valid hex colour codes
+- Some stability fixes to support a low number of available file handles
+- Support comparing values with different quote types e.g.
+ "test" now === 'test'
+- Give better error messages if accessing a url that returns a non 200 status
+ code
+- Fix the e() function when passed empty string
+- Several minor bug fixes
+-
https://github.com/less/less.js/blob/v1.7.2/CHANGELOG.md
+- Allow paths option to be a string (in 1.7.1 less started throwing an
+ exception instead of incorrectly processing the string as an array of chars)
+- Do not round numbers when used with javascript (introduced 1.7.0)
+-
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
+- Do not round the results of color functions, like lightness, hue, luma etc.
+- Support cover and contain keywords in background definitions
+
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
+* Wed Mar 05 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.0-1
+- New upstream release 1.7.0
+-
https://github.com/less/less.js/blob/v1.7.0/CHANGELOG.md
+- Add support for rulesets in variables and passed to mixins to allow wrapping
+- Change luma to follow the w3c spec, luma is available as luminance. Contrast
+ still uses luma so you may see differences if your threshold % is close to
+ the existing calculated luma.
+- Upgraded clean css which means the --selectors-merge-mode is now renamed
+ --compatibility
+- Add support for using variables with @keyframes, @namespace, @charset
+- Support property merging with +_ when spaces are needed and keep + for comma
+ separated
+- Imports now always import once consistently- a race condition meant
+ previously certain configurations would lead to a different ordering of
+ files
+- Fix support for `.mixin(@args...)` when called with no args (e.g.
+ `.mixin();`)
+- Do unit conversions with min and max functions. Don't pass through if not
+ understood, throw an error
+- Allow % to be passed on its own to the unit function e.g. `unit(10, %%)`
+- Fix a bug when comparing a unit value to a non-unit value if the unit-value
+ was the multiple of another unit (e.g. cm, mm, deg etc.)
+- Fix mixins with media queries in import reference files not being put into
+ the output (they now output, they used to incorrectly not)
+- Fix lint mode- now reports all errors
+- Fixed a small scope issue with & {} selector rulesets incorrectly making
+ mixins visible- regression from 1.6.2
+- Browser- added log level "debug" at 3 to get less logging, The default has
+ changed so unless you set the value to the default you won't see a
+ difference
+- Browser- logLevel takes effect regardless of the environment (production/dev)
+- Browser- added postProcessor option, a function called to post-process the
+ css before adding to the page
+- Browser- use the right request for file access in IE
+
+* Tue Feb 25 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.6.3-1
+- New upstream release 1.6.3
+-
https://github.com/less/less.js/blob/v1.6.3/CHANGELOG.md
+- Fix issue with calling toCSS twice not working in some situations (like with
+ bootstrap 2)
+- The Rhino release is fixed!
+- ability to use uppercase colours
+- Fix a nasty bug causing syntax errors when selector interpolation is preceded
+ by a long comment (and some other cases)
+- Fix a major bug with the variable scope in guards on selectors (e.g. not
+ mixins)
+- Fold in & when () { to the current selector rather than duplicating it
+- fix another issue with array prototypes
+- add a url-args option which adds a value to all urls (for cache busting)
+- Round numbers to 8 decimal places - thereby stopping javascript precision
+ errors
+- some improvements to the default() function in more complex scenarios
+- improved missing '{' and '(' detection
+
+* Mon Jan 13 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.1-1
+- New upstream release 1.6.1
+-
https://github.com/less/less.js/blob/v1.6.1/CHANGELOG.md
+- support ^ and ^^ shadow dom selectors
+- fix sourcemap selector (used to report end of the element or selector) and
+ directive position (previously not supported)
+- fix parsing empty less files
+- error on (currently) ambiguous guards on multiple css selectors
+- older environments - protect against typeof regex returning function
+- Do not use default keyword
+- use innerHTML in tests, not innerText
+- protect for-in in case Array and Object prototypes have custom fields
+
+* Thu Jan 02 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.0-1
+- New upstream release 1.6.0
+-
https://github.com/less/less.js/blob/v1.6.0/CHANGELOG.md
+- Properties can be interpolated, e.g. @{prefix}-property: value;
+- a default function has been added only valid in mixin definitions to
+ determine if no other mixins have been matched
+- Added a plugins option that allows specifying an array of visitors run on the
+ less AST
+- Performance improvements that may result in approx 20-40% speed up
+- Javascript evaluations returning numbers can now be used in
+ calculations/functions
+- fixed issue when adding colours, taking the alpha over 1 and breaking when
+ used in colour functions
+- when adding together 2 colours with non zero alpha, the alpha will now be
+ combined rather than added
+- the advanced colour functions no longer ignore transparency, they blend that
+ too
+- Added --clean-option and cleancssOptions to allow passing in clean css
+ options
+- rgba declarations are now always clamped e.g. rgba(-1,258,258, -1) becomes
+ rgba(0, 255, 255, 0)
+- Fix possible issue with import reference not bringing in styles (may not be a
+ bugfix, just a code tidy)
+- Fix some issues with urls() being prefixed twice and unquoted urls in mixins
+ being processed each time they are called
+- Fixed error messages for undefined variables in javascript evaluation
+- Fixed line/column numbers from math errors
+
+* Tue Nov 26 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.1-1
+- New upstream release 1.5.1
+-
https://github.com/less/less.js/blob/v1.5.1/CHANGELOG.md
+- Added source-map-URL option
+- Fixed a bug which meant the minimised 1.5.0 browser version was not wrapped,
+ meaning it interfered with require js
+- Fixed a bug where the browser version assume port was specified
+- Added the ability to specify variables on the command line
+- Upgraded clean-css and fixed it from trying to import
+- correct a bug meaning imports weren't synchronous (syncImport option
+ available for full synchronous behaviour)
+- better mixin matching behaviour with calling multiple classes e.g. .a.b.c;
+
+* Tue Oct 22 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.0-1
+- New upstream release 1.5.0
+-
https://github.com/less/less.js/blob/v1.5.0/CHANGELOG.md
+- sourcemap support
+- support for import inline option to include css that you do NOT want less to
+ parse e.g. `@import (inline) "file.css";`
+- better support for modifyVars (refresh styles with new variables, using a
+ file cache), is now more resiliant
+- support for import reference option to reference external css, but not output
+ it. Any mixin calls or extend's will be output.
+- support for guards on selectors (currently only if you have a single
+ selector)
+- allow property merging through the +: syntax
+- Added min/max functions
+- Added length function and improved extract to work with comma seperated
+ values
+- when using import multiple, sub imports are imported multiple times into
+ final output
+- fix bad spaces between namespace operators
+- do not compress comment if it begins with an exclamation mark
+- Fix the saturate function to pass through when using the CSS syntax
+- Added svg-gradient function
+- Added no-js option to lessc (in browser, use javascriptEnabled: false) which
+ disallows JavaScript in less files
+- switched from the little supported and buggy cssmin (previously ycssmin) to
+ clean-css
+- support transparent as a color, but not convert between rgba(0, 0, 0, 0) and
+ transparent
+- remove sys.puts calls to stop deprecation warnings in future node.js releases
+- Browser: added logLevel option to control logging (2 = everything, 1 = errors
+ only, 0 = no logging)
+- Browser: added errorReporting option which can be "html" (default) or
+ "console" or a function
+- Now uses grunt for building and testing
+- A few bug fixes for media queries, extends, scoping, compression and import
+ once.
+- if you don't pass a strict maths option, font size/line height options are
+ output correctly again
+- npmignore now include .gitattributes
+- property names may include capital letters
+- various windows path fixes (capital letters, multiple // in a path)
+
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.4.1-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
+* Fri Jul 05 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.1-1
+- New upstream release 1.4.1
+-
https://github.com/less/less.js/blob/v1.4.1/CHANGELOG.md
+- Fix syncImports and yui-compress option, as they were being ignored
+- Fixed several global variable leaks
+- Handle getting null or undefined passed as the options object
+
+* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.0-1
+- New upstream release 1.4.0
+-
https://github.com/cloudhead/less.js/blob/master/CHANGELOG.md
+- support for :extend() in selectors (e.g. input:extend(.button) {}) and &
+ :extend(); in ruleset (e.g. input { &:extend(.button all); })
+- maths is now only done inside brackets. This means font: statements, media
+ queries and the calc function can use a simpler format without being escaped.
+ Disable this with --strict-maths-off in lessc and strictMaths:false in
+ JavaScript.
+- units are calculated, e.g. 200cm+1m = 3m, 3px/1px = 3. If you use units
+ inconsistently you will get an error. Suppress this error with
+ --strict-units-off in lessc or strictUnits:false in JavaScript
+- (~"@var") selector interpolation is removed. Use @{var} in selectors to have
+ variable selectors
+- default behaviour of import is to import each file once. @import-once has
+ been removed.
+- You can specify options on imports to force it to behave as css or less
+ @import (less) "file.css" will process the file as less
+- variables in mixins no longer 'leak' into their calling scope
+- added data-uri function which will inline an image into the output css. If
+ ieCompat option is true and file is too large, it will fallback to a url()
+- significant bug fixes to our debug options
+- other parameters can be used as defaults in mixins e.g. .a(@a, @b:@a)
+- an error is shown if properties are used outside of a ruleset
+- added extract function which picks a value out of a list,
+ e.g. extract(12 13 14, 3) => 3
+- added luma, hsvhue, hsvsaturation, hsvvalue functions
+- added pow, pi, mod, tan, sin, cos, atan, asin, acos and sqrt math functions
+- added convert function, e.g. convert(1rad, deg) => value in degrees
+- lessc makes output directories if they don't exist
+- lessc @import supports https and 301's
+- lessc "-depends" option for lessc writes out the list of import files used
in
+ makefile format
+- lessc "-lint" option just reports errors
+- support for namespaces in attributes and selector interpolation in attributes
+- other bug fixes
+- strictUnits now defaults to false and the true case now gives more useful but
+ less correct results, e.g. 2px/1px = 2px
+- Process ./ when having relative paths
+- add isunit function for mixin guards and non basic units
+- extends recognise attributes
+- exception errors extend the JavaScript Error
+- remove es-5-shim as standard from the browser
+- Fix path issues with windows/linux local paths
+- change strictMaths to strictMath. Enable this with --strict-math=on in lessc
+ and strictMath:true in JavaScript.
+- change lessc option for strict units to --strict-units=off
+- fix passing of strict maths option
+
+* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-5
+- Use correct build architectures
+
+* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth(a)gmail.com> - 1.3.3-4
+- enable compression using ycssmin
+
+* Wed Apr 10 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-3
+- Fix BuildRequires to include nodejs-devel
+
+* Tue Apr 09 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-2
+- Rename package to nodejs-less
+
+* Tue Apr 09 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-1
+- Upgrade to new upstream release and switch to proper Node.js packaging
+- New upstream release 1.3.3
+ * Fix critical bug with mixin call if using multiple brackets
+ * When using the filter contrast function, the function is passed through if
+ the first argument is not a color
+- New upstream release 1.3.2
+ * browser and server url re-writing is now aligned to not re-write (previous
+ lessc behaviour)
+ * url-rewriting can be made to re-write to be relative to the entry file
+ using the relative-urls option (less.relativeUrls option)
+ * rootpath option can be used to add a base path to every url
+ * Support mixin argument seperator of ';' so you can pass comma seperated
+ values. e.g. .mixin(23px, 12px;);
+ * Fix lots of problems with named arguments in corner cases, not behaving
+ as expected
+ * hsv, hsva, unit functions
+ * fixed lots more bad error messages
+ * fix @import-once to use the full path, not the relative one for
+ determining if an import has been imported already
+ * support :not(:nth-child(3))
+ * mixin guards take units into account
+ * support unicode descriptors (U+00A1-00A9)
+ * support calling mixins with a stack when using & (broken in 1.3.1)
+ * support @namespace and namespace combinators
+ * when using %% with colour functions, take into account a colour is out of
+ 256
+ * when doing maths with a %% do not divide by 100 and keep the unit
+ * allow url to contain %% (e.g. %%20 for a space)
+ * if a mixin guard stops execution a default mixin is not required
+ * units are output in strings (use the unit function if you need to get the
+ value without unit)
+ * do not infinite recurse when mixins call mixins of the same name
+ * fix issue on important on mixin calls
+ * fix issue with multiple comments being confused
+ * tolerate multiple semi-colons on rules
+ * ignore subsequant @charset
+ * syncImport option for node.js to read files syncronously
+ * write the output directory if it is missing
+ * change dependency on cssmin to ycssmin
+ * lessc can load files over http
+ * allow calling less.watch() in non dev mode
+ * don't cache in dev mode
+ * less files cope with query parameters better
+ * sass debug statements are now chrome compatible
+ * modifyVars function added to re-render with different root variables
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.3.1-5
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Wed Dec 19 2012 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.1-4
+- Unbundle cssmin.js from the sources
+- Throw an error when --yui-compress is passed at the lessc command line
+- Convert assorted %%prep actions into patches
+
+* Wed Dec 19 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.1-3
+- include LICENSE and README.md
+
+* Wed Dec 19 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.1-2
+- minor spec cleanup
+- clear dist-dir
+- license clearification
+
+* Thu Dec 13 2012 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.1-1
+- Update to the 1.3.1 release
+- Fix versioning bugs, get the tarball from a cleaner, tagged location
+
+* Mon Sep 17 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.0-20120917git55d6e5a.1
+- initial packaging
diff --git a/sources b/sources
new file mode 100644
index 0000000..c937612
--- /dev/null
+++ b/sources
@@ -0,0 +1 @@
+SHA512 (less-3.10.3.tgz) =
bf3df6bea7e09a8c45d61dcae09fb2282b5a8c7d0f5a68e420581bb3977bf04fdcfdef944139c8fa558afb5790444f793d7336982deb2652d248ff554079daa3
commit b61aa342742b846393289f2fbdd76fd448fcb743
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Mon Feb 28 17:19:37 2022 -0500
Upgrade to 4.1.2 for support of recent Node.js versions
Signed-off-by: Stephen Gallagher <sgallagh(a)redhat.com>
diff --git a/.gitignore b/.gitignore
index 1e79884..ec07d1d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,5 @@
/less-1.6.1.tgz
/less-1.6.3.tgz
/less-1.7.0.tgz
+/less-4.1.2-nm-prod.tgz
+/less-4.1.2.tgz
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
deleted file mode 100644
index 6f1ec0b..0000000
--- a/0001-Require-include-files-from-the-default-location.patch
+++ /dev/null
@@ -1,52 +0,0 @@
-From 18e3f3f3a1955e0159b4e8c6141518a6a3cd0975 Mon Sep 17 00:00:00 2001
-From: Stephen Gallagher <sgallagh(a)redhat.com>
-Date: Wed, 19 Dec 2012 09:06:24 -0500
-Subject: [PATCH] Require include files from the default location
-
----
- bin/lessc | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
-
-diff --git a/bin/lessc b/bin/lessc
-index e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fda5414d09
100755
---- a/bin/lessc
-+++ b/bin/lessc
-@@ -6,7 +6,7 @@ var path = require('path'),
- os = require('os'),
- mkdirp;
-
--var less = require('../lib/less');
-+var less = require('less');
- var args = process.argv.slice(1);
- var options = {
- depends: false,
-@@ -96,7 +96,7 @@ args = args.filter(function (arg) {
- break;
- case 'h':
- case 'help':
-- require('../lib/less/lessc_helper').printUsage();
-+ require('less/lessc_helper').printUsage();
- continueProcessing = false;
- case 'x':
- case 'compress':
-@@ -243,7 +243,7 @@ args = args.filter(function (arg) {
- }
- break;
- default:
-- require('../lib/less/lessc_helper').printUsage();
-+ require('less/lessc_helper').printUsage();
- continueProcessing = false;
- currentErrorcode = 1;
- break;
-@@ -288,7 +288,7 @@ if (options.cleancss && options.sourceMap) {
- if (! input) {
- console.log("lessc: no input files");
- console.log("");
-- require('../lib/less/lessc_helper').printUsage();
-+ require('less/lessc_helper').printUsage();
- currentErrorcode = 1;
- return;
- }
---
-1.8.4.2
-
diff --git a/nodejs-less.spec b/nodejs-less.spec
index c5e83b6..061f3e2 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,10 @@
%{?nodejs_find_provides_and_requires}
-Name: nodejs-less
-Version: 1.7.0
-Release: 2%{?dist}
+%global npm_name less
+
+Name: nodejs-%{npm_name}
+Version: 4.1.2
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -11,63 +13,77 @@ License: ASL 2.0 and BSD
URL:
http://lesscss.org
Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
-
-# Since we're installing this in a global location, fix the require()
-# calls to point there.
-Patch0001: 0001-Require-include-files-from-the-default-location.patch
+Source1: %{npm_name}-%{version}-nm-prod.tgz
BuildArch: noarch
BuildRequires: nodejs-devel
BuildRequires: nodejs-packaging
-BuildRequires: nodejs-grunt-cli
Requires: nodejs
ExclusiveArch: %{nodejs_arches} noarch
Provides: lessjs = %{version}-%{release}
Obsoletes: lessjs < 1.3.3-2
+
%description
LESS extends CSS with dynamic behavior such as variables, mixins, operations
and functions. LESS runs on both the client-side (Chrome, Safari, Firefox)
and server-side, with Node.js and Rhino.
-%prep
-%setup -q -n package
-%patch0001 -p1
+%prep
+%autosetup -n package -p1
# Remove pre-built files from the dist/ directory
rm -f dist/*.js
-# enable compression using ycssmin
-%nodejs_fixdep ycssmin '~1.0.1'
+tar xfz %{SOURCE1}
+mkdir -p node_modules
+pushd node_modules
+ln -s ../node_modules_prod/* .
+ln -s ../node_modules_prod/.bin .
+popd
+
%build
# Nothing to be built, we're just carrying around flat files
+
%check
-make %{?_smp_mflags} test
+%{__nodejs} -e 'require("./")'
%install
-mkdir -p %{buildroot}%{_bindir}
mkdir -p %{buildroot}%{nodejs_sitelib}/less
-chmod a+x bin/lessc
-cp -rp bin package.json lib/less/* %{buildroot}/%{nodejs_sitelib}/less
+
+cp -rp index.js \
+ package.json \
+ lib/ \
+ %{buildroot}/%{nodejs_sitelib}/less
+
+# Copy over bundled nodejs modules
+cp -pr node_modules node_modules_prod \
+ %{buildroot}%{nodejs_sitelib}/%{npm_name}
+
+mkdir -p %{buildroot}%{nodejs_sitelib}/less/bin
+install -p -D -m0755 bin/lessc %{buildroot}%{nodejs_sitelib}/less/bin/lessc
# Install /usr/bin/lessc
-ln -s %{nodejs_sitelib}/less/bin/lessc \
- %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{_bindir}
+ln -srf %{nodejs_sitelib}/less/bin/lessc \
+ %{buildroot}%{_bindir}
-%nodejs_symlink_deps
%files
-%doc LICENSE README.md CHANGELOG.md CONTRIBUTING.md
+%doc README.md
%{_bindir}/lessc
%{nodejs_sitelib}/less
%changelog
+* Mon Feb 28 2022 Stephen Gallagher <sgallagh(a)redhat.com> - 4.1.2-1
+- Upgrade to 4.1.2 for support of recent Node.js versions
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.0-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/sources b/sources
index a3d20f8..27a0ad6 100644
--- a/sources
+++ b/sources
@@ -1 +1,2 @@
-ff35fa927dbaf5daa956a1074ad9773a less-1.7.0.tgz
+SHA512 (less-4.1.2-nm-prod.tgz) =
29cad8046813dc61aeb6fb53520977cca6e3d91234a23e85375d6e483dde75aaddac5b33a9f2ebca1e331c89e3b92f29de9d19000cf6bab82834ffecf6461b49
+SHA512 (less-4.1.2.tgz) =
128429fc4b7b392395bb468992724eb655d9b27afc5c4f0ac2ecd31ce2de552131f2955650809cf10d156111e0cf28d7efc9cc1320bfa33b5615b83286d35f0c
commit a9c10dd0c599d1abb6c6dd91c66f7181e39151d2
Author: Miro Hrončok <miro(a)hroncok.cz>
Date: Tue Aug 18 18:24:31 2020 +0200
Orphaned for 6+ weeks
diff --git a/.gitignore b/.gitignore
deleted file mode 100644
index 33ebfbc..0000000
--- a/.gitignore
+++ /dev/null
@@ -1,19 +0,0 @@
-/less-1.3.3.tgz
-/less-1.4.0.tgz
-/less-1.4.1.tgz
-/less-1.5.0.tgz
-/less-1.5.1.tgz
-/less-1.6.0.tgz
-/less-1.6.1.tgz
-/less-1.6.3.tgz
-/less-1.7.0.tgz
-/less-1.7.5.tgz
-/less-2.6.1.tgz
-/less-2.7.1.tgz
-/less-2.7.2.tgz
-/less-3.8.1.tgz
-/less-3.9.0.tgz
-/less-3.10.0.tgz
-/less-3.10.1.tgz
-/less-3.10.2.tgz
-/less-3.10.3.tgz
diff --git a/dead.package b/dead.package
new file mode 100644
index 0000000..5204a84
--- /dev/null
+++ b/dead.package
@@ -0,0 +1 @@
+Orphaned for 6+ weeks
diff --git a/nodejs-less-mime2.patch b/nodejs-less-mime2.patch
deleted file mode 100644
index 92317b2..0000000
--- a/nodejs-less-mime2.patch
+++ /dev/null
@@ -1,70 +0,0 @@
-commit 1cbb465aa92f7cb903f7900e0e43cc08294fc649
-Author: Tom Hughes <tom(a)compton.nu>
-Date: Thu Sep 20 18:55:15 2018 +0100
-
- Update for npm(mime) version 2.x
-
-diff --git a/bin/lessc b/bin/lessc
-index 0ffe6dbc..11c11d45 100644
---- a/bin/lessc
-+++ b/bin/lessc
-@@ -180,10 +180,10 @@ var environment = {
- return buffer.toString('base64');
- },
- mimeLookup: function mimeLookup(filename) {
-- return require('mime').lookup(filename);
-+ return require('mime').getType(filename);
- },
- charsetLookup: function charsetLookup(mime) {
-- return require('mime').charsets.lookup(mime);
-+ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8' :
null;
- },
- getSourceMapGenerator: function getSourceMapGenerator() {
- return require('source-map').SourceMapGenerator;
-diff --git a/dist/less.cjs.js b/dist/less.cjs.js
-index 41b01742..cfc307e9 100644
---- a/dist/less.cjs.js
-+++ b/dist/less.cjs.js
-@@ -11,10 +11,10 @@ var environment = {
- return buffer.toString('base64');
- },
- mimeLookup: function mimeLookup(filename) {
-- return require('mime').lookup(filename);
-+ return require('mime').getType(filename);
- },
- charsetLookup: function charsetLookup(mime) {
-- return require('mime').charsets.lookup(mime);
-+ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8' :
null;
- },
- getSourceMapGenerator: function getSourceMapGenerator() {
- return require('source-map').SourceMapGenerator;
-diff --git a/lib/less-node/environment.js b/lib/less-node/environment.js
-index a9b790c9..a24cf481 100644
---- a/lib/less-node/environment.js
-+++ b/lib/less-node/environment.js
-@@ -5,10 +5,10 @@ export default {
- return buffer.toString('base64');
- },
- mimeLookup: function (filename) {
-- return require('mime').lookup(filename);
-+ return require('mime').getType(filename);
- },
- charsetLookup: function (mime) {
-- return require('mime').charsets.lookup(mime);
-+ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8'
: null;
- },
- getSourceMapGenerator: function getSourceMapGenerator() {
- return require('source-map').SourceMapGenerator;
-diff --git a/package.json b/package.json
-index b9887fcf..50599f21 100644
---- a/package.json
-+++ b/package.json
-@@ -42,7 +42,7 @@
- "errno": "^0.1.1",
- "graceful-fs": "^4.1.2",
- "image-size": "~0.5.0",
-- "mime": "^1.4.1",
-+ "mime": "^2.0.0",
- "mkdirp": "^0.5.0",
- "promise": "^7.1.1",
- "request": "^2.83.0",
diff --git a/nodejs-less.spec b/nodejs-less.spec
deleted file mode 100644
index 8da1e47..0000000
--- a/nodejs-less.spec
+++ /dev/null
@@ -1,474 +0,0 @@
-%{?nodejs_find_provides_and_requires}
-
-Name: nodejs-less
-Version: 3.10.3
-Release: 5%{?dist}
-Summary: Less.js The dynamic stylesheet language
-
-# cssmin.js is licensed under BSD license
-# everything else is ASL 2.0
-License: ASL 2.0 and BSD
-URL:
http://lesscss.org
-Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
-Patch0: nodejs-less-mime2.patch
-BuildArch: noarch
-ExclusiveArch: %{nodejs_arches} noarch
-
-BuildRequires: nodejs-packaging
-
-BuildRequires: npm(clone)
-BuildRequires: npm(image-size)
-BuildRequires: npm(less-plugin-clean-css)
-BuildRequires: npm(mime)
-BuildRequires: npm(source-map)
-
-Provides: lessjs = %{version}-%{release}
-Obsoletes: lessjs < 1.3.3-2
-
-
-%description
-LESS extends CSS with dynamic behavior such as variables, mixins, operations
-and functions. LESS runs on both the client-side (Chrome, Safari, Firefox)
-and server-side, with Node.js and Rhino.
-
-
-%prep
-%autosetup -p 1 -n package
-%nodejs_fixdep clone "^1.0.2"
-%nodejs_fixdep --optional --remove errno
-%nodejs_fixdep --optional --remove mkdirp
-%nodejs_fixdep --optional image-size "^0.6.3"
-%nodejs_fixdep --optional promise "^8.0.1"
-%nodejs_fixdep --optional request "^2.67.0"
-%nodejs_fixdep --optional source-map "^0.5.6"
-rm -rf node_modules
-
-
-%build
-# Nothing to be built, we're just carrying around flat files
-
-
-%check
-%nodejs_symlink_deps --check --optional
-rm test/less/import-module.less
-rm test/css/3rd-party/*.css
-rm test/less/3rd-party/*.less
-%{__nodejs} test
-
-
-%install
-mkdir -p %{buildroot}%{nodejs_sitelib}/less
-cp -pr package.json index.js dist lib %{buildroot}/%{nodejs_sitelib}/less
-mkdir -p %{buildroot}%{nodejs_sitelib}/less/bin
-install -m755 -p bin/lessc %{buildroot}%{nodejs_sitelib}/less/bin
-mkdir -p %{buildroot}%{_bindir}
-ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
-%nodejs_symlink_deps
-
-
-%files
-%doc README.md CHANGELOG.md CONTRIBUTING.md
-%license LICENSE
-%{_bindir}/lessc
-%{nodejs_sitelib}/less
-
-
-%changelog
-* Sat Aug 01 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-5
-- Second attempt - Rebuilt for
-
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
-
-* Tue Jul 28 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-4
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
-
-* Wed Jan 29 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
-
-* Thu Oct 31 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-2
-- Install lessc with executable permission
-
-* Fri Aug 23 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-1
-- Update to 3.10.3 upstream release
-
-* Wed Aug 21 2019 Tom Hughes <tom(a)compton.nu> - 3.10.2-1
-- Update to 3.10.2 upstream release
-
-* Tue Aug 20 2019 Tom Hughes <tom(a)compton.nu> - 3.10.1-1
-- Update to 3.10.1 upstream release
-
-* Fri Jul 26 2019 Tom Hughes <tom(a)compton.nu> - 3.9.0-1
-- Update to 3.9.0 upstream release
-
-* Thu Jul 25 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
-
-* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
-
-* Thu Sep 20 2018 Tom Hughes <tom(a)compton.nu> - 3.8.1-1
-- Update to 3.8.1 upstream release
-
-* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-6
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
-
-* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 2.7.2-5
-- Escape macros in %%changelog
-
-* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-4
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
-
-* Thu Jul 27 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
-
-* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
-
-* Thu Jan 19 2017 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.2-1
-- Update to 2.7.2
-
-* Tue May 10 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.1-1
-- Update to 2.7.1
-- Compatibility with Node.js 6.x
--
https://github.com/less/less.js/blob/v2.7.1/CHANGELOG.md
-
-* Fri Apr 08 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-2
-- Fix missing lib components
-- Add basic test for lessc
-- Drop unused patches
-- Resolves# RHBZ#1324883
-
-* Tue Mar 29 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-1
-- Upgrade to latest upstream stable release 2.6.1
--
https://github.com/less/less.js/blob/v2.6.1/CHANGELOG.md
-
-* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.7.5-3
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
-
-* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.5-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
-
-* Thu Sep 04 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.5-1
-- New upstream release 1.7.5
--
https://github.com/less/less.js/blob/v1.7.5/CHANGELOG.md
-- Enable tests in RPM build
-- Disable broken source-map test
-
-* Mon Jun 23 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.3-1
-- New upstream release 1.7.3
--
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
-- Fix detection of recursive mixins
-- Fix the paths option for later versions of node (0.10+)
-- Fix paths joining bug
-- Fix a number precision issue on some versions of node
-- Fix an IE8 issue with importing css files
-- Fix IE11 detection for xhr requests
-- Modify var works if the last line of a less file is a comment.
-- Better detection of valid hex colour codes
-- Some stability fixes to support a low number of available file handles
-- Support comparing values with different quote types e.g.
- "test" now === 'test'
-- Give better error messages if accessing a url that returns a non 200 status
- code
-- Fix the e() function when passed empty string
-- Several minor bug fixes
--
https://github.com/less/less.js/blob/v1.7.2/CHANGELOG.md
-- Allow paths option to be a string (in 1.7.1 less started throwing an
- exception instead of incorrectly processing the string as an array of chars)
-- Do not round numbers when used with javascript (introduced 1.7.0)
--
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
-- Do not round the results of color functions, like lightness, hue, luma etc.
-- Support cover and contain keywords in background definitions
-
-* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.0-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
-
-* Wed Mar 05 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.0-1
-- New upstream release 1.7.0
--
https://github.com/less/less.js/blob/v1.7.0/CHANGELOG.md
-- Add support for rulesets in variables and passed to mixins to allow wrapping
-- Change luma to follow the w3c spec, luma is available as luminance. Contrast
- still uses luma so you may see differences if your threshold % is close to
- the existing calculated luma.
-- Upgraded clean css which means the --selectors-merge-mode is now renamed
- --compatibility
-- Add support for using variables with @keyframes, @namespace, @charset
-- Support property merging with +_ when spaces are needed and keep + for comma
- separated
-- Imports now always import once consistently- a race condition meant
- previously certain configurations would lead to a different ordering of
- files
-- Fix support for `.mixin(@args...)` when called with no args (e.g.
- `.mixin();`)
-- Do unit conversions with min and max functions. Don't pass through if not
- understood, throw an error
-- Allow % to be passed on its own to the unit function e.g. `unit(10, %%)`
-- Fix a bug when comparing a unit value to a non-unit value if the unit-value
- was the multiple of another unit (e.g. cm, mm, deg etc.)
-- Fix mixins with media queries in import reference files not being put into
- the output (they now output, they used to incorrectly not)
-- Fix lint mode- now reports all errors
-- Fixed a small scope issue with & {} selector rulesets incorrectly making
- mixins visible- regression from 1.6.2
-- Browser- added log level "debug" at 3 to get less logging, The default has
- changed so unless you set the value to the default you won't see a
- difference
-- Browser- logLevel takes effect regardless of the environment (production/dev)
-- Browser- added postProcessor option, a function called to post-process the
- css before adding to the page
-- Browser- use the right request for file access in IE
-
-* Tue Feb 25 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.6.3-1
-- New upstream release 1.6.3
--
https://github.com/less/less.js/blob/v1.6.3/CHANGELOG.md
-- Fix issue with calling toCSS twice not working in some situations (like with
- bootstrap 2)
-- The Rhino release is fixed!
-- ability to use uppercase colours
-- Fix a nasty bug causing syntax errors when selector interpolation is preceded
- by a long comment (and some other cases)
-- Fix a major bug with the variable scope in guards on selectors (e.g. not
- mixins)
-- Fold in & when () { to the current selector rather than duplicating it
-- fix another issue with array prototypes
-- add a url-args option which adds a value to all urls (for cache busting)
-- Round numbers to 8 decimal places - thereby stopping javascript precision
- errors
-- some improvements to the default() function in more complex scenarios
-- improved missing '{' and '(' detection
-
-* Mon Jan 13 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.1-1
-- New upstream release 1.6.1
--
https://github.com/less/less.js/blob/v1.6.1/CHANGELOG.md
-- support ^ and ^^ shadow dom selectors
-- fix sourcemap selector (used to report end of the element or selector) and
- directive position (previously not supported)
-- fix parsing empty less files
-- error on (currently) ambiguous guards on multiple css selectors
-- older environments - protect against typeof regex returning function
-- Do not use default keyword
-- use innerHTML in tests, not innerText
-- protect for-in in case Array and Object prototypes have custom fields
-
-* Thu Jan 02 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.0-1
-- New upstream release 1.6.0
--
https://github.com/less/less.js/blob/v1.6.0/CHANGELOG.md
-- Properties can be interpolated, e.g. @{prefix}-property: value;
-- a default function has been added only valid in mixin definitions to
- determine if no other mixins have been matched
-- Added a plugins option that allows specifying an array of visitors run on the
- less AST
-- Performance improvements that may result in approx 20-40% speed up
-- Javascript evaluations returning numbers can now be used in
- calculations/functions
-- fixed issue when adding colours, taking the alpha over 1 and breaking when
- used in colour functions
-- when adding together 2 colours with non zero alpha, the alpha will now be
- combined rather than added
-- the advanced colour functions no longer ignore transparency, they blend that
- too
-- Added --clean-option and cleancssOptions to allow passing in clean css
- options
-- rgba declarations are now always clamped e.g. rgba(-1,258,258, -1) becomes
- rgba(0, 255, 255, 0)
-- Fix possible issue with import reference not bringing in styles (may not be a
- bugfix, just a code tidy)
-- Fix some issues with urls() being prefixed twice and unquoted urls in mixins
- being processed each time they are called
-- Fixed error messages for undefined variables in javascript evaluation
-- Fixed line/column numbers from math errors
-
-* Tue Nov 26 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.1-1
-- New upstream release 1.5.1
--
https://github.com/less/less.js/blob/v1.5.1/CHANGELOG.md
-- Added source-map-URL option
-- Fixed a bug which meant the minimised 1.5.0 browser version was not wrapped,
- meaning it interfered with require js
-- Fixed a bug where the browser version assume port was specified
-- Added the ability to specify variables on the command line
-- Upgraded clean-css and fixed it from trying to import
-- correct a bug meaning imports weren't synchronous (syncImport option
- available for full synchronous behaviour)
-- better mixin matching behaviour with calling multiple classes e.g. .a.b.c;
-
-* Tue Oct 22 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.0-1
-- New upstream release 1.5.0
--
https://github.com/less/less.js/blob/v1.5.0/CHANGELOG.md
-- sourcemap support
-- support for import inline option to include css that you do NOT want less to
- parse e.g. `@import (inline) "file.css";`
-- better support for modifyVars (refresh styles with new variables, using a
- file cache), is now more resiliant
-- support for import reference option to reference external css, but not output
- it. Any mixin calls or extend's will be output.
-- support for guards on selectors (currently only if you have a single
- selector)
-- allow property merging through the +: syntax
-- Added min/max functions
-- Added length function and improved extract to work with comma seperated
- values
-- when using import multiple, sub imports are imported multiple times into
- final output
-- fix bad spaces between namespace operators
-- do not compress comment if it begins with an exclamation mark
-- Fix the saturate function to pass through when using the CSS syntax
-- Added svg-gradient function
-- Added no-js option to lessc (in browser, use javascriptEnabled: false) which
- disallows JavaScript in less files
-- switched from the little supported and buggy cssmin (previously ycssmin) to
- clean-css
-- support transparent as a color, but not convert between rgba(0, 0, 0, 0) and
- transparent
-- remove sys.puts calls to stop deprecation warnings in future node.js releases
-- Browser: added logLevel option to control logging (2 = everything, 1 = errors
- only, 0 = no logging)
-- Browser: added errorReporting option which can be "html" (default) or
- "console" or a function
-- Now uses grunt for building and testing
-- A few bug fixes for media queries, extends, scoping, compression and import
- once.
-- if you don't pass a strict maths option, font size/line height options are
- output correctly again
-- npmignore now include .gitattributes
-- property names may include capital letters
-- various windows path fixes (capital letters, multiple // in a path)
-
-* Sat Aug 03 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.4.1-2
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
-
-* Fri Jul 05 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.1-1
-- New upstream release 1.4.1
--
https://github.com/less/less.js/blob/v1.4.1/CHANGELOG.md
-- Fix syncImports and yui-compress option, as they were being ignored
-- Fixed several global variable leaks
-- Handle getting null or undefined passed as the options object
-
-* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.0-1
-- New upstream release 1.4.0
--
https://github.com/cloudhead/less.js/blob/master/CHANGELOG.md
-- support for :extend() in selectors (e.g. input:extend(.button) {}) and &
- :extend(); in ruleset (e.g. input { &:extend(.button all); })
-- maths is now only done inside brackets. This means font: statements, media
- queries and the calc function can use a simpler format without being escaped.
- Disable this with --strict-maths-off in lessc and strictMaths:false in
- JavaScript.
-- units are calculated, e.g. 200cm+1m = 3m, 3px/1px = 3. If you use units
- inconsistently you will get an error. Suppress this error with
- --strict-units-off in lessc or strictUnits:false in JavaScript
-- (~"@var") selector interpolation is removed. Use @{var} in selectors to have
- variable selectors
-- default behaviour of import is to import each file once. @import-once has
- been removed.
-- You can specify options on imports to force it to behave as css or less
- @import (less) "file.css" will process the file as less
-- variables in mixins no longer 'leak' into their calling scope
-- added data-uri function which will inline an image into the output css. If
- ieCompat option is true and file is too large, it will fallback to a url()
-- significant bug fixes to our debug options
-- other parameters can be used as defaults in mixins e.g. .a(@a, @b:@a)
-- an error is shown if properties are used outside of a ruleset
-- added extract function which picks a value out of a list,
- e.g. extract(12 13 14, 3) => 3
-- added luma, hsvhue, hsvsaturation, hsvvalue functions
-- added pow, pi, mod, tan, sin, cos, atan, asin, acos and sqrt math functions
-- added convert function, e.g. convert(1rad, deg) => value in degrees
-- lessc makes output directories if they don't exist
-- lessc @import supports https and 301's
-- lessc "-depends" option for lessc writes out the list of import files used
in
- makefile format
-- lessc "-lint" option just reports errors
-- support for namespaces in attributes and selector interpolation in attributes
-- other bug fixes
-- strictUnits now defaults to false and the true case now gives more useful but
- less correct results, e.g. 2px/1px = 2px
-- Process ./ when having relative paths
-- add isunit function for mixin guards and non basic units
-- extends recognise attributes
-- exception errors extend the JavaScript Error
-- remove es-5-shim as standard from the browser
-- Fix path issues with windows/linux local paths
-- change strictMaths to strictMath. Enable this with --strict-math=on in lessc
- and strictMath:true in JavaScript.
-- change lessc option for strict units to --strict-units=off
-- fix passing of strict maths option
-
-* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-5
-- Use correct build architectures
-
-* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth(a)gmail.com> - 1.3.3-4
-- enable compression using ycssmin
-
-* Wed Apr 10 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-3
-- Fix BuildRequires to include nodejs-devel
-
-* Tue Apr 09 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-2
-- Rename package to nodejs-less
-
-* Tue Apr 09 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-1
-- Upgrade to new upstream release and switch to proper Node.js packaging
-- New upstream release 1.3.3
- * Fix critical bug with mixin call if using multiple brackets
- * When using the filter contrast function, the function is passed through if
- the first argument is not a color
-- New upstream release 1.3.2
- * browser and server url re-writing is now aligned to not re-write (previous
- lessc behaviour)
- * url-rewriting can be made to re-write to be relative to the entry file
- using the relative-urls option (less.relativeUrls option)
- * rootpath option can be used to add a base path to every url
- * Support mixin argument seperator of ';' so you can pass comma seperated
- values. e.g. .mixin(23px, 12px;);
- * Fix lots of problems with named arguments in corner cases, not behaving
- as expected
- * hsv, hsva, unit functions
- * fixed lots more bad error messages
- * fix @import-once to use the full path, not the relative one for
- determining if an import has been imported already
- * support :not(:nth-child(3))
- * mixin guards take units into account
- * support unicode descriptors (U+00A1-00A9)
- * support calling mixins with a stack when using & (broken in 1.3.1)
- * support @namespace and namespace combinators
- * when using %% with colour functions, take into account a colour is out of
- 256
- * when doing maths with a %% do not divide by 100 and keep the unit
- * allow url to contain %% (e.g. %%20 for a space)
- * if a mixin guard stops execution a default mixin is not required
- * units are output in strings (use the unit function if you need to get the
- value without unit)
- * do not infinite recurse when mixins call mixins of the same name
- * fix issue on important on mixin calls
- * fix issue with multiple comments being confused
- * tolerate multiple semi-colons on rules
- * ignore subsequant @charset
- * syncImport option for node.js to read files syncronously
- * write the output directory if it is missing
- * change dependency on cssmin to ycssmin
- * lessc can load files over http
- * allow calling less.watch() in non dev mode
- * don't cache in dev mode
- * less files cope with query parameters better
- * sass debug statements are now chrome compatible
- * modifyVars function added to re-render with different root variables
-
-* Thu Feb 14 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.3.1-5
-- Rebuilt for
https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
-
-* Wed Dec 19 2012 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.1-4
-- Unbundle cssmin.js from the sources
-- Throw an error when --yui-compress is passed at the lessc command line
-- Convert assorted %%prep actions into patches
-
-* Wed Dec 19 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.1-3
-- include LICENSE and README.md
-
-* Wed Dec 19 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.1-2
-- minor spec cleanup
-- clear dist-dir
-- license clearification
-
-* Thu Dec 13 2012 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.1-1
-- Update to the 1.3.1 release
-- Fix versioning bugs, get the tarball from a cleaner, tagged location
-
-* Mon Sep 17 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.0-20120917git55d6e5a.1
-- initial packaging
diff --git a/sources b/sources
deleted file mode 100644
index c937612..0000000
--- a/sources
+++ /dev/null
@@ -1 +0,0 @@
-SHA512 (less-3.10.3.tgz) =
bf3df6bea7e09a8c45d61dcae09fb2282b5a8c7d0f5a68e420581bb3977bf04fdcfdef944139c8fa558afb5790444f793d7336982deb2652d248ff554079daa3
commit 6f6f161eb920218f5e6f5987694d65b661188a22
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Sat Aug 1 05:40:04 2020 +0000
- Second attempt - Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 10bea00..8da1e47 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 3.10.3
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -74,6 +74,10 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Sat Aug 01 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-5
+- Second attempt - Rebuilt for
+
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
* Tue Jul 28 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
commit d936760f772c2e2bf883208f769bb4d8dd1833d7
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Tue Jul 28 10:35:22 2020 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 090f42f..10bea00 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 3.10.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -74,6 +74,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Tue Jul 28 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
+
* Wed Jan 29 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
commit af73d5f6d1ce1705b6807aae1cee0e3f7a7c5b0a
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Wed Jan 29 17:13:59 2020 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 67714c8..090f42f 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 3.10.3
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -74,6 +74,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Wed Jan 29 2020 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.10.3-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
+
* Thu Oct 31 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-2
- Install lessc with executable permission
commit ac9cd13706b9f10054336fae0788da1c936d996e
Author: Tom Hughes <tom(a)compton.nu>
Date: Thu Oct 31 11:56:01 2019 +0000
Install lessc with executable permission
diff --git a/nodejs-less.spec b/nodejs-less.spec
index febe76a..67714c8 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 3.10.3
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -58,7 +58,9 @@ rm test/less/3rd-party/*.less
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/less
-cp -pr package.json index.js bin dist lib %{buildroot}/%{nodejs_sitelib}/less
+cp -pr package.json index.js dist lib %{buildroot}/%{nodejs_sitelib}/less
+mkdir -p %{buildroot}%{nodejs_sitelib}/less/bin
+install -m755 -p bin/lessc %{buildroot}%{nodejs_sitelib}/less/bin
mkdir -p %{buildroot}%{_bindir}
ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%nodejs_symlink_deps
@@ -72,6 +74,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Thu Oct 31 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-2
+- Install lessc with executable permission
+
* Fri Aug 23 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-1
- Update to 3.10.3 upstream release
commit 3df760deec73c58161bfd415a4e0ae16b8f6d673
Author: Tom Hughes <tom(a)compton.nu>
Date: Fri Aug 23 08:24:59 2019 +0100
Update to 3.10.3 upstream release
diff --git a/.gitignore b/.gitignore
index 61ef678..33ebfbc 100644
--- a/.gitignore
+++ b/.gitignore
@@ -16,3 +16,4 @@
/less-3.10.0.tgz
/less-3.10.1.tgz
/less-3.10.2.tgz
+/less-3.10.3.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index c3ef9c4..febe76a 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 3.10.2
+Version: 3.10.3
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -72,6 +72,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Fri Aug 23 2019 Tom Hughes <tom(a)compton.nu> - 3.10.3-1
+- Update to 3.10.3 upstream release
+
* Wed Aug 21 2019 Tom Hughes <tom(a)compton.nu> - 3.10.2-1
- Update to 3.10.2 upstream release
diff --git a/sources b/sources
index 046c4ef..c937612 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (less-3.10.2.tgz) =
72b39be6bf009c86245acb3ab0935c7206f6d14aaf0df759868a6e0c6f4b19f712418f9f00a200fd6e1ab39f842e77d4c670ebbaa0bb898c9e0d9982e389cc9f
+SHA512 (less-3.10.3.tgz) =
bf3df6bea7e09a8c45d61dcae09fb2282b5a8c7d0f5a68e420581bb3977bf04fdcfdef944139c8fa558afb5790444f793d7336982deb2652d248ff554079daa3
commit 0bd6f36580bf71f07f7289e92be1c55dda68df55
Author: Tom Hughes <tom(a)compton.nu>
Date: Wed Aug 21 09:19:45 2019 +0100
Update to 3.10.2 upstream release
diff --git a/.gitignore b/.gitignore
index a26a1a3..61ef678 100644
--- a/.gitignore
+++ b/.gitignore
@@ -15,3 +15,4 @@
/less-3.9.0.tgz
/less-3.10.0.tgz
/less-3.10.1.tgz
+/less-3.10.2.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 829940c..c3ef9c4 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 3.10.1
+Version: 3.10.2
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -72,6 +72,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Wed Aug 21 2019 Tom Hughes <tom(a)compton.nu> - 3.10.2-1
+- Update to 3.10.2 upstream release
+
* Tue Aug 20 2019 Tom Hughes <tom(a)compton.nu> - 3.10.1-1
- Update to 3.10.1 upstream release
diff --git a/sources b/sources
index fc50505..046c4ef 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (less-3.10.1.tgz) =
c653f1eafb799c09b50c60e7bafd3a48d41b6b85a730a639bd99200ab9f22979036ecd3d925f5c7369d24bb38cb9f2d3eb4216b315129f0af5464878ae430572
+SHA512 (less-3.10.2.tgz) =
72b39be6bf009c86245acb3ab0935c7206f6d14aaf0df759868a6e0c6f4b19f712418f9f00a200fd6e1ab39f842e77d4c670ebbaa0bb898c9e0d9982e389cc9f
commit 9d1a713dd8233d5df31ed3ac94d43195f4fb4473
Author: Tom Hughes <tom(a)compton.nu>
Date: Tue Aug 20 10:31:57 2019 +0100
Update to 3.10.1 upstream release
diff --git a/.gitignore b/.gitignore
index 3783184..a26a1a3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -13,3 +13,5 @@
/less-2.7.2.tgz
/less-3.8.1.tgz
/less-3.9.0.tgz
+/less-3.10.0.tgz
+/less-3.10.1.tgz
diff --git a/nodejs-less-mime2.patch b/nodejs-less-mime2.patch
index 02cba9c..92317b2 100644
--- a/nodejs-less-mime2.patch
+++ b/nodejs-less-mime2.patch
@@ -1,15 +1,49 @@
-commit 595310bb97fcba1cd23edd6b6e05afbe3d32869b
+commit 1cbb465aa92f7cb903f7900e0e43cc08294fc649
Author: Tom Hughes <tom(a)compton.nu>
Date: Thu Sep 20 18:55:15 2018 +0100
Update for npm(mime) version 2.x
+diff --git a/bin/lessc b/bin/lessc
+index 0ffe6dbc..11c11d45 100644
+--- a/bin/lessc
++++ b/bin/lessc
+@@ -180,10 +180,10 @@ var environment = {
+ return buffer.toString('base64');
+ },
+ mimeLookup: function mimeLookup(filename) {
+- return require('mime').lookup(filename);
++ return require('mime').getType(filename);
+ },
+ charsetLookup: function charsetLookup(mime) {
+- return require('mime').charsets.lookup(mime);
++ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8' :
null;
+ },
+ getSourceMapGenerator: function getSourceMapGenerator() {
+ return require('source-map').SourceMapGenerator;
+diff --git a/dist/less.cjs.js b/dist/less.cjs.js
+index 41b01742..cfc307e9 100644
+--- a/dist/less.cjs.js
++++ b/dist/less.cjs.js
+@@ -11,10 +11,10 @@ var environment = {
+ return buffer.toString('base64');
+ },
+ mimeLookup: function mimeLookup(filename) {
+- return require('mime').lookup(filename);
++ return require('mime').getType(filename);
+ },
+ charsetLookup: function charsetLookup(mime) {
+- return require('mime').charsets.lookup(mime);
++ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8' :
null;
+ },
+ getSourceMapGenerator: function getSourceMapGenerator() {
+ return require('source-map').SourceMapGenerator;
diff --git a/lib/less-node/environment.js b/lib/less-node/environment.js
-index 104222af..54956eac 100644
+index a9b790c9..a24cf481 100644
--- a/lib/less-node/environment.js
+++ b/lib/less-node/environment.js
-@@ -3,10 +3,10 @@ module.exports = {
- return new Buffer(str).toString('base64');
+@@ -5,10 +5,10 @@ export default {
+ return buffer.toString('base64');
},
mimeLookup: function (filename) {
- return require('mime').lookup(filename);
@@ -22,10 +56,10 @@ index 104222af..54956eac 100644
getSourceMapGenerator: function getSourceMapGenerator() {
return require('source-map').SourceMapGenerator;
diff --git a/package.json b/package.json
-index c54bfbb5..53ea6947 100644
+index b9887fcf..50599f21 100644
--- a/package.json
+++ b/package.json
-@@ -44,7 +44,7 @@
+@@ -42,7 +42,7 @@
"errno": "^0.1.1",
"graceful-fs": "^4.1.2",
"image-size": "~0.5.0",
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 437d4ef..829940c 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 3.9.0
+Version: 3.10.1
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -17,7 +17,6 @@ ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: nodejs-packaging
BuildRequires: npm(clone)
-BuildRequires: npm(grunt-cli)
BuildRequires: npm(image-size)
BuildRequires: npm(less-plugin-clean-css)
BuildRequires: npm(mime)
@@ -42,7 +41,7 @@ and server-side, with Node.js and Rhino.
%nodejs_fixdep --optional promise "^8.0.1"
%nodejs_fixdep --optional request "^2.67.0"
%nodejs_fixdep --optional source-map "^0.5.6"
-rm -rf node_modules dist/*.js
+rm -rf node_modules
%build
@@ -52,16 +51,14 @@ rm -rf node_modules dist/*.js
%check
%nodejs_symlink_deps --check --optional
rm test/less/import-module.less
-rm test/less-bom/import-module.less
rm test/css/3rd-party/*.css
rm test/less/3rd-party/*.less
-rm test/less-bom/3rd-party/*.less
%{__nodejs} test
%install
mkdir -p %{buildroot}%{nodejs_sitelib}/less
-cp -pr package.json browser.js index.js bin lib %{buildroot}/%{nodejs_sitelib}/less
+cp -pr package.json index.js bin dist lib %{buildroot}/%{nodejs_sitelib}/less
mkdir -p %{buildroot}%{_bindir}
ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%nodejs_symlink_deps
@@ -75,6 +72,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Tue Aug 20 2019 Tom Hughes <tom(a)compton.nu> - 3.10.1-1
+- Update to 3.10.1 upstream release
+
* Fri Jul 26 2019 Tom Hughes <tom(a)compton.nu> - 3.9.0-1
- Update to 3.9.0 upstream release
diff --git a/sources b/sources
index e4f5725..fc50505 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (less-3.9.0.tgz) =
df50a6b4f119ada354b6e5111188d2a9191e11315dc841d210f006ab87ab0e5517b5d6bba7336672d7658dd21a8126f9f3d77fa971968a23f7d51e4955ffafd3
+SHA512 (less-3.10.1.tgz) =
c653f1eafb799c09b50c60e7bafd3a48d41b6b85a730a639bd99200ab9f22979036ecd3d925f5c7369d24bb38cb9f2d3eb4216b315129f0af5464878ae430572
commit 71428085669125ebb6160a0a0cee50b69f95fa3e
Author: Tom Hughes <tom(a)compton.nu>
Date: Fri Jul 26 14:55:51 2019 +0100
Update to 3.9.0 upstream release
diff --git a/.gitignore b/.gitignore
index 8338e24..3783184 100644
--- a/.gitignore
+++ b/.gitignore
@@ -12,3 +12,4 @@
/less-2.7.1.tgz
/less-2.7.2.tgz
/less-3.8.1.tgz
+/less-3.9.0.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 75e0387..437d4ef 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,8 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 3.8.1
-Release: 3%{?dist}
+Version: 3.9.0
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -75,6 +75,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Fri Jul 26 2019 Tom Hughes <tom(a)compton.nu> - 3.9.0-1
+- Update to 3.9.0 upstream release
+
* Thu Jul 25 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
diff --git a/sources b/sources
index 8eefbc6..e4f5725 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (less-3.8.1.tgz) =
f07146b9698bdc5850474687f3d7ac705341407fe712260f3f696d0c5750c36721136f18c76137961008abd636b1a6302d2c1aebdf6ce1d05511f098f03adfed
+SHA512 (less-3.9.0.tgz) =
df50a6b4f119ada354b6e5111188d2a9191e11315dc841d210f006ab87ab0e5517b5d6bba7336672d7658dd21a8126f9f3d77fa971968a23f7d51e4955ffafd3
commit e4cb4a32f05d3f2228aaf29446bf9f5eaaa92620
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Jul 25 20:44:17 2019 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index ff61fb9..75e0387 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 3.8.1
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -75,6 +75,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Thu Jul 25 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
+
* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
commit 3157c23fe5a2b168b77af3385f508e0fe7b22061
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Feb 1 14:30:38 2019 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 7c3a9d8..ff61fb9 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 3.8.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -75,6 +75,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%changelog
+* Fri Feb 01 2019 Fedora Release Engineering <releng(a)fedoraproject.org> - 3.8.1-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
+
* Thu Sep 20 2018 Tom Hughes <tom(a)compton.nu> - 3.8.1-1
- Update to 3.8.1 upstream release
commit 7630937053cdac23fc6a171401262fb5f0adf836
Author: Tom Hughes <tom(a)compton.nu>
Date: Fri Sep 21 18:38:08 2018 +0100
Update to 3.8.1 upstream release
diff --git a/.gitignore b/.gitignore
index d2cbf23..8338e24 100644
--- a/.gitignore
+++ b/.gitignore
@@ -11,3 +11,4 @@
/less-2.6.1.tgz
/less-2.7.1.tgz
/less-2.7.2.tgz
+/less-3.8.1.tgz
diff --git a/nodejs-less-mime2.patch b/nodejs-less-mime2.patch
new file mode 100644
index 0000000..02cba9c
--- /dev/null
+++ b/nodejs-less-mime2.patch
@@ -0,0 +1,36 @@
+commit 595310bb97fcba1cd23edd6b6e05afbe3d32869b
+Author: Tom Hughes <tom(a)compton.nu>
+Date: Thu Sep 20 18:55:15 2018 +0100
+
+ Update for npm(mime) version 2.x
+
+diff --git a/lib/less-node/environment.js b/lib/less-node/environment.js
+index 104222af..54956eac 100644
+--- a/lib/less-node/environment.js
++++ b/lib/less-node/environment.js
+@@ -3,10 +3,10 @@ module.exports = {
+ return new Buffer(str).toString('base64');
+ },
+ mimeLookup: function (filename) {
+- return require('mime').lookup(filename);
++ return require('mime').getType(filename);
+ },
+ charsetLookup: function (mime) {
+- return require('mime').charsets.lookup(mime);
++ return (/^text\/|^application\/(javascript|json)/).test(mime) ? 'UTF-8'
: null;
+ },
+ getSourceMapGenerator: function getSourceMapGenerator() {
+ return require('source-map').SourceMapGenerator;
+diff --git a/package.json b/package.json
+index c54bfbb5..53ea6947 100644
+--- a/package.json
++++ b/package.json
+@@ -44,7 +44,7 @@
+ "errno": "^0.1.1",
+ "graceful-fs": "^4.1.2",
+ "image-size": "~0.5.0",
+- "mime": "^1.4.1",
++ "mime": "^2.0.0",
+ "mkdirp": "^0.5.0",
+ "promise": "^7.1.1",
+ "request": "^2.83.0",
diff --git a/nodejs-less.spec b/nodejs-less.spec
index ec89301..7c3a9d8 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,97 +1,83 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 2.7.2
-Release: 6%{?dist}
+Version: 3.8.1
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
# everything else is ASL 2.0
License: ASL 2.0 and BSD
-
URL:
http://lesscss.org
-Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
-
+Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
+Patch0: nodejs-less-mime2.patch
BuildArch: noarch
-BuildRequires: nodejs-devel
+ExclusiveArch: %{nodejs_arches} noarch
+
BuildRequires: nodejs-packaging
+
+BuildRequires: npm(clone)
BuildRequires: npm(grunt-cli)
-BuildRequires: npm(source-map)
+BuildRequires: npm(image-size)
+BuildRequires: npm(less-plugin-clean-css)
BuildRequires: npm(mime)
-Requires: nodejs
-ExclusiveArch: %{nodejs_arches} noarch
+BuildRequires: npm(source-map)
+
+Provides: lessjs = %{version}-%{release}
+Obsoletes: lessjs < 1.3.3-2
-Provides: lessjs = %{version}-%{release}
-Obsoletes: lessjs < 1.3.3-2
%description
LESS extends CSS with dynamic behavior such as variables, mixins, operations
and functions. LESS runs on both the client-side (Chrome, Safari, Firefox)
and server-side, with Node.js and Rhino.
+
%prep
-%setup -q -n package
+%autosetup -p 1 -n package
+%nodejs_fixdep clone "^1.0.2"
+%nodejs_fixdep --optional --remove errno
+%nodejs_fixdep --optional --remove mkdirp
+%nodejs_fixdep --optional image-size "^0.6.3"
+%nodejs_fixdep --optional promise "^8.0.1"
+%nodejs_fixdep --optional request "^2.67.0"
+%nodejs_fixdep --optional source-map "^0.5.6"
+rm -rf node_modules dist/*.js
-# Remove pre-built files from the dist/ directory
-rm -f dist/*.js
%build
# Nothing to be built, we're just carrying around flat files
+
%check
%nodejs_symlink_deps --check --optional
-
-%{__nodejs} -e 'require("./")'
-
-# Simple test
-cat > testing.less << EOF
-@bg: #a1a1a1;
-
-body {
- background: @bg;
-}
-EOF
-
-workingdir=`pwd`
-pushd /
-%{buildroot}%{nodejs_sitelib}/less/bin/lessc - < $workingdir/testing.less
-popd
-
-# Some tests are known to fail because we don't have npm(image-size)
-# packaged, so make this just informative.
-%{__nodejs} test ||:
+rm test/less/import-module.less
+rm test/less-bom/import-module.less
+rm test/css/3rd-party/*.css
+rm test/less/3rd-party/*.less
+rm test/less-bom/3rd-party/*.less
+%{__nodejs} test
%install
+mkdir -p %{buildroot}%{nodejs_sitelib}/less
+cp -pr package.json browser.js index.js bin lib %{buildroot}/%{nodejs_sitelib}/less
mkdir -p %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{nodejs_sitelib}/less/lib
-chmod a+x bin/lessc
-
-cp -rp bin \
- browser.js \
- index.js \
- package.json \
- %{buildroot}/%{nodejs_sitelib}/less
-
-cp -rp lib/less \
- lib/less-browser \
- lib/less-node \
- lib/less-rhino \
- %{buildroot}/%{nodejs_sitelib}/less/lib
-
-# Install /usr/bin/lessc
-ln -s %{nodejs_sitelib}/less/bin/lessc \
- %{buildroot}%{_bindir}
-
+ln -s %{nodejs_sitelib}/less/bin/lessc %{buildroot}%{_bindir}
%nodejs_symlink_deps
+
%files
-%doc LICENSE README.md CHANGELOG.md CONTRIBUTING.md
+%doc README.md CHANGELOG.md CONTRIBUTING.md
+%license LICENSE
%{_bindir}/lessc
%{nodejs_sitelib}/less
%changelog
+* Thu Sep 20 2018 Tom Hughes <tom(a)compton.nu> - 3.8.1-1
+- Update to 3.8.1 upstream release
+
* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-6
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
diff --git a/sources b/sources
index 68b820f..8eefbc6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-SHA512 (less-2.7.2.tgz) =
acc355910aefff24a61c9752a177e69d52091496e477becc43b5337e5ad3eaaca717513bfe0990f8bd36d163604ad5b66e71982fbfb3a6ed746441d1af3db686
+SHA512 (less-3.8.1.tgz) =
f07146b9698bdc5850474687f3d7ac705341407fe712260f3f696d0c5750c36721136f18c76137961008abd636b1a6302d2c1aebdf6ce1d05511f098f03adfed
commit 434b007d961415debdea8fa65e815bd30436b300
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Jul 13 13:08:01 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 2fffb93..ec89301 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 2.7.2
-Release: 5%{?dist}
+Release: 6%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -92,6 +92,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Fri Jul 13 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-6
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
+
* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 2.7.2-5
- Escape macros in %%changelog
commit ee38238380c00ecd763913cef2e8562366fb2733
Author: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
Date: Fri Feb 9 09:05:16 2018 +0100
Escape macros in %changelog
Reference:
https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.o...
Signed-off-by: Igor Gnatenko <ignatenkobrain(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 46f7098..2fffb93 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 2.7.2
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -92,6 +92,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Fri Feb 09 2018 Igor Gnatenko <ignatenkobrain(a)fedoraproject.org> - 2.7.2-5
+- Escape macros in %%changelog
+
* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-4
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
@@ -179,7 +182,7 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
`.mixin();`)
- Do unit conversions with min and max functions. Don't pass through if not
understood, throw an error
-- Allow % to be passed on its own to the unit function e.g. `unit(10, %)`
+- Allow % to be passed on its own to the unit function e.g. `unit(10, %%)`
- Fix a bug when comparing a unit value to a non-unit value if the unit-value
was the multiple of another unit (e.g. cm, mm, deg etc.)
- Fix mixins with media queries in import reference files not being put into
commit 97c3a729130c981c6f6b0cd352df8438d55a4b6c
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Feb 8 06:24:24 2018 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
Signed-off-by: Fedora Release Engineering <releng(a)fedoraproject.org>
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 29a16fa..46f7098 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 2.7.2
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -92,6 +92,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Thu Feb 08 2018 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-4
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
+
* Thu Jul 27 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
commit a60191f5f794bcec2f68481e8ee7c4247c2e9163
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Jul 27 00:11:20 2017 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 62599bd..29a16fa 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 2.7.2
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -92,6 +92,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Thu Jul 27 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
+
* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
commit f67d159f2a83e73ceee1049c2e68da70d56f30f0
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Fri Feb 10 23:21:17 2017 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 2db9b34..62599bd 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 2.7.2
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -92,6 +92,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Fri Feb 10 2017 Fedora Release Engineering <releng(a)fedoraproject.org> - 2.7.2-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
+
* Thu Jan 19 2017 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.2-1
- Update to 2.7.2
commit 2ef65cec2fd4050c9e8e339346dcc64f2dd02840
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Thu Jan 19 09:18:06 2017 -0500
Update to 2.7.2
diff --git a/.gitignore b/.gitignore
index 54c6669..d2cbf23 100644
--- a/.gitignore
+++ b/.gitignore
@@ -10,3 +10,4 @@
/less-1.7.5.tgz
/less-2.6.1.tgz
/less-2.7.1.tgz
+/less-2.7.2.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 70643b2..2db9b34 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 2.7.1
+Version: 2.7.2
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -92,6 +92,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Thu Jan 19 2017 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.2-1
+- Update to 2.7.2
+
* Tue May 10 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.1-1
- Update to 2.7.1
- Compatibility with Node.js 6.x
diff --git a/sources b/sources
index a797839..68b820f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9b1b15471ce700d483554c780e5d4d61 less-2.7.1.tgz
+SHA512 (less-2.7.2.tgz) =
acc355910aefff24a61c9752a177e69d52091496e477becc43b5337e5ad3eaaca717513bfe0990f8bd36d163604ad5b66e71982fbfb3a6ed746441d1af3db686
commit ea0c4d2b112828e1967e779680ed1b85a3054e4e
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Tue May 10 09:02:35 2016 -0400
Update to 2.7.1
- Compatibility with Node.js 6.x
-
https://github.com/less/less.js/blob/v2.7.1/CHANGELOG.md
diff --git a/.gitignore b/.gitignore
index a796ded..54c6669 100644
--- a/.gitignore
+++ b/.gitignore
@@ -9,3 +9,4 @@
/less-1.7.0.tgz
/less-1.7.5.tgz
/less-2.6.1.tgz
+/less-2.7.1.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 2e4e21e..70643b2 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,8 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 2.6.1
-Release: 2%{?dist}
+Version: 2.7.1
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -92,6 +92,11 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Tue May 10 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.7.1-1
+- Update to 2.7.1
+- Compatibility with Node.js 6.x
+-
https://github.com/less/less.js/blob/v2.7.1/CHANGELOG.md
+
* Fri Apr 08 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-2
- Fix missing lib components
- Add basic test for lessc
diff --git a/sources b/sources
index 79a648f..a797839 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-9b47d7a0fec8613aad8a805917fe698b less-2.6.1.tgz
+9b1b15471ce700d483554c780e5d4d61 less-2.7.1.tgz
commit 096193285869dcc254332e9e5f321c930105d698
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Fri Apr 8 09:45:25 2016 -0400
Fix missing lib components
- Add basic test for lessc
- Drop unused patches
- Resolves# RHBZ#1324883
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
deleted file mode 100644
index e33d49b..0000000
--- a/0001-Require-include-files-from-the-default-location.patch
+++ /dev/null
@@ -1,48 +0,0 @@
-From 8c08c98e0b63163de9b73669abaf15dcb47e5c97 Mon Sep 17 00:00:00 2001
-From: Stephen Gallagher <sgallagh(a)redhat.com>
-Date: Tue, 29 Mar 2016 09:14:52 -0400
-Subject: [PATCH] Require include files from the default location
-
----
- bin/lessc | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
-
-diff --git a/bin/lessc b/bin/lessc
-index 4907bc36f62e427e39903ca47be0c0c3ba613d13..8c484539a2e06b4b21af7b235d397fbb66bcbbdf
100755
---- a/bin/lessc
-+++ b/bin/lessc
-@@ -1,20 +1,20 @@
- #!/usr/bin/env node
-
- var path = require('path'),
-- fs = require('../lib/less-node/fs'),
-+ fs = require('less-node/fs'),
- os = require("os"),
- errno,
- mkdirp;
-
- try {
- errno = require('errno');
- } catch (err) {
- errno = null;
- }
-
--var less = require('../lib/less-node'),
-+var less = require('less-node'),
- pluginLoader = new less.PluginLoader(less),
- plugin,
- plugins = [];
-
- var args = process.argv.slice(1);
-@@ -483,6 +483,6 @@ function printUsage() {
-
- process.stdin.on('end', function() {
- parseLessFile(false, buffer);
- });
- }
--})();
-\ No newline at end of file
-+})();
---
-2.7.3
-
diff --git a/0002-Fedora-disable-sourcemap-tests.patch
b/0002-Fedora-disable-sourcemap-tests.patch
deleted file mode 100644
index b3cd746..0000000
--- a/0002-Fedora-disable-sourcemap-tests.patch
+++ /dev/null
@@ -1,33 +0,0 @@
-From a318f959688a23603e2868568f4489edaa100f86 Mon Sep 17 00:00:00 2001
-From: Stephen Gallagher <sgallagh(a)redhat.com>
-Date: Thu, 4 Sep 2014 10:14:33 -0400
-Subject: [PATCH 2/2] Fedora: disable sourcemap tests
-
----
- test/index.js | 3 +++
- 1 file changed, 3 insertions(+)
-
-diff --git a/test/index.js b/test/index.js
-index 33e79637f05dca0cade43fccb69eddc739584ea6..ed2d4c391b6e605eafdc384960195d3824387a6b
100644
---- a/test/index.js
-+++ b/test/index.js
-@@ -29,6 +29,7 @@ lessTester.runTestSet({strictMath: true, dumpLineNumbers:
'all'}, "debug/", null
- lessTester.runTestSet({strictMath: true, relativeUrls: false, rootpath: "folder
(1)/"}, "static-urls/");
- lessTester.runTestSet({strictMath: true, compress: true}, "compression/");
- lessTester.runTestSet({}, "legacy/");
-+/*
- lessTester.runTestSet({strictMath: true, strictUnits: true, sourceMap: true, globalVars:
true }, "sourcemaps/",
- lessTester.testSourcemap, null, null,
- function(filename, type) {
-@@ -37,6 +38,8 @@ lessTester.runTestSet({strictMath: true, strictUnits: true, sourceMap:
true, glo
- }
- return path.join('test/sourcemaps', filename) + '.json';
- });
-+
-+*/
- lessTester.runTestSet({globalVars: true, banner: "/**\n * Test\n */\n"},
"globalVars/",
- null, null, null, function(name) { return path.join('test/less/', name) +
'.json'; });
- lessTester.runTestSet({modifyVars: true}, "modifyVars/",
---
-2.1.0
-
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 93b8a19..2e4e21e 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 2.6.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -12,10 +12,6 @@ License: ASL 2.0 and BSD
URL:
http://lesscss.org
Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
-# Since we're installing this in a global location, fix the require()
-# calls to point there.
-Patch0001: 0001-Require-include-files-from-the-default-location.patch
-
BuildArch: noarch
BuildRequires: nodejs-devel
BuildRequires: nodejs-packaging
@@ -36,8 +32,6 @@ and server-side, with Node.js and Rhino.
%prep
%setup -q -n package
-%patch0001 -p1
-
# Remove pre-built files from the dist/ directory
rm -f dist/*.js
@@ -49,16 +43,41 @@ rm -f dist/*.js
%{__nodejs} -e 'require("./")'
+# Simple test
+cat > testing.less << EOF
+@bg: #a1a1a1;
+
+body {
+ background: @bg;
+}
+EOF
+
+workingdir=`pwd`
+pushd /
+%{buildroot}%{nodejs_sitelib}/less/bin/lessc - < $workingdir/testing.less
+popd
+
# Some tests are known to fail because we don't have npm(image-size)
# packaged, so make this just informative.
-node test ||:
+%{__nodejs} test ||:
%install
mkdir -p %{buildroot}%{_bindir}
-mkdir -p %{buildroot}%{nodejs_sitelib}/less
+mkdir -p %{buildroot}%{nodejs_sitelib}/less/lib
chmod a+x bin/lessc
-cp -rp bin package.json lib/less/* %{buildroot}/%{nodejs_sitelib}/less
+
+cp -rp bin \
+ browser.js \
+ index.js \
+ package.json \
+ %{buildroot}/%{nodejs_sitelib}/less
+
+cp -rp lib/less \
+ lib/less-browser \
+ lib/less-node \
+ lib/less-rhino \
+ %{buildroot}/%{nodejs_sitelib}/less/lib
# Install /usr/bin/lessc
ln -s %{nodejs_sitelib}/less/bin/lessc \
@@ -73,6 +92,12 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Fri Apr 08 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-2
+- Fix missing lib components
+- Add basic test for lessc
+- Drop unused patches
+- Resolves# RHBZ#1324883
+
* Tue Mar 29 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-1
- Upgrade to latest upstream stable release 2.6.1
-
https://github.com/less/less.js/blob/v2.6.1/CHANGELOG.md
commit ef613f768d0b2507f7475b2abc153980e88d5fa3
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Tue Mar 29 09:54:03 2016 -0400
Upgrade to latest upstream stable release 2.6.1
-
https://github.com/less/less.js/blob/v2.6.1/CHANGELOG.md
diff --git a/.gitignore b/.gitignore
index 49bc745..a796ded 100644
--- a/.gitignore
+++ b/.gitignore
@@ -8,3 +8,4 @@
/less-1.6.3.tgz
/less-1.7.0.tgz
/less-1.7.5.tgz
+/less-2.6.1.tgz
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
index 2748b08..e33d49b 100644
--- a/0001-Require-include-files-from-the-default-location.patch
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -1,57 +1,48 @@
-From 63768b5d3f073c39b45c4541fae8d0b36d9eb4bd Mon Sep 17 00:00:00 2001
+From 8c08c98e0b63163de9b73669abaf15dcb47e5c97 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
-Date: Wed, 19 Dec 2012 09:06:24 -0500
-Subject: [PATCH 1/2] Require include files from the default location
+Date: Tue, 29 Mar 2016 09:14:52 -0400
+Subject: [PATCH] Require include files from the default location
---
- bin/lessc | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
+ bin/lessc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/lessc b/bin/lessc
-index 684200287be4ad982f76924a2bcd43a4fca5b389..859bf89372599f584dcc85e0720916b6bf607297
100755
+index 4907bc36f62e427e39903ca47be0c0c3ba613d13..8c484539a2e06b4b21af7b235d397fbb66bcbbdf
100755
--- a/bin/lessc
+++ b/bin/lessc
-@@ -1,11 +1,11 @@
+@@ -1,20 +1,20 @@
#!/usr/bin/env node
var path = require('path'),
-- fs = require('../lib/less/fs'),
-+ fs = require('less/fs'),
- os = require('os'),
+- fs = require('../lib/less-node/fs'),
++ fs = require('less-node/fs'),
+ os = require("os"),
+ errno,
mkdirp;
--var less = require('../lib/less');
-+var less = require('less');
- var args = process.argv.slice(1);
- var options = {
- depends: false,
-@@ -96,7 +96,7 @@ args = args.filter(function (arg) {
- break;
- case 'h':
- case 'help':
-- require('../lib/less/lessc_helper').printUsage();
-+ require('less/lessc_helper').printUsage();
- continueProcessing = false;
- case 'x':
- case 'compress':
-@@ -251,7 +251,7 @@ args = args.filter(function (arg) {
- }
- break;
- default:
-- require('../lib/less/lessc_helper').printUsage();
-+ require('less/lessc_helper').printUsage();
- continueProcessing = false;
- currentErrorcode = 1;
- break;
-@@ -296,7 +296,7 @@ if (options.cleancss && options.sourceMap) {
- if (! input) {
- console.log("lessc: no input files");
- console.log("");
-- require('../lib/less/lessc_helper').printUsage();
-+ require('less/lessc_helper').printUsage();
- currentErrorcode = 1;
- return;
+ try {
+ errno = require('errno');
+ } catch (err) {
+ errno = null;
}
+
+-var less = require('../lib/less-node'),
++var less = require('less-node'),
+ pluginLoader = new less.PluginLoader(less),
+ plugin,
+ plugins = [];
+
+ var args = process.argv.slice(1);
+@@ -483,6 +483,6 @@ function printUsage() {
+
+ process.stdin.on('end', function() {
+ parseLessFile(false, buffer);
+ });
+ }
+-})();
+\ No newline at end of file
++})();
--
-2.1.0
+2.7.3
diff --git a/nodejs-less.spec b/nodejs-less.spec
index ba10ac1..93b8a19 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,8 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.7.5
-Release: 3%{?dist}
+Version: 2.6.1
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -16,16 +16,12 @@ Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
# calls to point there.
Patch0001: 0001-Require-include-files-from-the-default-location.patch
-# The sourcemap tests are quite broken. They rely on matching a pre-
-# calculated result, but the ordering of the resulting dictionary is
-# not necessarily deterministic. We'll disable this test until
-# upstream fixes the test.
-Patch0002: 0002-Fedora-disable-sourcemap-tests.patch
-
BuildArch: noarch
BuildRequires: nodejs-devel
BuildRequires: nodejs-packaging
-BuildRequires: nodejs-grunt-cli
+BuildRequires: npm(grunt-cli)
+BuildRequires: npm(source-map)
+BuildRequires: npm(mime)
Requires: nodejs
ExclusiveArch: %{nodejs_arches} noarch
@@ -41,22 +37,21 @@ and server-side, with Node.js and Rhino.
%setup -q -n package
%patch0001 -p1
-%patch0002 -p1
# Remove pre-built files from the dist/ directory
rm -f dist/*.js
-# enable compression using ycssmin
-%nodejs_fixdep ycssmin '~1.0.1'
-
%build
# Nothing to be built, we're just carrying around flat files
%check
-%nodejs_symlink_deps --check
-# Tests have a bug in them and will fail to find source-map,
-# even if it is installed.
-node test
+%nodejs_symlink_deps --check --optional
+
+%{__nodejs} -e 'require("./")'
+
+# Some tests are known to fail because we don't have npm(image-size)
+# packaged, so make this just informative.
+node test ||:
%install
@@ -78,6 +73,10 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Tue Mar 29 2016 Stephen Gallagher <sgallagh(a)redhat.com> - 2.6.1-1
+- Upgrade to latest upstream stable release 2.6.1
+-
https://github.com/less/less.js/blob/v2.6.1/CHANGELOG.md
+
* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.7.5-3
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
diff --git a/sources b/sources
index 6c4f23d..79a648f 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b5479aedd2aa26c8f7a1b87e260c6343 less-1.7.5.tgz
+9b47d7a0fec8613aad8a805917fe698b less-2.6.1.tgz
commit 10718d58a68e3b52b153d24a9f6c525338501673
Author: Fedora Release Engineering <releng(a)fedoraproject.org>
Date: Thu Feb 4 10:09:50 2016 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 2f707bb..ba10ac1 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 1.7.5
-Release: 2%{?dist}
+Release: 3%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -78,6 +78,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Thu Feb 04 2016 Fedora Release Engineering <releng(a)fedoraproject.org> - 1.7.5-3
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
+
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.5-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
commit 58365f3e3ec3cb9e50b84b4fd20123e15e8fe2ad
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Wed Jun 17 22:35:20 2015 +0000
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 6eb163f..2f707bb 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 1.7.5
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -78,6 +78,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Wed Jun 17 2015 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.5-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
+
* Thu Sep 04 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.5-1
- New upstream release 1.7.5
-
https://github.com/less/less.js/blob/v1.7.5/CHANGELOG.md
commit 5ef8eaa611e0a19d2f015c92446ed8fecc856bea
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Thu Sep 4 14:13:19 2014 -0400
New upstream release 1.7.5
-
https://github.com/less/less.js/blob/v1.7.5/CHANGELOG.md
- Enable tests in RPM build
- Disable broken source-map test
diff --git a/.gitignore b/.gitignore
index 1e79884..49bc745 100644
--- a/.gitignore
+++ b/.gitignore
@@ -7,3 +7,4 @@
/less-1.6.1.tgz
/less-1.6.3.tgz
/less-1.7.0.tgz
+/less-1.7.5.tgz
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
index d236bff..2748b08 100644
--- a/0001-Require-include-files-from-the-default-location.patch
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -1,4 +1,4 @@
-From 6135de47cbfbbb9bcebe3df7a8b2418b9f0f36fa Mon Sep 17 00:00:00 2001
+From 63768b5d3f073c39b45c4541fae8d0b36d9eb4bd Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed, 19 Dec 2012 09:06:24 -0500
Subject: [PATCH 1/2] Require include files from the default location
@@ -8,16 +8,15 @@ Subject: [PATCH 1/2] Require include files from the default location
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bin/lessc b/bin/lessc
-index 809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc6770056605
100755
+index 684200287be4ad982f76924a2bcd43a4fca5b389..859bf89372599f584dcc85e0720916b6bf607297
100755
--- a/bin/lessc
+++ b/bin/lessc
-@@ -1,12 +1,12 @@
+@@ -1,11 +1,11 @@
#!/usr/bin/env node
var path = require('path'),
- fs = require('../lib/less/fs'),
+ fs = require('less/fs'),
- sys = require('util'),
os = require('os'),
mkdirp;
@@ -26,7 +25,7 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
var args = process.argv.slice(1);
var options = {
depends: false,
-@@ -97,7 +97,7 @@ args = args.filter(function (arg) {
+@@ -96,7 +96,7 @@ args = args.filter(function (arg) {
break;
case 'h':
case 'help':
@@ -35,7 +34,7 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
continueProcessing = false;
case 'x':
case 'compress':
-@@ -249,7 +249,7 @@ args = args.filter(function (arg) {
+@@ -251,7 +251,7 @@ args = args.filter(function (arg) {
}
break;
default:
@@ -44,7 +43,7 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
continueProcessing = false;
currentErrorcode = 1;
break;
-@@ -294,7 +294,7 @@ if (options.cleancss && options.sourceMap) {
+@@ -296,7 +296,7 @@ if (options.cleancss && options.sourceMap) {
if (! input) {
console.log("lessc: no input files");
console.log("");
@@ -54,5 +53,5 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
return;
}
--
-1.9.3
+2.1.0
diff --git a/0002-Fedora-disable-sourcemap-tests.patch
b/0002-Fedora-disable-sourcemap-tests.patch
new file mode 100644
index 0000000..b3cd746
--- /dev/null
+++ b/0002-Fedora-disable-sourcemap-tests.patch
@@ -0,0 +1,33 @@
+From a318f959688a23603e2868568f4489edaa100f86 Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <sgallagh(a)redhat.com>
+Date: Thu, 4 Sep 2014 10:14:33 -0400
+Subject: [PATCH 2/2] Fedora: disable sourcemap tests
+
+---
+ test/index.js | 3 +++
+ 1 file changed, 3 insertions(+)
+
+diff --git a/test/index.js b/test/index.js
+index 33e79637f05dca0cade43fccb69eddc739584ea6..ed2d4c391b6e605eafdc384960195d3824387a6b
100644
+--- a/test/index.js
++++ b/test/index.js
+@@ -29,6 +29,7 @@ lessTester.runTestSet({strictMath: true, dumpLineNumbers:
'all'}, "debug/", null
+ lessTester.runTestSet({strictMath: true, relativeUrls: false, rootpath: "folder
(1)/"}, "static-urls/");
+ lessTester.runTestSet({strictMath: true, compress: true}, "compression/");
+ lessTester.runTestSet({}, "legacy/");
++/*
+ lessTester.runTestSet({strictMath: true, strictUnits: true, sourceMap: true, globalVars:
true }, "sourcemaps/",
+ lessTester.testSourcemap, null, null,
+ function(filename, type) {
+@@ -37,6 +38,8 @@ lessTester.runTestSet({strictMath: true, strictUnits: true, sourceMap:
true, glo
+ }
+ return path.join('test/sourcemaps', filename) + '.json';
+ });
++
++*/
+ lessTester.runTestSet({globalVars: true, banner: "/**\n * Test\n */\n"},
"globalVars/",
+ null, null, null, function(name) { return path.join('test/less/', name) +
'.json'; });
+ lessTester.runTestSet({modifyVars: true}, "modifyVars/",
+--
+2.1.0
+
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 66154d6..6eb163f 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.7.3
+Version: 1.7.5
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -16,6 +16,12 @@ Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
# calls to point there.
Patch0001: 0001-Require-include-files-from-the-default-location.patch
+# The sourcemap tests are quite broken. They rely on matching a pre-
+# calculated result, but the ordering of the resulting dictionary is
+# not necessarily deterministic. We'll disable this test until
+# upstream fixes the test.
+Patch0002: 0002-Fedora-disable-sourcemap-tests.patch
+
BuildArch: noarch
BuildRequires: nodejs-devel
BuildRequires: nodejs-packaging
@@ -35,6 +41,7 @@ and server-side, with Node.js and Rhino.
%setup -q -n package
%patch0001 -p1
+%patch0002 -p1
# Remove pre-built files from the dist/ directory
rm -f dist/*.js
@@ -46,9 +53,10 @@ rm -f dist/*.js
# Nothing to be built, we're just carrying around flat files
%check
+%nodejs_symlink_deps --check
# Tests have a bug in them and will fail to find source-map,
# even if it is installed.
-# node test
+node test
%install
@@ -70,9 +78,15 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Thu Sep 04 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.5-1
+- New upstream release 1.7.5
+-
https://github.com/less/less.js/blob/v1.7.5/CHANGELOG.md
+- Enable tests in RPM build
+- Disable broken source-map test
+
* Mon Jun 23 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.3-1
- New upstream release 1.7.3
--
https://github.com/less/less.js/blob/v1.7.1/CHANGELOG.md
+-
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
- Fix detection of recursive mixins
- Fix the paths option for later versions of node (0.10+)
- Fix paths joining bug
diff --git a/sources b/sources
index a3d20f8..6c4f23d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ff35fa927dbaf5daa956a1074ad9773a less-1.7.0.tgz
+b5479aedd2aa26c8f7a1b87e260c6343 less-1.7.5.tgz
commit 4256e5774a0b61e7bcace39a3269a93bb24acaee
Author: T.C. Hollingsworth <tchollingsworth(a)gmail.com>
Date: Tue Jul 29 17:49:48 2014 -0700
Revert "New upstream release 1.7.3"
This update was not completed in Rawhide and therefore will
not be pushed back to EPEL7 yet.
This reverts commit e5d00458eec1251f5af4dadb158cd6e78712d57f.
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
index d236bff..6f1ec0b 100644
--- a/0001-Require-include-files-from-the-default-location.patch
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -1,23 +1,17 @@
-From 6135de47cbfbbb9bcebe3df7a8b2418b9f0f36fa Mon Sep 17 00:00:00 2001
+From 18e3f3f3a1955e0159b4e8c6141518a6a3cd0975 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed, 19 Dec 2012 09:06:24 -0500
-Subject: [PATCH 1/2] Require include files from the default location
+Subject: [PATCH] Require include files from the default location
---
- bin/lessc | 10 +++++-----
- 1 file changed, 5 insertions(+), 5 deletions(-)
+ bin/lessc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/lessc b/bin/lessc
-index 809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc6770056605
100755
+index e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fda5414d09
100755
--- a/bin/lessc
+++ b/bin/lessc
-@@ -1,12 +1,12 @@
- #!/usr/bin/env node
-
- var path = require('path'),
-- fs = require('../lib/less/fs'),
-+ fs = require('less/fs'),
- sys = require('util'),
+@@ -6,7 +6,7 @@ var path = require('path'),
os = require('os'),
mkdirp;
@@ -26,7 +20,7 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
var args = process.argv.slice(1);
var options = {
depends: false,
-@@ -97,7 +97,7 @@ args = args.filter(function (arg) {
+@@ -96,7 +96,7 @@ args = args.filter(function (arg) {
break;
case 'h':
case 'help':
@@ -35,7 +29,7 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
continueProcessing = false;
case 'x':
case 'compress':
-@@ -249,7 +249,7 @@ args = args.filter(function (arg) {
+@@ -243,7 +243,7 @@ args = args.filter(function (arg) {
}
break;
default:
@@ -44,7 +38,7 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
continueProcessing = false;
currentErrorcode = 1;
break;
-@@ -294,7 +294,7 @@ if (options.cleancss && options.sourceMap) {
+@@ -288,7 +288,7 @@ if (options.cleancss && options.sourceMap) {
if (! input) {
console.log("lessc: no input files");
console.log("");
@@ -54,5 +48,5 @@ index
809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc67
return;
}
--
-1.9.3
+1.8.4.2
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 66154d6..c5e83b6 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,8 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.7.3
-Release: 1%{?dist}
+Version: 1.7.0
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -46,9 +46,7 @@ rm -f dist/*.js
# Nothing to be built, we're just carrying around flat files
%check
-# Tests have a bug in them and will fail to find source-map,
-# even if it is installed.
-# node test
+make %{?_smp_mflags} test
%install
@@ -70,32 +68,6 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
-* Mon Jun 23 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.3-1
-- New upstream release 1.7.3
--
https://github.com/less/less.js/blob/v1.7.1/CHANGELOG.md
-- Fix detection of recursive mixins
-- Fix the paths option for later versions of node (0.10+)
-- Fix paths joining bug
-- Fix a number precision issue on some versions of node
-- Fix an IE8 issue with importing css files
-- Fix IE11 detection for xhr requests
-- Modify var works if the last line of a less file is a comment.
-- Better detection of valid hex colour codes
-- Some stability fixes to support a low number of available file handles
-- Support comparing values with different quote types e.g.
- "test" now === 'test'
-- Give better error messages if accessing a url that returns a non 200 status
- code
-- Fix the e() function when passed empty string
-- Several minor bug fixes
--
https://github.com/less/less.js/blob/v1.7.2/CHANGELOG.md
-- Allow paths option to be a string (in 1.7.1 less started throwing an
- exception instead of incorrectly processing the string as an array of chars)
-- Do not round numbers when used with javascript (introduced 1.7.0)
--
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
-- Do not round the results of color functions, like lightness, hue, luma etc.
-- Support cover and contain keywords in background definitions
-
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.0-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
commit e5d00458eec1251f5af4dadb158cd6e78712d57f
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Mon Jun 23 08:56:29 2014 -0400
New upstream release 1.7.3
-
https://github.com/less/less.js/blob/v1.7.1/CHANGELOG.md
- Fix detection of recursive mixins
- Fix the paths option for later versions of node (0.10+)
- Fix paths joining bug
- Fix a number precision issue on some versions of node
- Fix an IE8 issue with importing css files
- Fix IE11 detection for xhr requests
- Modify var works if the last line of a less file is a comment.
- Better detection of valid hex colour codes
- Some stability fixes to support a low number of available file handles
- Support comparing values with different quote types e.g.
"test" now === 'test'
- Give better error messages if accessing a url that returns a non 200 status
code
- Fix the e() function when passed empty string
- Several minor bug fixes
-
https://github.com/less/less.js/blob/v1.7.2/CHANGELOG.md
- Allow paths option to be a string (in 1.7.1 less started throwing an
exception instead of incorrectly processing the string as an array of chars)
- Do not round numbers when used with javascript (introduced 1.7.0)
-
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
- Do not round the results of color functions, like lightness, hue, luma etc.
- Support cover and contain keywords in background definitions
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
index 6f1ec0b..d236bff 100644
--- a/0001-Require-include-files-from-the-default-location.patch
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -1,17 +1,23 @@
-From 18e3f3f3a1955e0159b4e8c6141518a6a3cd0975 Mon Sep 17 00:00:00 2001
+From 6135de47cbfbbb9bcebe3df7a8b2418b9f0f36fa Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed, 19 Dec 2012 09:06:24 -0500
-Subject: [PATCH] Require include files from the default location
+Subject: [PATCH 1/2] Require include files from the default location
---
- bin/lessc | 8 ++++----
- 1 file changed, 4 insertions(+), 4 deletions(-)
+ bin/lessc | 10 +++++-----
+ 1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/bin/lessc b/bin/lessc
-index e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fda5414d09
100755
+index 809741d870030ae4f177788315e11d35885b60ae..4b2471bfc5d7048aee43d8364af0cc6770056605
100755
--- a/bin/lessc
+++ b/bin/lessc
-@@ -6,7 +6,7 @@ var path = require('path'),
+@@ -1,12 +1,12 @@
+ #!/usr/bin/env node
+
+ var path = require('path'),
+- fs = require('../lib/less/fs'),
++ fs = require('less/fs'),
+ sys = require('util'),
os = require('os'),
mkdirp;
@@ -20,7 +26,7 @@ index
e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fd
var args = process.argv.slice(1);
var options = {
depends: false,
-@@ -96,7 +96,7 @@ args = args.filter(function (arg) {
+@@ -97,7 +97,7 @@ args = args.filter(function (arg) {
break;
case 'h':
case 'help':
@@ -29,7 +35,7 @@ index
e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fd
continueProcessing = false;
case 'x':
case 'compress':
-@@ -243,7 +243,7 @@ args = args.filter(function (arg) {
+@@ -249,7 +249,7 @@ args = args.filter(function (arg) {
}
break;
default:
@@ -38,7 +44,7 @@ index
e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fd
continueProcessing = false;
currentErrorcode = 1;
break;
-@@ -288,7 +288,7 @@ if (options.cleancss && options.sourceMap) {
+@@ -294,7 +294,7 @@ if (options.cleancss && options.sourceMap) {
if (! input) {
console.log("lessc: no input files");
console.log("");
@@ -48,5 +54,5 @@ index
e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fd
return;
}
--
-1.8.4.2
+1.9.3
diff --git a/nodejs-less.spec b/nodejs-less.spec
index c5e83b6..66154d6 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,8 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.7.0
-Release: 2%{?dist}
+Version: 1.7.3
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -46,7 +46,9 @@ rm -f dist/*.js
# Nothing to be built, we're just carrying around flat files
%check
-make %{?_smp_mflags} test
+# Tests have a bug in them and will fail to find source-map,
+# even if it is installed.
+# node test
%install
@@ -68,6 +70,32 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Mon Jun 23 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.3-1
+- New upstream release 1.7.3
+-
https://github.com/less/less.js/blob/v1.7.1/CHANGELOG.md
+- Fix detection of recursive mixins
+- Fix the paths option for later versions of node (0.10+)
+- Fix paths joining bug
+- Fix a number precision issue on some versions of node
+- Fix an IE8 issue with importing css files
+- Fix IE11 detection for xhr requests
+- Modify var works if the last line of a less file is a comment.
+- Better detection of valid hex colour codes
+- Some stability fixes to support a low number of available file handles
+- Support comparing values with different quote types e.g.
+ "test" now === 'test'
+- Give better error messages if accessing a url that returns a non 200 status
+ code
+- Fix the e() function when passed empty string
+- Several minor bug fixes
+-
https://github.com/less/less.js/blob/v1.7.2/CHANGELOG.md
+- Allow paths option to be a string (in 1.7.1 less started throwing an
+ exception instead of incorrectly processing the string as an array of chars)
+- Do not round numbers when used with javascript (introduced 1.7.0)
+-
https://github.com/less/less.js/blob/v1.7.3/CHANGELOG.md
+- Do not round the results of color functions, like lightness, hue, luma etc.
+- Support cover and contain keywords in background definitions
+
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.0-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
commit 68054d3ee53965929317f18c95b6c182a87d5238
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Sat Jun 7 08:53:33 2014 -0500
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
diff --git a/nodejs-less.spec b/nodejs-less.spec
index a5ab3bf..c5e83b6 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 1.7.0
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -68,6 +68,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Sat Jun 07 2014 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.7.0-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
+
* Wed Mar 05 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.0-1
- New upstream release 1.7.0
-
https://github.com/less/less.js/blob/v1.7.0/CHANGELOG.md
commit 37b45b93a685bc9408ebe9f8e534af5a49b6dede
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed Mar 5 15:33:09 2014 -0500
New upstream release 1.7.0
-
https://github.com/less/less.js/blob/v1.7.0/CHANGELOG.md
- Add support for rulesets in variables and passed to mixins to allow wrapping
- Change luma to follow the w3c spec, luma is available as luminance. Contrast
still uses luma so you may see differences if your threshold % is close to
the existing calculated luma.
- Upgraded clean css which means the --selectors-merge-mode is now renamed
--compatibility
- Add support for using variables with @keyframes, @namespace, @charset
- Support property merging with +_ when spaces are needed and keep + for comma
separated
- Imports now always import once consistently- a race condition meant
previously certain configurations would lead to a different ordering of
files
- Fix support for `.mixin(@args...)` when called with no args (e.g.
`.mixin();`)
- Do unit conversions with min and max functions. Don't pass through if not
understood, throw an error
- Allow % to be passed on its own to the unit function e.g. `unit(10, %)`
- Fix a bug when comparing a unit value to a non-unit value if the unit-value
was the multiple of another unit (e.g. cm, mm, deg etc.)
- Fix mixins with media queries in import reference files not being put into
the output (they now output, they used to incorrectly not)
- Fix lint mode- now reports all errors
- Fixed a small scope issue with & {} selector rulesets incorrectly making
mixins visible- regression from 1.6.2
- Browser- added log level "debug" at 3 to get less logging, The default
has
changed so unless you set the value to the default you won't see a
difference
- Browser- logLevel takes effect regardless of the environment (production/dev)
- Browser- added postProcessor option, a function called to post-process the
css before adding to the page
- Browser- use the right request for file access in IE
diff --git a/.gitignore b/.gitignore
index 6f47782..1e79884 100644
--- a/.gitignore
+++ b/.gitignore
@@ -6,3 +6,4 @@
/less-1.6.0.tgz
/less-1.6.1.tgz
/less-1.6.3.tgz
+/less-1.7.0.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 12bbca8..a5ab3bf 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.6.3
+Version: 1.7.0
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -19,6 +19,7 @@ Patch0001: 0001-Require-include-files-from-the-default-location.patch
BuildArch: noarch
BuildRequires: nodejs-devel
BuildRequires: nodejs-packaging
+BuildRequires: nodejs-grunt-cli
Requires: nodejs
ExclusiveArch: %{nodejs_arches} noarch
@@ -67,6 +68,41 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Wed Mar 05 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.7.0-1
+- New upstream release 1.7.0
+-
https://github.com/less/less.js/blob/v1.7.0/CHANGELOG.md
+- Add support for rulesets in variables and passed to mixins to allow wrapping
+- Change luma to follow the w3c spec, luma is available as luminance. Contrast
+ still uses luma so you may see differences if your threshold % is close to
+ the existing calculated luma.
+- Upgraded clean css which means the --selectors-merge-mode is now renamed
+ --compatibility
+- Add support for using variables with @keyframes, @namespace, @charset
+- Support property merging with +_ when spaces are needed and keep + for comma
+ separated
+- Imports now always import once consistently- a race condition meant
+ previously certain configurations would lead to a different ordering of
+ files
+- Fix support for `.mixin(@args...)` when called with no args (e.g.
+ `.mixin();`)
+- Do unit conversions with min and max functions. Don't pass through if not
+ understood, throw an error
+- Allow % to be passed on its own to the unit function e.g. `unit(10, %)`
+- Fix a bug when comparing a unit value to a non-unit value if the unit-value
+ was the multiple of another unit (e.g. cm, mm, deg etc.)
+- Fix mixins with media queries in import reference files not being put into
+ the output (they now output, they used to incorrectly not)
+- Fix lint mode- now reports all errors
+- Fixed a small scope issue with & {} selector rulesets incorrectly making
+ mixins visible- regression from 1.6.2
+- Browser- added log level "debug" at 3 to get less logging, The default has
+ changed so unless you set the value to the default you won't see a
+ difference
+- Browser- logLevel takes effect regardless of the environment (production/dev)
+- Browser- added postProcessor option, a function called to post-process the
+ css before adding to the page
+- Browser- use the right request for file access in IE
+
* Tue Feb 25 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.6.3-1
- New upstream release 1.6.3
-
https://github.com/less/less.js/blob/v1.6.3/CHANGELOG.md
diff --git a/sources b/sources
index 09b4bcb..a3d20f8 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-25a1946e2f0aeb48d87a7c533f1e3fc3 less-1.6.3.tgz
+ff35fa927dbaf5daa956a1074ad9773a less-1.7.0.tgz
commit bebb8ca6ee6fedab3332ae396ac04fff45b40c79
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Tue Feb 25 09:53:14 2014 -0500
New upstream release 1.6.3
-
https://github.com/less/less.js/blob/v1.6.3/CHANGELOG.md
- Fix issue with calling toCSS twice not working in some situations (like with
bootstrap 2)
- The Rhino release is fixed!
- ability to use uppercase colours
- Fix a nasty bug causing syntax errors when selector interpolation is preceded
by a long comment (and some other cases)
- Fix a major bug with the variable scope in guards on selectors (e.g. not
mixins)
- Fold in & when () { to the current selector rather than duplicating it
- fix another issue with array prototypes
- add a url-args option which adds a value to all urls (for cache busting)
- Round numbers to 8 decimal places - thereby stopping javascript precision
errors
- some improvements to the default() function in more complex scenarios
- improved missing '{' and '(' detection
diff --git a/.gitignore b/.gitignore
index 4bb749b..6f47782 100644
--- a/.gitignore
+++ b/.gitignore
@@ -5,3 +5,4 @@
/less-1.5.1.tgz
/less-1.6.0.tgz
/less-1.6.1.tgz
+/less-1.6.3.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 53019c7..12bbca8 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.6.1
+Version: 1.6.3
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -67,6 +67,25 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Tue Feb 25 2014 Stephen Gallagher <sgallagh(a)redhat.com> 1.6.3-1
+- New upstream release 1.6.3
+-
https://github.com/less/less.js/blob/v1.6.3/CHANGELOG.md
+- Fix issue with calling toCSS twice not working in some situations (like with
+ bootstrap 2)
+- The Rhino release is fixed!
+- ability to use uppercase colours
+- Fix a nasty bug causing syntax errors when selector interpolation is preceded
+ by a long comment (and some other cases)
+- Fix a major bug with the variable scope in guards on selectors (e.g. not
+ mixins)
+- Fold in & when () { to the current selector rather than duplicating it
+- fix another issue with array prototypes
+- add a url-args option which adds a value to all urls (for cache busting)
+- Round numbers to 8 decimal places - thereby stopping javascript precision
+ errors
+- some improvements to the default() function in more complex scenarios
+- improved missing '{' and '(' detection
+
* Mon Jan 13 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.1-1
- New upstream release 1.6.1
-
https://github.com/less/less.js/blob/v1.6.1/CHANGELOG.md
diff --git a/sources b/sources
index 6290d5a..09b4bcb 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-8e6839758add9e3705b5e2c0a5891945 less-1.6.1.tgz
+25a1946e2f0aeb48d87a7c533f1e3fc3 less-1.6.3.tgz
commit 3b88f5de8cb200750c6c3550493a768c9d433c96
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Mon Jan 13 08:30:08 2014 -0500
New upstream release 1.6.1
-
https://github.com/less/less.js/blob/v1.6.1/CHANGELOG.md
- support ^ and ^^ shadow dom selectors
- fix sourcemap selector (used to report end of the element or selector) and
directive position (previously not supported)
- fix parsing empty less files
- error on (currently) ambiguous guards on multiple css selectors
- older environments - protect against typeof regex returning function
- Do not use default keyword
- use innerHTML in tests, not innerText
- protect for-in in case Array and Object prototypes have custom fields
diff --git a/.gitignore b/.gitignore
index a757447..4bb749b 100644
--- a/.gitignore
+++ b/.gitignore
@@ -4,3 +4,4 @@
/less-1.5.0.tgz
/less-1.5.1.tgz
/less-1.6.0.tgz
+/less-1.6.1.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 97f5119..53019c7 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.6.0
+Version: 1.6.1
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -18,6 +18,7 @@ Patch0001: 0001-Require-include-files-from-the-default-location.patch
BuildArch: noarch
BuildRequires: nodejs-devel
+BuildRequires: nodejs-packaging
Requires: nodejs
ExclusiveArch: %{nodejs_arches} noarch
@@ -66,6 +67,19 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Mon Jan 13 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.1-1
+- New upstream release 1.6.1
+-
https://github.com/less/less.js/blob/v1.6.1/CHANGELOG.md
+- support ^ and ^^ shadow dom selectors
+- fix sourcemap selector (used to report end of the element or selector) and
+ directive position (previously not supported)
+- fix parsing empty less files
+- error on (currently) ambiguous guards on multiple css selectors
+- older environments - protect against typeof regex returning function
+- Do not use default keyword
+- use innerHTML in tests, not innerText
+- protect for-in in case Array and Object prototypes have custom fields
+
* Thu Jan 02 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.0-1
- New upstream release 1.6.0
-
https://github.com/less/less.js/blob/v1.6.0/CHANGELOG.md
diff --git a/sources b/sources
index 22adb59..6290d5a 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-563f46468aef0ed3e5cf1ddd93a65ab7 less-1.6.0.tgz
+8e6839758add9e3705b5e2c0a5891945 less-1.6.1.tgz
commit ccdf07510b231c6fefe0a0d17a8aa9c24ce52a82
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Thu Jan 2 10:12:48 2014 -0500
New upstream release 1.6.0
-
https://github.com/less/less.js/blob/v1.6.0/CHANGELOG.md
- Properties can be interpolated, e.g. @{prefix}-property: value;
- a default function has been added only valid in mixin definitions to
determine if no other mixins have been matched
- Added a plugins option that allows specifying an array of visitors run on the
less AST
- Performance improvements that may result in approx 20-40% speed up
- Javascript evaluations returning numbers can now be used in
calculations/functions
- fixed issue when adding colours, taking the alpha over 1 and breaking when
used in colour functions
- when adding together 2 colours with non zero alpha, the alpha will now be
combined rather than added
- the advanced colour functions no longer ignore transparency, they blend that
too
- Added --clean-option and cleancssOptions to allow passing in clean css
options
- rgba declarations are now always clamped e.g. rgba(-1,258,258, -1) becomes
rgba(0, 255, 255, 0)
- Fix possible issue with import reference not bringing in styles (may not be a
bugfix, just a code tidy)
- Fix some issues with urls() being prefixed twice and unquoted urls in mixins
being processed each time they are called
- Fixed error messages for undefined variables in javascript evaluation
- Fixed line/column numbers from math errors
diff --git a/.gitignore b/.gitignore
index f477f0d..a757447 100644
--- a/.gitignore
+++ b/.gitignore
@@ -3,3 +3,4 @@
/less-1.4.1.tgz
/less-1.5.0.tgz
/less-1.5.1.tgz
+/less-1.6.0.tgz
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
index 12a328a..6f1ec0b 100644
--- a/0001-Require-include-files-from-the-default-location.patch
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -1,14 +1,14 @@
-From 825a86355ce00702e7ca2705f8db09bca55bcb1f Mon Sep 17 00:00:00 2001
+From 18e3f3f3a1955e0159b4e8c6141518a6a3cd0975 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed, 19 Dec 2012 09:06:24 -0500
Subject: [PATCH] Require include files from the default location
---
- bin/lessc | 6 +++---
- 1 file changed, 3 insertions(+), 3 deletions(-)
+ bin/lessc | 8 ++++----
+ 1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/bin/lessc b/bin/lessc
-index 9ee3609a3acf940d6c3ae8045087d2178cfeaebe..c0381694a0f581c6ccf4d260ff3fa4d5f8702ffb
100755
+index e5ee1a1c7431e683ef884affcbea46721237f914..658dbf14e2c0dab9067487d6528066fda5414d09
100755
--- a/bin/lessc
+++ b/bin/lessc
@@ -6,7 +6,7 @@ var path = require('path'),
@@ -20,7 +20,7 @@ index
9ee3609a3acf940d6c3ae8045087d2178cfeaebe..c0381694a0f581c6ccf4d260ff3fa4d5
var args = process.argv.slice(1);
var options = {
depends: false,
-@@ -88,7 +88,7 @@ args = args.filter(function (arg) {
+@@ -96,7 +96,7 @@ args = args.filter(function (arg) {
break;
case 'h':
case 'help':
@@ -29,7 +29,16 @@ index
9ee3609a3acf940d6c3ae8045087d2178cfeaebe..c0381694a0f581c6ccf4d260ff3fa4d5
continueProcessing = false;
case 'x':
case 'compress':
-@@ -225,7 +225,7 @@ if (options.sourceMap === true) {
+@@ -243,7 +243,7 @@ args = args.filter(function (arg) {
+ }
+ break;
+ default:
+- require('../lib/less/lessc_helper').printUsage();
++ require('less/lessc_helper').printUsage();
+ continueProcessing = false;
+ currentErrorcode = 1;
+ break;
+@@ -288,7 +288,7 @@ if (options.cleancss && options.sourceMap) {
if (! input) {
console.log("lessc: no input files");
console.log("");
@@ -39,5 +48,5 @@ index
9ee3609a3acf940d6c3ae8045087d2178cfeaebe..c0381694a0f581c6ccf4d260ff3fa4d5
return;
}
--
-1.8.3.1
+1.8.4.2
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 4842b58..97f5119 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.5.1
+Version: 1.6.0
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -66,6 +66,34 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Thu Jan 02 2014 Stephen Gallagher <sgallagh(a)redhat.com> - 1.6.0-1
+- New upstream release 1.6.0
+-
https://github.com/less/less.js/blob/v1.6.0/CHANGELOG.md
+- Properties can be interpolated, e.g. @{prefix}-property: value;
+- a default function has been added only valid in mixin definitions to
+ determine if no other mixins have been matched
+- Added a plugins option that allows specifying an array of visitors run on the
+ less AST
+- Performance improvements that may result in approx 20-40% speed up
+- Javascript evaluations returning numbers can now be used in
+ calculations/functions
+- fixed issue when adding colours, taking the alpha over 1 and breaking when
+ used in colour functions
+- when adding together 2 colours with non zero alpha, the alpha will now be
+ combined rather than added
+- the advanced colour functions no longer ignore transparency, they blend that
+ too
+- Added --clean-option and cleancssOptions to allow passing in clean css
+ options
+- rgba declarations are now always clamped e.g. rgba(-1,258,258, -1) becomes
+ rgba(0, 255, 255, 0)
+- Fix possible issue with import reference not bringing in styles (may not be a
+ bugfix, just a code tidy)
+- Fix some issues with urls() being prefixed twice and unquoted urls in mixins
+ being processed each time they are called
+- Fixed error messages for undefined variables in javascript evaluation
+- Fixed line/column numbers from math errors
+
* Tue Nov 26 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.1-1
- New upstream release 1.5.1
-
https://github.com/less/less.js/blob/v1.5.1/CHANGELOG.md
diff --git a/sources b/sources
index 583f997..22adb59 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-20a6f23cc7f39e5faa91768ba2fcca61 less-1.5.1.tgz
+563f46468aef0ed3e5cf1ddd93a65ab7 less-1.6.0.tgz
commit 8cd30b5ff95b183509a8db6749d79fd5e09eac59
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Tue Nov 26 08:23:34 2013 -0500
New upstream release 1.5.1
-
https://github.com/less/less.js/blob/v1.5.1/CHANGELOG.md
- Added source-map-URL option
- Fixed a bug which meant the minimised 1.5.0 browser version was not wrapped,
meaning it interfered with require js
- Fixed a bug where the browser version assume port was specified
- Added the ability to specify variables on the command line
- Upgraded clean-css and fixed it from trying to import
- correct a bug meaning imports weren't synchronous (syncImport option
available for full synchronous behaviour)
- better mixin matching behaviour with calling multiple classes e.g. .a.b.c;
diff --git a/.gitignore b/.gitignore
index 26f912e..f477f0d 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,3 +2,4 @@
/less-1.4.0.tgz
/less-1.4.1.tgz
/less-1.5.0.tgz
+/less-1.5.1.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 8931ec8..4842b58 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.5.0
+Version: 1.5.1
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -66,6 +66,19 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Tue Nov 26 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.1-1
+- New upstream release 1.5.1
+-
https://github.com/less/less.js/blob/v1.5.1/CHANGELOG.md
+- Added source-map-URL option
+- Fixed a bug which meant the minimised 1.5.0 browser version was not wrapped,
+ meaning it interfered with require js
+- Fixed a bug where the browser version assume port was specified
+- Added the ability to specify variables on the command line
+- Upgraded clean-css and fixed it from trying to import
+- correct a bug meaning imports weren't synchronous (syncImport option
+ available for full synchronous behaviour)
+- better mixin matching behaviour with calling multiple classes e.g. .a.b.c;
+
* Tue Oct 22 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.0-1
- New upstream release 1.5.0
-
https://github.com/less/less.js/blob/v1.5.0/CHANGELOG.md
diff --git a/sources b/sources
index 4155fb6..583f997 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-fdec530b1c3d447b054f770fdb8ff066 less-1.5.0.tgz
+20a6f23cc7f39e5faa91768ba2fcca61 less-1.5.1.tgz
commit 6de86d5291f5c0cd7b0574d733c6c7a147800988
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Tue Oct 22 09:33:51 2013 -0400
New upstream release 1.5.0
-
https://github.com/less/less.js/blob/v1.5.0/CHANGELOG.md
- sourcemap support
- support for import inline option to include css that you do NOT want less to
parse e.g. `@import (inline) "file.css";`
- better support for modifyVars (refresh styles with new variables, using a
file cache), is now more resiliant
- support for import reference option to reference external css, but not output
it. Any mixin calls or extend's will be output.
- support for guards on selectors (currently only if you have a single
selector)
- allow property merging through the +: syntax
- Added min/max functions
- Added length function and improved extract to work with comma seperated
values
- when using import multiple, sub imports are imported multiple times into
final output
- fix bad spaces between namespace operators
- do not compress comment if it begins with an exclamation mark
- Fix the saturate function to pass through when using the CSS syntax
- Added svg-gradient function
- Added no-js option to lessc (in browser, use javascriptEnabled: false) which
disallows JavaScript in less files
- switched from the little supported and buggy cssmin (previously ycssmin) to
clean-css
- support transparent as a color, but not convert between rgba(0, 0, 0, 0) and
transparent
- remove sys.puts calls to stop deprecation warnings in future node.js releases
- Browser: added logLevel option to control logging (2 = everything, 1 = errors
only, 0 = no logging)
- Browser: added errorReporting option which can be "html" (default) or
"console" or a function
- Now uses grunt for building and testing
- A few bug fixes for media queries, extends, scoping, compression and import
once.
- if you don't pass a strict maths option, font size/line height options are
output correctly again
- npmignore now include .gitattributes
- property names may include capital letters
- various windows path fixes (capital letters, multiple // in a path)
diff --git a/.gitignore b/.gitignore
index 2d635fd..26f912e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,3 +1,4 @@
/less-1.3.3.tgz
/less-1.4.0.tgz
/less-1.4.1.tgz
+/less-1.5.0.tgz
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
index d04d54e..12a328a 100644
--- a/0001-Require-include-files-from-the-default-location.patch
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -1,14 +1,14 @@
-From 19a1dcbd5cd38c2493c949b2e2e212fb54aff855 Mon Sep 17 00:00:00 2001
+From 825a86355ce00702e7ca2705f8db09bca55bcb1f Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed, 19 Dec 2012 09:06:24 -0500
-Subject: [PATCH] Require include files from the default location :
+Subject: [PATCH] Require include files from the default location
---
bin/lessc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/lessc b/bin/lessc
-index ec058215d12936b813b93e87323fe11f9dd72ed8..3552e706e60a9f6ed7f30b9620d76ed064fed796
100755
+index 9ee3609a3acf940d6c3ae8045087d2178cfeaebe..c0381694a0f581c6ccf4d260ff3fa4d5f8702ffb
100755
--- a/bin/lessc
+++ b/bin/lessc
@@ -6,7 +6,7 @@ var path = require('path'),
@@ -20,7 +20,7 @@ index
ec058215d12936b813b93e87323fe11f9dd72ed8..3552e706e60a9f6ed7f30b9620d76ed0
var args = process.argv.slice(1);
var options = {
depends: false,
-@@ -84,7 +84,7 @@ args = args.filter(function (arg) {
+@@ -88,7 +88,7 @@ args = args.filter(function (arg) {
break;
case 'h':
case 'help':
@@ -29,15 +29,15 @@ index
ec058215d12936b813b93e87323fe11f9dd72ed8..3552e706e60a9f6ed7f30b9620d76ed0
continueProcessing = false;
case 'x':
case 'compress':
-@@ -172,7 +172,7 @@ if (output) {
+@@ -225,7 +225,7 @@ if (options.sourceMap === true) {
if (! input) {
- sys.puts("lessc: no input files");
- sys.puts("");
+ console.log("lessc: no input files");
+ console.log("");
- require('../lib/less/lessc_helper').printUsage();
+ require('less/lessc_helper').printUsage();
currentErrorcode = 1;
return;
}
--
-1.8.2.1
+1.8.3.1
diff --git a/nodejs-less.spec b/nodejs-less.spec
index aad9eb9..8931ec8 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,8 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.4.1
-Release: 2%{?dist}
+Version: 1.5.0
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -66,6 +66,48 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Tue Oct 22 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.5.0-1
+- New upstream release 1.5.0
+-
https://github.com/less/less.js/blob/v1.5.0/CHANGELOG.md
+- sourcemap support
+- support for import inline option to include css that you do NOT want less to
+ parse e.g. `@import (inline) "file.css";`
+- better support for modifyVars (refresh styles with new variables, using a
+ file cache), is now more resiliant
+- support for import reference option to reference external css, but not output
+ it. Any mixin calls or extend's will be output.
+- support for guards on selectors (currently only if you have a single
+ selector)
+- allow property merging through the +: syntax
+- Added min/max functions
+- Added length function and improved extract to work with comma seperated
+ values
+- when using import multiple, sub imports are imported multiple times into
+ final output
+- fix bad spaces between namespace operators
+- do not compress comment if it begins with an exclamation mark
+- Fix the saturate function to pass through when using the CSS syntax
+- Added svg-gradient function
+- Added no-js option to lessc (in browser, use javascriptEnabled: false) which
+ disallows JavaScript in less files
+- switched from the little supported and buggy cssmin (previously ycssmin) to
+ clean-css
+- support transparent as a color, but not convert between rgba(0, 0, 0, 0) and
+ transparent
+- remove sys.puts calls to stop deprecation warnings in future node.js releases
+- Browser: added logLevel option to control logging (2 = everything, 1 = errors
+ only, 0 = no logging)
+- Browser: added errorReporting option which can be "html" (default) or
+ "console" or a function
+- Now uses grunt for building and testing
+- A few bug fixes for media queries, extends, scoping, compression and import
+ once.
+- if you don't pass a strict maths option, font size/line height options are
+ output correctly again
+- npmignore now include .gitattributes
+- property names may include capital letters
+- various windows path fixes (capital letters, multiple // in a path)
+
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.4.1-2
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
diff --git a/sources b/sources
index 9c000ca..4155fb6 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-44c2051d718637e610b1ecf6fc578bcd less-1.4.1.tgz
+fdec530b1c3d447b054f770fdb8ff066 less-1.5.0.tgz
commit 08aa0ff8c7eb3969096cd92ddeec8d55d1b29cf0
Author: Dennis Gilmore <dennis(a)ausil.us>
Date: Sat Aug 3 08:57:53 2013 -0500
- Rebuilt for
https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 3e70e18..aad9eb9 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 1.4.1
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -66,6 +66,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Sat Aug 03 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.4.1-2
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
+
* Fri Jul 05 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.1-1
- New upstream release 1.4.1
-
https://github.com/less/less.js/blob/v1.4.1/CHANGELOG.md
commit 38db4b590d1cedea26e3c2bacaed9183f510cf4a
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Fri Jul 5 13:02:57 2013 -0400
New upstream release 1.4.1
-
https://github.com/less/less.js/blob/v1.4.1/CHANGELOG.md
- Fix syncImports and yui-compress option, as they were being ignored
- Fixed several global variable leaks
- Handle getting null or undefined passed as the options object
diff --git a/.gitignore b/.gitignore
index fcd6b57..2d635fd 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,3 @@
/less-1.3.3.tgz
/less-1.4.0.tgz
+/less-1.4.1.tgz
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 8c314b1..3e70e18 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,7 +1,7 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.4.0
+Version: 1.4.1
Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
@@ -66,6 +66,13 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Fri Jul 05 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.1-1
+- New upstream release 1.4.1
+-
https://github.com/less/less.js/blob/v1.4.1/CHANGELOG.md
+- Fix syncImports and yui-compress option, as they were being ignored
+- Fixed several global variable leaks
+- Handle getting null or undefined passed as the options object
+
* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.0-1
- New upstream release 1.4.0
-
https://github.com/cloudhead/less.js/blob/master/CHANGELOG.md
diff --git a/sources b/sources
index c34695d..9c000ca 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-ba5bce866b7c9159c13221cb0b040323 less-1.4.0.tgz
+44c2051d718637e610b1ecf6fc578bcd less-1.4.1.tgz
commit 91024564a293a20f774e706412d59fbf9e17cd8f
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Tue Jun 18 16:25:10 2013 -0400
New upstream release 1.4.0
-
https://github.com/cloudhead/less.js/blob/master/CHANGELOG.md
- support for :extend() in selectors (e.g. input:extend(.button) {}) and &
:extend(); in ruleset (e.g. input { &:extend(.button all); })
- maths is now only done inside brackets. This means font: statements, media
queries and the calc function can use a simpler format without being escaped.
Disable this with --strict-maths-off in lessc and strictMaths:false in
JavaScript.
- units are calculated, e.g. 200cm+1m = 3m, 3px/1px = 3. If you use units
inconsistently you will get an error. Suppress this error with
--strict-units-off in lessc or strictUnits:false in JavaScript
- (~"@var") selector interpolation is removed. Use @{var} in selectors to
have
variable selectors
- default behaviour of import is to import each file once. @import-once has
been removed.
- You can specify options on imports to force it to behave as css or less
@import (less) "file.css" will process the file as less
- variables in mixins no longer 'leak' into their calling scope
- added data-uri function which will inline an image into the output css. If
ieCompat option is true and file is too large, it will fallback to a url()
- significant bug fixes to our debug options
- other parameters can be used as defaults in mixins e.g. .a(@a, @b:@a)
- an error is shown if properties are used outside of a ruleset
- added extract function which picks a value out of a list,
e.g. extract(12 13 14, 3) => 3
- added luma, hsvhue, hsvsaturation, hsvvalue functions
- added pow, pi, mod, tan, sin, cos, atan, asin, acos and sqrt math functions
- added convert function, e.g. convert(1rad, deg) => value in degrees
- lessc makes output directories if they don't exist
- lessc @import supports https and 301's
- lessc "-depends" option for lessc writes out the list of import files used
in
makefile format
- lessc "-lint" option just reports errors
- support for namespaces in attributes and selector interpolation in attributes
- other bug fixes
- strictUnits now defaults to false and the true case now gives more useful but
less correct results, e.g. 2px/1px = 2px
- Process ./ when having relative paths
- add isunit function for mixin guards and non basic units
- extends recognise attributes
- exception errors extend the JavaScript Error
- remove es-5-shim as standard from the browser
- Fix path issues with windows/linux local paths
- change strictMaths to strictMath. Enable this with --strict-math=on in lessc
and strictMath:true in JavaScript.
- change lessc option for strict units to --strict-units=off
- fix passing of strict maths option
diff --git a/.gitignore b/.gitignore
index 6647fbe..fcd6b57 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1 +1,2 @@
/less-1.3.3.tgz
+/less-1.4.0.tgz
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
index 6feeec4..d04d54e 100644
--- a/0001-Require-include-files-from-the-default-location.patch
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -1,4 +1,4 @@
-From 0f4272fd6082ce4a5d55894a09334cd9bcf68a8c Mon Sep 17 00:00:00 2001
+From 19a1dcbd5cd38c2493c949b2e2e212fb54aff855 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed, 19 Dec 2012 09:06:24 -0500
Subject: [PATCH] Require include files from the default location :
@@ -8,19 +8,19 @@ Subject: [PATCH] Require include files from the default location :
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/bin/lessc b/bin/lessc
-index 31a6700b73d81190202dfc9566c00a56ee60cb02..24d526121adc0fd29487747774e4e5a56662b9e6
100755
+index ec058215d12936b813b93e87323fe11f9dd72ed8..3552e706e60a9f6ed7f30b9620d76ed064fed796
100755
--- a/bin/lessc
+++ b/bin/lessc
-@@ -5,7 +5,7 @@ var path = require('path'),
- sys = require('util'),
- os = require('os');
+@@ -6,7 +6,7 @@ var path = require('path'),
+ os = require('os'),
+ mkdirp;
-var less = require('../lib/less');
+var less = require('less');
var args = process.argv.slice(1);
var options = {
- compress: false,
-@@ -53,7 +53,7 @@ args = args.filter(function (arg) {
+ depends: false,
+@@ -84,7 +84,7 @@ args = args.filter(function (arg) {
break;
case 'h':
case 'help':
@@ -29,7 +29,7 @@ index
31a6700b73d81190202dfc9566c00a56ee60cb02..24d526121adc0fd29487747774e4e5a5
continueProcessing = false;
case 'x':
case 'compress':
-@@ -116,7 +116,7 @@ if (output) {
+@@ -172,7 +172,7 @@ if (output) {
if (! input) {
sys.puts("lessc: no input files");
sys.puts("");
@@ -39,5 +39,5 @@ index
31a6700b73d81190202dfc9566c00a56ee60cb02..24d526121adc0fd29487747774e4e5a5
return;
}
--
-1.8.1.4
+1.8.2.1
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 3767fb3..8c314b1 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,8 +1,8 @@
%{?nodejs_find_provides_and_requires}
Name: nodejs-less
-Version: 1.3.3
-Release: 5%{?dist}
+Version: 1.4.0
+Release: 1%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -10,7 +10,7 @@ Summary: Less.js The dynamic stylesheet language
License: ASL 2.0 and BSD
URL:
http://lesscss.org
-Source0:
http://registry.npmjs.org/less/-/less-1.3.3.tgz
+Source0:
http://registry.npmjs.org/less/-/less-%{version}.tgz
# Since we're installing this in a global location, fix the require()
# calls to point there.
@@ -66,6 +66,55 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.4.0-1
+- New upstream release 1.4.0
+-
https://github.com/cloudhead/less.js/blob/master/CHANGELOG.md
+- support for :extend() in selectors (e.g. input:extend(.button) {}) and &
+ :extend(); in ruleset (e.g. input { &:extend(.button all); })
+- maths is now only done inside brackets. This means font: statements, media
+ queries and the calc function can use a simpler format without being escaped.
+ Disable this with --strict-maths-off in lessc and strictMaths:false in
+ JavaScript.
+- units are calculated, e.g. 200cm+1m = 3m, 3px/1px = 3. If you use units
+ inconsistently you will get an error. Suppress this error with
+ --strict-units-off in lessc or strictUnits:false in JavaScript
+- (~"@var") selector interpolation is removed. Use @{var} in selectors to have
+ variable selectors
+- default behaviour of import is to import each file once. @import-once has
+ been removed.
+- You can specify options on imports to force it to behave as css or less
+ @import (less) "file.css" will process the file as less
+- variables in mixins no longer 'leak' into their calling scope
+- added data-uri function which will inline an image into the output css. If
+ ieCompat option is true and file is too large, it will fallback to a url()
+- significant bug fixes to our debug options
+- other parameters can be used as defaults in mixins e.g. .a(@a, @b:@a)
+- an error is shown if properties are used outside of a ruleset
+- added extract function which picks a value out of a list,
+ e.g. extract(12 13 14, 3) => 3
+- added luma, hsvhue, hsvsaturation, hsvvalue functions
+- added pow, pi, mod, tan, sin, cos, atan, asin, acos and sqrt math functions
+- added convert function, e.g. convert(1rad, deg) => value in degrees
+- lessc makes output directories if they don't exist
+- lessc @import supports https and 301's
+- lessc "-depends" option for lessc writes out the list of import files used
in
+ makefile format
+- lessc "-lint" option just reports errors
+- support for namespaces in attributes and selector interpolation in attributes
+- other bug fixes
+- strictUnits now defaults to false and the true case now gives more useful but
+ less correct results, e.g. 2px/1px = 2px
+- Process ./ when having relative paths
+- add isunit function for mixin guards and non basic units
+- extends recognise attributes
+- exception errors extend the JavaScript Error
+- remove es-5-shim as standard from the browser
+- Fix path issues with windows/linux local paths
+- change strictMaths to strictMath. Enable this with --strict-math=on in lessc
+ and strictMath:true in JavaScript.
+- change lessc option for strict units to --strict-units=off
+- fix passing of strict maths option
+
* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-5
- Use correct build architectures
diff --git a/sources b/sources
index c7124e7..c34695d 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-b40123e3fc653dc440c577ee9dea3177 less-1.3.3.tgz
+ba5bce866b7c9159c13221cb0b040323 less-1.4.0.tgz
commit 30492f4fdc95d7ce34f9504b2a2368be36f18301
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Tue Jun 18 14:26:47 2013 -0400
Use correct build architectures
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 23f66ac..3767fb3 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 1.3.3
-Release: 4%{?dist}
+Release: 5%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -19,6 +19,7 @@ Patch0001: 0001-Require-include-files-from-the-default-location.patch
BuildArch: noarch
BuildRequires: nodejs-devel
Requires: nodejs
+ExclusiveArch: %{nodejs_arches} noarch
Provides: lessjs = %{version}-%{release}
Obsoletes: lessjs < 1.3.3-2
@@ -65,6 +66,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Tue Jun 18 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-5
+- Use correct build architectures
+
* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth(a)gmail.com> - 1.3.3-4
- enable compression using ycssmin
commit 7ef7fa69712860158322901777429d6a59970b35
Author: T.C. Hollingsworth <tchollingsworth(a)gmail.com>
Date: Mon May 6 14:06:27 2013 -0700
enable compression using ycssmin
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 4fddf28..23f66ac 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -2,7 +2,7 @@
Name: nodejs-less
Version: 1.3.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Less.js The dynamic stylesheet language
# cssmin.js is licensed under BSD license
@@ -36,6 +36,9 @@ and server-side, with Node.js and Rhino.
# Remove pre-built files from the dist/ directory
rm -f dist/*.js
+# enable compression using ycssmin
+%nodejs_fixdep ycssmin '~1.0.1'
+
%build
# Nothing to be built, we're just carrying around flat files
@@ -62,6 +65,9 @@ ln -s %{nodejs_sitelib}/less/bin/lessc \
%changelog
+* Mon May 06 2013 T.C. Hollingsworth <tchollingsworth(a)gmail.com> - 1.3.3-4
+- enable compression using ycssmin
+
* Wed Apr 10 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-3
- Fix BuildRequires to include nodejs-devel
commit 042bb95eb9a3ce28c423465b4391e33d874f5175
Author: Jamie Nguyen <j(a)jamielinux.com>
Date: Mon Apr 15 17:44:55 2013 +0100
Add macro to enable dependency generation on EPEL
diff --git a/nodejs-less.spec b/nodejs-less.spec
index 748a6c3..4fddf28 100644
--- a/nodejs-less.spec
+++ b/nodejs-less.spec
@@ -1,3 +1,5 @@
+%{?nodejs_find_provides_and_requires}
+
Name: nodejs-less
Version: 1.3.3
Release: 3%{?dist}
commit 59338958b765dcb02a2cb7f15537e17a42485b51
Author: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Wed Apr 10 09:53:40 2013 -0400
Initial import (#950041).
diff --git a/.gitignore b/.gitignore
index e69de29..6647fbe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/less-1.3.3.tgz
diff --git a/0001-Require-include-files-from-the-default-location.patch
b/0001-Require-include-files-from-the-default-location.patch
new file mode 100644
index 0000000..6feeec4
--- /dev/null
+++ b/0001-Require-include-files-from-the-default-location.patch
@@ -0,0 +1,43 @@
+From 0f4272fd6082ce4a5d55894a09334cd9bcf68a8c Mon Sep 17 00:00:00 2001
+From: Stephen Gallagher <sgallagh(a)redhat.com>
+Date: Wed, 19 Dec 2012 09:06:24 -0500
+Subject: [PATCH] Require include files from the default location :
+
+---
+ bin/lessc | 6 +++---
+ 1 file changed, 3 insertions(+), 3 deletions(-)
+
+diff --git a/bin/lessc b/bin/lessc
+index 31a6700b73d81190202dfc9566c00a56ee60cb02..24d526121adc0fd29487747774e4e5a56662b9e6
100755
+--- a/bin/lessc
++++ b/bin/lessc
+@@ -5,7 +5,7 @@ var path = require('path'),
+ sys = require('util'),
+ os = require('os');
+
+-var less = require('../lib/less');
++var less = require('less');
+ var args = process.argv.slice(1);
+ var options = {
+ compress: false,
+@@ -53,7 +53,7 @@ args = args.filter(function (arg) {
+ break;
+ case 'h':
+ case 'help':
+- require('../lib/less/lessc_helper').printUsage();
++ require('less/lessc_helper').printUsage();
+ continueProcessing = false;
+ case 'x':
+ case 'compress':
+@@ -116,7 +116,7 @@ if (output) {
+ if (! input) {
+ sys.puts("lessc: no input files");
+ sys.puts("");
+- require('../lib/less/lessc_helper').printUsage();
++ require('less/lessc_helper').printUsage();
+ currentErrorcode = 1;
+ return;
+ }
+--
+1.8.1.4
+
diff --git a/nodejs-less.spec b/nodejs-less.spec
new file mode 100644
index 0000000..748a6c3
--- /dev/null
+++ b/nodejs-less.spec
@@ -0,0 +1,137 @@
+Name: nodejs-less
+Version: 1.3.3
+Release: 3%{?dist}
+Summary: Less.js The dynamic stylesheet language
+
+# cssmin.js is licensed under BSD license
+# everything else is ASL 2.0
+License: ASL 2.0 and BSD
+
+URL:
http://lesscss.org
+Source0:
http://registry.npmjs.org/less/-/less-1.3.3.tgz
+
+# Since we're installing this in a global location, fix the require()
+# calls to point there.
+Patch0001: 0001-Require-include-files-from-the-default-location.patch
+
+BuildArch: noarch
+BuildRequires: nodejs-devel
+Requires: nodejs
+
+Provides: lessjs = %{version}-%{release}
+Obsoletes: lessjs < 1.3.3-2
+
+%description
+LESS extends CSS with dynamic behavior such as variables, mixins, operations
+and functions. LESS runs on both the client-side (Chrome, Safari, Firefox)
+and server-side, with Node.js and Rhino.
+
+%prep
+%setup -q -n package
+
+%patch0001 -p1
+
+# Remove pre-built files from the dist/ directory
+rm -f dist/*.js
+
+%build
+# Nothing to be built, we're just carrying around flat files
+
+%check
+make %{?_smp_mflags} test
+
+
+%install
+mkdir -p %{buildroot}%{_bindir}
+mkdir -p %{buildroot}%{nodejs_sitelib}/less
+chmod a+x bin/lessc
+cp -rp bin package.json lib/less/* %{buildroot}/%{nodejs_sitelib}/less
+
+# Install /usr/bin/lessc
+ln -s %{nodejs_sitelib}/less/bin/lessc \
+ %{buildroot}%{_bindir}
+
+%nodejs_symlink_deps
+
+%files
+%doc LICENSE README.md CHANGELOG.md CONTRIBUTING.md
+%{_bindir}/lessc
+%{nodejs_sitelib}/less
+
+
+%changelog
+* Wed Apr 10 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-3
+- Fix BuildRequires to include nodejs-devel
+
+* Tue Apr 09 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-2
+- Rename package to nodejs-less
+
+* Tue Apr 09 2013 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.3-1
+- Upgrade to new upstream release and switch to proper Node.js packaging
+- New upstream release 1.3.3
+ * Fix critical bug with mixin call if using multiple brackets
+ * When using the filter contrast function, the function is passed through if
+ the first argument is not a color
+- New upstream release 1.3.2
+ * browser and server url re-writing is now aligned to not re-write (previous
+ lessc behaviour)
+ * url-rewriting can be made to re-write to be relative to the entry file
+ using the relative-urls option (less.relativeUrls option)
+ * rootpath option can be used to add a base path to every url
+ * Support mixin argument seperator of ';' so you can pass comma seperated
+ values. e.g. .mixin(23px, 12px;);
+ * Fix lots of problems with named arguments in corner cases, not behaving
+ as expected
+ * hsv, hsva, unit functions
+ * fixed lots more bad error messages
+ * fix @import-once to use the full path, not the relative one for
+ determining if an import has been imported already
+ * support :not(:nth-child(3))
+ * mixin guards take units into account
+ * support unicode descriptors (U+00A1-00A9)
+ * support calling mixins with a stack when using & (broken in 1.3.1)
+ * support @namespace and namespace combinators
+ * when using %% with colour functions, take into account a colour is out of
+ 256
+ * when doing maths with a %% do not divide by 100 and keep the unit
+ * allow url to contain %% (e.g. %%20 for a space)
+ * if a mixin guard stops execution a default mixin is not required
+ * units are output in strings (use the unit function if you need to get the
+ value without unit)
+ * do not infinite recurse when mixins call mixins of the same name
+ * fix issue on important on mixin calls
+ * fix issue with multiple comments being confused
+ * tolerate multiple semi-colons on rules
+ * ignore subsequant @charset
+ * syncImport option for node.js to read files syncronously
+ * write the output directory if it is missing
+ * change dependency on cssmin to ycssmin
+ * lessc can load files over http
+ * allow calling less.watch() in non dev mode
+ * don't cache in dev mode
+ * less files cope with query parameters better
+ * sass debug statements are now chrome compatible
+ * modifyVars function added to re-render with different root variables
+
+* Thu Feb 14 2013 Fedora Release Engineering <rel-eng(a)lists.fedoraproject.org> -
1.3.1-5
+- Rebuilt for
https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
+
+* Wed Dec 19 2012 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.1-4
+- Unbundle cssmin.js from the sources
+- Throw an error when --yui-compress is passed at the lessc command line
+- Convert assorted %%prep actions into patches
+
+* Wed Dec 19 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.1-3
+- include LICENSE and README.md
+
+* Wed Dec 19 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.1-2
+- minor spec cleanup
+- clear dist-dir
+- license clearification
+
+* Thu Dec 13 2012 Stephen Gallagher <sgallagh(a)redhat.com> - 1.3.1-1
+- Update to the 1.3.1 release
+- Fix versioning bugs, get the tarball from a cleaner, tagged location
+
+* Mon Sep 17 2012 Matthias Runge <mrunge(a)redhat.com> - 1.3.0-20120917git55d6e5a.1
+- initial packaging
diff --git a/sources b/sources
index e69de29..c7124e7 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+b40123e3fc653dc440c577ee9dea3177 less-1.3.3.tgz