sgallagh pushed to nodejs-less (epel7). "Upgrade to 4.1.2 for support
of recent Node.js versions (..more)"
by notifications@fedoraproject.org
Notification time stamped 2022-02-28 22:27:14 UTC
From b61aa342742b846393289f2fbdd76fd448fcb743 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Feb 28 2022 22:19:37 +0000
Subject: 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
https://src.fedoraproject.org/rpms/nodejs-less/c/b61aa342742b846393289f2f...
2 years, 2 months
sgallagh pushed to nodejs-less (epel8). "Upgrade to 4.1.2 for support
of recent Node.js versions (..more)"
by notifications@fedoraproject.org
Notification time stamped 2022-03-01 14:20:28 UTC
From b61aa342742b846393289f2fbdd76fd448fcb743 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Feb 28 2022 22:19:37 +0000
Subject: 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
https://src.fedoraproject.org/rpms/nodejs-less/c/b61aa342742b846393289f2f...
2 years, 2 months
sgallagh pushed to nodejs-less (rawhide). "Upgrade to 4.1.2 for
support of recent Node.js versions (..more)"
by notifications@fedoraproject.org
Notification time stamped 2022-03-02 15:26:10 UTC
From b61aa342742b846393289f2fbdd76fd448fcb743 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Feb 28 2022 22:19:37 +0000
Subject: 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
https://src.fedoraproject.org/rpms/nodejs-less/c/b61aa342742b846393289f2f...
2 years, 2 months
sgallagh pushed to nodejs-less (f36). "Upgrade to 4.1.2 for support
of recent Node.js versions (..more)"
by notifications@fedoraproject.org
Notification time stamped 2022-03-02 15:26:21 UTC
From b61aa342742b846393289f2fbdd76fd448fcb743 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Feb 28 2022 22:19:37 +0000
Subject: 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
https://src.fedoraproject.org/rpms/nodejs-less/c/b61aa342742b846393289f2f...
2 years, 2 months
sgallagh pushed to nodejs-less (f35). "Upgrade to 4.1.2 for support
of recent Node.js versions (..more)"
by notifications@fedoraproject.org
Notification time stamped 2022-03-02 15:26:33 UTC
From b61aa342742b846393289f2fbdd76fd448fcb743 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Feb 28 2022 22:19:37 +0000
Subject: 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
https://src.fedoraproject.org/rpms/nodejs-less/c/b61aa342742b846393289f2f...
2 years, 2 months
sgallagh pushed to nodejs-less (f34). "Upgrade to 4.1.2 for support
of recent Node.js versions (..more)"
by notifications@fedoraproject.org
Notification time stamped 2022-03-02 15:26:44 UTC
From b61aa342742b846393289f2fbdd76fd448fcb743 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Feb 28 2022 22:19:37 +0000
Subject: 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
https://src.fedoraproject.org/rpms/nodejs-less/c/b61aa342742b846393289f2f...
2 years, 2 months
sgallagh pushed to nodejs-less (epel9). "Upgrade to 4.1.2 for support
of recent Node.js versions (..more)"
by notifications@fedoraproject.org
Notification time stamped 2022-03-02 15:26:56 UTC
From b61aa342742b846393289f2fbdd76fd448fcb743 Mon Sep 17 00:00:00 2001
From: Stephen Gallagher <sgallagh(a)redhat.com>
Date: Feb 28 2022 22:19:37 +0000
Subject: 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
https://src.fedoraproject.org/rpms/nodejs-less/c/b61aa342742b846393289f2f...
2 years, 2 months
Re: Best (Fedora) way to capture/archive videos for LATER editing?
by Fred Smith
On Sun, Dec 01, 2013 at 04:36:16PM +0100, M. Fioretti wrote:
> First of all, please all accept my apologies if I disappeared after
> starting this. For several reasons, the whole "project" has gone on
> hold, and I... honestly forgot there were messages that deserved an
> answer.
>
> On Thu, Nov 07, 2013 14:19:53 PM +0000, Marko Vojinovic wrote:
> > On Thu, 7 Nov 2013 14:22:58 +0100
> > "M. Fioretti" <mfioretti(a)nexaima.net> wrote:
> >
> > > What Fedora-compatible video capture hardware should I buy to hook VHS
> > > players, Firewire camcorders... to my computer?
> >
> > For VHS, you want to get a TV card. Lookup "video4linux" documentation
> > (usually called v4l) to find out what chipsets are supported by the
> > Linux kernel --- before you buy the hardware. Also, in case of TV cards,
> > hardware quality is usually proportional to its price.
> >
> > Another thing that I can recommend is to ask someone else to do it for
> > you --- there are professional/commercial mini-studios that can convert
> > your VHS to some digital format (usually to DVD), for a small price.
> > Typically they own the hardware do it with better quality than you could
> > do it yourself.
>
> I started the thread exactly because mini-studios are NOT an option
> for us. In my family there are lots of DV and VHS tapes where only 5
> minutes, scattered through the whole tape, are worth preserving.
> Mini-studios around us would still ask full price for any of those
> tapes, with a total cost, I believe, a couple orders of magnitude
> bigger than video capture hw and some hacking night
Marco, I have a (borrowed) device that sits between the video output
device (commonly a camera, but could be a VCR) that can take the analog
output of a VCR (or other device) and turn it into a digital stream
for capture in your computer.
Unfortunately, I haven't had superb luck doing the job, probably due
to my own ignorance and/or laziness, not having spent a lot of time on
it yet.
It appears to be discontinued, and I haven't found anything else like it
(but maybe I just didn't look hard enough.) but I wouldn't be surprised
if you could find 'em used on ebay.
it's a:
Dazzle Hollywood DV-Bridge
and the label on the underside says:
DVBridge HW1X2
for inputs it has video in, audio in (both RCA jacks), S-Video in,
and firewire in. I'm trying to use the RCA jacks since that's all my
old VCR has.
For outputs it has the same set of connectors. I'm trying to use it
with the RCA audio out and the Firewire video out.
While I'm still struggling, my friend (from whom it is borrowed) says
he has used it in similar configurations where it worked fine. so I'm
sure all I gotta do is get my head around it.
Good luck!
Fred
>
> Apart from this, all the other info will surely be valuable when I get
> around to actually do it.
>
> Many thanks to Marko and all the others who contributed to this
> thread.
>
> Marco
> --
>
> M. Fioretti http://mfioretti.com http://stop.zona-m.net
>
> Your own civil rights and the quality of your life heavily depend on how
> software is used *around* you
> --
> users mailing list
> users(a)lists.fedoraproject.org
> To unsubscribe or change subscription options:
> https://admin.fedoraproject.org/mailman/listinfo/users
> Fedora Code of Conduct: http://fedoraproject.org/code-of-conduct
> Guidelines: http://fedoraproject.org/wiki/Mailing_list_guidelines
> Have a question? Ask away: http://ask.fedoraproject.org
--
---- Fred Smith -- fredex(a)fcshome.stoneham.ma.us -----------------------------
"Not everyone who says to me, 'Lord, Lord,' will enter the kingdom of
heaven, but only he who does the will of my Father who is in heaven."
------------------------------ Matthew 7:21 (niv) -----------------------------
10 years, 5 months
Re: Fedora 💔 Java: The Death of Two SIGs
by Mikolaj Izdebski
On Tue, Oct 5, 2021 at 1:27 PM Peter Boy <pboy(a)uni-bremen.de> wrote:
>
>
>
> > Am 04.10.2021 um 15:29 schrieb Mikolaj Izdebski <mizdebsk(a)redhat.com>:
> >
> > On Mon, Oct 4, 2021 at 2:08 PM Peter Boy <pboy(a)uni-bremen.de> wrote:
> >> However, we lack concepts on how to proceed after removing java-maint-sig. What consequences do we draw from the analyses?
> >
> > … If you want
> > to improve docs, just do it. And so on. ...
> > ... or to plan editing the wiki. Whoever wants to clean up some wiki
> > pages can simply do so, without asking.
>
> It’s not as easy as you think of. That way you will end with the docs as Stephen Smoogen described 4 posts back, just chaos and misinformation. You need collaboration and agreement (shared plan) from participants in all affected areas - including you as the (main) developer of a core package (not writing text, but e.g check the concept, check technical correctness and completeness). It simply doesn’t work the way you are proposing.
Sure, some major changes may indeed require planning or cooperation.
That's what we have the SIG and its communication channels for. For
example, if I wanted to rewrite Java documentation and move it from
the wiki to docs.fedoraproject.org at the same time, I would start
with sending a proposal to java-devel mailing list and ask for
feedback. We would discuss what should and what should not be
documented, who wants to document what and so on. Depending on how the
discussion goes there, I might propose an IRC meeting to ease the
discussion process.
>
>
> >> I posted on the java list some ideas some time ago ('Empowering Fedora Java’). Any comments on those?
> >
> > These were about java-maint-sig, IIRC, which basically does not exist
> > any longer.
>
> No! It was about:
> > The biggest success is that with all the adversities in java packaging we have a stabilized Fedora Java core platform.
I'll re-read it then and try to reply.
> >
> > The next urgent step, in my opinion, is to update and improve information materials and documentation, followed by a community building process based on it.
> >
> >
> > I can offer to do the writing. …
> followed by tentative ideas about details of documentation.
>
> You wrote:
> > Java SIG has resources in form
> > of communication channels that can be used by members to help each
> > other. There is a mailing list and an IRC channel.
> So much for the theory, yes. I would have appreciated even a tiny bit of it.
I don't understand. These communication channels exist and are
functional. The most active Java packagers I know of are subscribed to
the mailing list and are present in the IRC channel. The fact that
there is not much ongoing communication is a different problem - I
find that people very often approach me directly or through other
channels, and many times I ask them to use public Java SIG channels
because that allows others to benefit from the conversation.
> You are one of the developers without whose contributions the Fedora Java stack would probably collapse in a short time. I would really be interested in the same question as to Mat: With java-paint-sig removed, are you really completely content with the Fedora Java world? No change? No improvement anywhere?
I'm happy with how Java SIG works in general - as an informal group
that does not limit packagers freedom, like by enforcing agile
processes, or mandating code review for every change. I like that Java
SIG doesn't have any authority to make any decisions - there can be
discussion, but ultimately each package owner makes decisions
regarding their own packages, within boundaries defined by Fedora
policies. The Fedora change process can be used when required - anyone
can propose a change, and once approved by FESCo, the package owner
must obey. I like that unmaintained packages are being removed from
distribution - with decreasing manpower in Java SIG I think it's
better to focus on fewer important packages.
For sure we should clean outdated Java SIG wiki pages - that's
relatively simple and I can do that myself. We should pay better
attention to announcing important changes that can affect others. We
can try regular IRC meetings instead of ad-hoc meetings. We could try
to come up with common goals for the SIG, but I'm not sure if that
will help. Right now I don't have any other ideas regarding improving
Java SIG organization.
Regarding Java content in Fedora Linux, there is a lot to improve, and
I have many ideas. I started writing them down as they come to my mind
and for each of them I'll start separate threads on java-devel list.
I also promise to document ongoing or planned projects that I am or
would like to be working on. Then anyone interested will be able to
more easily see what is going on, and possibly help with these
projects. Some of the projects that I have in mind:
Ongoing:
- MBI (Maven Bootstrap Initiative, an ability to build Maven and XMvn
fully from source from scratch, without reliance on pre-existing
binaries),
- Maven JDK bindings (ability to choose version of JDK used by Maven
at installation time),
- XMvn toolchains (ability to switch JDK used to build packages by
changing a single line of BuildRequires),
- embedded metadata for security scanners inside JARs (to reduce the
number of false-positives the scanners report),
- downstream patch tracking (similar to Debian DEP-3),
- updating Java packaging docs and moving them to docs.fedoraproject.org.
Planned or considered:
- redesign of auto-requires on JRE packages (bug 1993879),
- adding simple functional tests (smoke tests) for various packages,
- running upstream tests as gating tests (that allows running tests
that can't be ran during rpmbuild due to unpackaged dependencies),
- making use of gating and CI infrastructure to run generic Java tests
(that enforce packaging guidelines and bytecode version),
- browsable API documentation (javadocs extracted from RPMs and served
on a website),
- bringing back java-deptools (search engine for Java classes within
RPM packages that I used to host),
- updating Java Packaging HOWTO (writing missing sections, removing or
rewriting outdated parts).
> And just in case you see some preferable improvement anywhere, what do you think should be done to promote and achieve this?
I have no idea, other than doing the work myself and communicating
what I'm doing and why, hoping others will join the effort. I'm not
the best person to ask about promotion or community building.
--
Mikolaj Izdebski
>
>
>
> Best
> Peter
>
>
>
>
> _______________________________________________
> devel mailing list -- devel(a)lists.fedoraproject.org
> To unsubscribe send an email to devel-leave(a)lists.fedoraproject.org
> Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
> List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
> List Archives: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org
> Do not reply to spam on the list, report it: https://pagure.io/fedora-infrastructure
2 years, 7 months
Re: [Fedora-join] Meeting logs and summary - and work to be done
by Gabriele Trombini
Il giorno mar, 20/10/2015 alle 15.20 -0400, Justin W. Flory ha scritto:
[cut]
> I've been thinking about this for the past couple of days, and I
> think
> the badges are a powerful "motivator" to engage potential or would-be
> contributors to become more involved, especially with university
> students. Not sure what you guys would think about this, but what
> about
> doing team "Badge-athons", where maybe teams can select a few of the
> easyfix tasks and combine those with the objectives that are already
> set
> up (mostly) by badges. Then, I think it will be easier for current
> contributors to have definite objectives, e.g. "here's goal one, goal
> two, goal three, try doing task x and task y to earn these badges"
> sort
> of thing.
I'm thinking also about a unviable idea:
T-shirt attesting several levels of the process e.g.:
- Fedora User (joining FAS)
- Fedorian (end of join process)
- Contributor (joining group)
>
> In terms of what team to begin with, perhaps since the release is so
> close and if we'd want to organize something close to F23, I think
> the
> marketing team may be a good first candidate? The Magazine is a
> possible
> starting place, or perhaps some of the tasks surrounding the wiki or
> other areas.
As Mktg member I'm available for a join-day but too near to the release
day is impossible. Marketing works basically on the tasks and people
really involved are not so many. Its work is distributed along the
whole release cycle but often we are ok for readiness only the day
before the meeting....
After the F23 release we can plan the join-day when you want.
In the mktg case (and I'm sure also Ankur will agreed), I think that
someone of the people already member of the group needs to follow the
join-day.
About magazine, I can ask to Ryan, Chris and Paul which day is better
to meet.
>
> As for when, it's obviously going to depend on the schedule of each
> individual team that has their own Join Day, but I would perhaps
> think
> spacing them apart by a few weeks would provide us with enough time
> to
> plan and execute the event. The planning time may fluctuate between
> teams too, but I'm not well-versed enough to have a definite idea for
> that.
Ok, I agree.
>
> For rewards, I think in the big picture, badges are the "quick"
> reward
> for participants to get, but I think trying to incorporate the
> foundations of Fedora, particularly with community, would be the
> thing
> that turns the one-time contributor into a regular. Having multiple
> people around for the team would probably help contribute to this, so
> it
> should definitely be a prerogative for the team (which leads me to
> another question I'm still confused on, is this something the Join
> SIG
> works on or is it delegated to each individual team with assistance
> from
> the Join SIG?).
IMO join-SIG is formed by the only people working on this project; it
would be better if at least one effective member of each group join our
SIG.
Contributors will join their targeted group.
[cut]
> As for post-join day activities, I think encouraging blogging to
> Fedora
> Planet is a good idea to help the participants become more involved -
> I
> know it would probably be a super cool thing for someone who does
> this
> and writes about it to have a bunch of the people that helped them
> get
> started like / share / comment on their blog entry.
Of course, but how we can check it happens?
>
> Anyways, this is just some of my take on this, curious as to what the
> rest of you think.
Thank you so much Justin.
Gabri
8 years, 6 months