The package rpms/nodejs-svgmin.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-svgmin.git/commit/?id=9956c8e....
Change: -ExclusiveArch: %{nodejs_arches} noarch
Thanks.
Full change: ============
commit 9956c8e05844e0dd76e0711917d9bcfa76847732 Author: Fedora Release Engineering releng@fedoraproject.org Date: Thu Aug 8 16:11:19 2019 +0000
nodejs-svgmin fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675534
diff --git a/.gitignore b/.gitignore deleted file mode 100644 index ee3307e..0000000 --- a/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/svgmin-0.1.0.tgz diff --git a/LICENSE.md b/LICENSE.md deleted file mode 100644 index 61ed259..0000000 --- a/LICENSE.md +++ /dev/null @@ -1,21 +0,0 @@ -### License - -MIT [Steve Mao](https://github.com/stevemao) - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/README.md b/README.md deleted file mode 100644 index c9d8b07..0000000 --- a/README.md +++ /dev/null @@ -1,113 +0,0 @@ -# Ultron - -[![Made by unshift](https://img.shields.io/badge/made%20by-unshift-00ffcc.svg?style=flat-square)... npm](http://img.shields.io/npm/v/ultron.svg?style=flat-square)%5D(http://browsenp... Status](http://img.shields.io/travis/unshiftio/ultron/master.svg?style=flat-square)%... Status](http://img.shields.io/coveralls/unshiftio/ultron/master.svg?style=flat-squar... channel](http://img.shields.io/badge/IRC-irc.freenode.net%23unshift-00a8ff.svg?style=...) - -Ultron is a high-intelligence robot. It gathers intelligence so it can start -improving upon his rudimentary design. It will learn your event emitting -patterns and find ways to exterminate them. Allowing you to remove only the -event emitters that **you** assigned and not the ones that your users or -developers assigned. This can prevent race conditions, memory leaks and even file -descriptor leaks from ever happening as you won't remove clean up processes. - -## Installation - -The module is designed to be used in browsers using browserify and in Node.js. -You can install the module through the public npm registry by running the -following command in CLI: - -``` -npm install --save ultron -``` - -## Usage - -In all examples we assume that you've required the library as following: - -```js -'use strict'; - -var Ultron = require('ultron'); -``` - -Now that we've required the library we can construct our first `Ultron` instance. -The constructor requires one argument which should be the `EventEmitter` -instance that we need to operate upon. This can be the `EventEmitter` module -that ships with Node.js or `EventEmitter3` or anything else as long as it -follow the same API and internal structure as these 2. So with that in mind we -can create the instance: - -```js -// -// For the sake of this example we're going to construct an empty EventEmitter -// -var EventEmitter = require('events').EventEmitter; // or require('eventmitter3'); -var events = new EventEmitter(); - -var ultron = new Ultron(events); -``` - -You can now use the following API's from the Ultron instance: - -### Ultron.on - -Register a new event listener for the given event. It follows the exact same API -as `EventEmitter.on` but it will return itself instead of returning the -EventEmitter instance. If you are using EventEmitter3 it also supports the -context param: - -```js -ultron.on('event-name', handler, { custom: 'function context' }); -``` - -Just like you would expect, it can also be chained together. - -```js -ultron -.on('event-name', handler) -.on('another event', handler); -``` - -### Ultron.once - -Exactly the same as the [Ultron.on](#ultronon) but it only allows the execution -once. - -Just like you would expect, it can also be chained together. - -```js -ultron -.once('event-name', handler, { custom: 'this value' }) -.once('another event', handler); -``` - -### Ultron.remove - -This is where all the magic happens and the safe removal starts. This function -accepts different argument styles: - -- No arguments, assume that all events need to be removed so it will work as - `removeAllListeners()` API. -- 1 argument, when it's a string it will be split on ` ` and `,` to create a - list of events that need to be cleared. -- Multiple arguments, we assume that they are all names of events that need to - be cleared. - -```js -ultron.remove('foo, bar baz'); // Removes foo, bar and baz. -ultron.remove('foo', 'bar', 'baz'); // Removes foo, bar and baz. -ultron.remove(); // Removes everything. -``` - -If you just want to remove a single event listener using a function reference -you can still use the EventEmitter's `removeListener(event, fn)` API: - -```js -function foo() {} - -ultron.on('foo', foo); -events.removeListener('foo', foo); -``` - -## License - -MIT diff --git a/dead.package b/dead.package new file mode 100644 index 0000000..21509c7 --- /dev/null +++ b/dead.package @@ -0,0 +1 @@ +nodejs-svgmin fails to build from source: https://bugzilla.redhat.com/show_bug.cgi?id=1675534 diff --git a/index.js b/index.js deleted file mode 100644 index ac17b8d..0000000 --- a/index.js +++ /dev/null @@ -1,138 +0,0 @@ -'use strict'; - -var Ware = require('ware'); -var xml2js = require('xml2js'); - -/** - * Initialize Svgmin - * - * @api public - */ - -function Svgmin() { - if (!(this instanceof Svgmin)) { - return new Svgmin(); - } - - this.ware = new Ware(); -} - -/** - * Get or set the source string - * - * @param {String} str - * @api public - */ - -Svgmin.prototype.src = function (str) { - if (!arguments.length) { - return this._src; - } - - this._src = str; - return this; -}; - -/** - * Add a plugin to the middleware stack - * - * @param {Function} plugin - * @api public - */ - -Svgmin.prototype.use = function (plugin) { - this.ware.use(plugin); - return this; -}; - -/** - * Run - * - * @param {Function} cb - * @api public - */ - -Svgmin.prototype.run = function (cb) { - var src = this.src(); - var self = this; - - this.toJs(src, function (err, obj) { - if (err) { - cb(err); - return; - } - - self.runPlugins(obj, function (err, obj) { - if (err) { - cb(err); - return; - } - - self.toSvg(obj, function (err, str) { - if (err) { - cb(err); - return; - } - - cb(null, str); - }); - }); - }); -}; - -/** - * Run object through the middleware - * - * @param {Object} obj - * @param {Function} cb - * @api public - */ - -Svgmin.prototype.runPlugins = function (obj, cb) { - this.ware.run(obj, this, cb); -}; - -/** - * Parse SVG to JS - * - * @param {String} str - * @param {Function} cb - * @api public - */ - -Svgmin.prototype.toJs = function (str, cb) { - var parse = xml2js.parseString; - var opts = { - normalize: true, - normalizeTags: true, - trim: true - }; - - parse(str, opts, function (err, res) { - if (err) { - cb(err); - return; - } - - cb(null, res); - }); -}; - -/** - * Convert object to SVG - * - * @param {Object} obj - * @param {Function} cb - * @api public - */ - -Svgmin.prototype.toSvg = function (obj, cb) { - var builder = new xml2js.Builder({ renderOpts: { pretty: false }}); - cb(null, builder.buildObject(obj)); -}; - -/** - * Module exports - */ - -module.exports = Svgmin; diff --git a/nodejs-svgmin.spec b/nodejs-svgmin.spec deleted file mode 100644 index f8697f4..0000000 --- a/nodejs-svgmin.spec +++ /dev/null @@ -1,91 +0,0 @@ -%{?nodejs_find_provides_and_requires} - -%global packagename svgmin - -# tests disabled because they haven't been tagged in upstream github -%global enable_tests 0 - -Name: nodejs-svgmin -Version: 0.1.0 -Release: 6%{?dist} -Summary: Minify SVG files - -License: MIT -URL: https://github.com/kevva/svgmin -Source0: https://registry.npmjs.org/%%7Bpackagename%7D/-/%%7Bpackagename%7D-%%7Bversi... -# Get the license and readme files from upstream repo -Source11: https://raw.githubusercontent.com/kevva/svgmin/master/LICENSE.md -Source12: https://raw.githubusercontent.com/kevva/svgmin/master/README.md -# The index.js file in the npm archive is zero-length, so grab from github -# instead (master branch, since the releases aren't tagged on github) -Source13: https://raw.githubusercontent.com/kevva/svgmin/master/index.js - -ExclusiveArch: %{nodejs_arches} noarch -BuildArch: noarch - -BuildRequires: nodejs-packaging -BuildRequires: npm(ware) -BuildRequires: npm(xml2js) - -%if 0%{?enable_tests} -# nothing -%endif - -Requires: nodejs - -%description -Minify SVG files - - -%prep -%setup -q -n package -# copy the license and readme -cp -r %{SOURCE11} . -cp -r %{SOURCE12} . -# copy the real index.js -cp -r %{SOURCE13} . - -%build -# nothing to do! - -%install -mkdir -p %{buildroot}%{nodejs_sitelib}/%{packagename} -cp -pr package.json *.js \ - %{buildroot}%{nodejs_sitelib}/%{packagename} - -%nodejs_symlink_deps - -%check -%nodejs_symlink_deps --check -%if 0%{?enable_tests} -node test/test.js -%else -%{_bindir}/echo -e "\e[101m -=#=- Tests disabled -=#=- \e[0m" -%endif - - -%files -%{!?_licensedir:%global license %doc} -%doc README.md -%license LICENSE.md -%{nodejs_sitelib}/%{packagename} - - -%changelog -* Thu Jul 25 2019 Fedora Release Engineering releng@fedoraproject.org - 0.1.0-6 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild - -* Fri Feb 01 2019 Fedora Release Engineering releng@fedoraproject.org - 0.1.0-5 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild - -* Fri Jul 13 2018 Fedora Release Engineering releng@fedoraproject.org - 0.1.0-4 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild - -* Thu Feb 08 2018 Fedora Release Engineering releng@fedoraproject.org - 0.1.0-3 -- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild - -* Mon Aug 08 2016 Jared Smith jsmith@fedoraproject.org - 0.1.0-2 -- Fix zero-length index.js file - -* Sun Oct 25 2015 Jared Smith jsmith@fedoraproject.org - 0.1.0-1 -- Initial packaging diff --git a/sources b/sources deleted file mode 100644 index 9daba7e..0000000 --- a/sources +++ /dev/null @@ -1 +0,0 @@ -SHA512 (svgmin-0.1.0.tgz) = fec8070eab55584ce99692524df8a89517b5227de4055f3617b108cdb58cc26757804a88266af72eb884b88e2cc7c40ef15807fa3a7270548d899fe09f7d7b8b
arch-excludes@lists.fedoraproject.org