Пакет node-webpack-cli: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 | %define node_module webpack-cli %filter_from_requires /^nodejs.engine./d %{?nodejs_find_provides_and_requires} Name: node-webpack-cli Version: 4.5.0 Release: alt1 Summary: Webpack's Command Line Interface License: MIT License Group: Development/Other Url: https://webpack.js.org/api/cli Packager: Vitaly Lipatov <lav@altlinux.ru> # Source-url: https://github.com/webpack/webpack-cli/archive/webpack-cli@%version.tar.gz Source: %name-%version.tar Source2: %name-production-%version.tar BuildArch: noarch BuildRequires(pre): rpm-build-intro >= 1.9.18 BuildRequires: rpm-build-nodejs node BuildRequires(pre): rpm-macros-nodejs # /usr/bin/tsc #BuildRequires: node-typescript >= 4.1.3 # FIXME: yarn needs /proc: https://github.com/yarnpkg/yarn/issues/7251 #BuildRequires: yarn /proc # PeerDependencies Requires: node-webpack >= 5.18.0 #Requires: node >= 10.13.0 # rpm-build-nodejs Provides: nodejs-%node_module = %version-%release Obsoletes: nodejs-%node_module < %version Provides: %node_module = %version-%release Obsoletes: %node_module < %version AutoReq: no AutoProv: no Requires: node %description webpack CLI provides a flexible set of commands for developers to increase speed when setting up a custom webpack project. As of webpack v4, webpack is not expecting a configuration file, but often developers want to create a more custom webpack configuration based on their use-cases and needs. webpack CLI addresses these needs by providing a set of tools to improve the setup of custom webpack configuration. Webpack is a bundler for javascript and friends. Packs many modules into a few bundled assets. Code Splitting allows for loading parts of the application on demand. Through "loaders", modules can be CommonJs, AMD, ES6 modules, CSS, Images, JSON, Coffeescript, LESS, ... and your custom stuff. %prep %setup -a2 #ln -s %nodejs_sitelib/webpack node_modules/ # only yarn install does it #ln -s ../packages/webpack-cli node_modules/ %build #npm run-script build # do not work without development requires # and needs xvfb-maybe #%check #npm test %install # replace node_modules with got after npm install --production #rm -rf node_modules #tar xf %SOURCE2 #npm install --prefix %buildroot mkdir -p %buildroot%nodejs_sitelib/%node_module/ #chmod a+x bin/* #cp -rp bin node_modules package.json %buildroot/%nodejs_sitelib/%node_module cp -a packages/webpack-cli/* %buildroot/%nodejs_sitelib/%node_module/ cp -v packages/webpack-cli/package.json ./ cp -a node_modules/ %buildroot/%nodejs_sitelib/%node_module/ mkdir -p %buildroot%_bindir/ #ln -s %nodejs_sitelib/%node_module/bin/webpack.js %buildroot%_bindir/webpack %_ln_sr %buildroot%nodejs_sitelib/%node_module/bin/cli.js %buildroot%_bindir/webpack %_ln_sr %buildroot%nodejs_sitelib/%node_module/bin/cli.js %buildroot%_bindir/webpack-cli #nodejs_symlink_deps %npm_prune #check #npm_test %files %doc LICENSE README.md %_bindir/webpack %_bindir/webpack-cli %nodejs_sitelib/%node_module/ %changelog * Tue Feb 23 2021 Vitaly Lipatov <lav@altlinux.ru> 4.5.0-alt1 - new version 4.5.0 (with rpmrb script) - pack only packages/webpack-cli * Tue Oct 13 2020 Vitaly Lipatov <lav@altlinux.ru> 4.0.0-alt1 - new version 4.0.0 (with rpmrb script) * Tue Oct 29 2019 Vitaly Lipatov <lav@altlinux.ru> 3.3.9-alt1 - initial build for ALT Sisyphus |