Package rpm-build-nodejs: 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 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 | %define pkg nodejs Name: rpm-build-%pkg Version: 0.20.7 Release: alt2 Summary: RPM helper scripts for building %pkg packages License: GPLv2+ Group: Development/Other Url: http://www.altlinux.org/Node.JS_Policy BuildArch: noarch Source: %name-%version.tar Source1: macros.nodejs-tap Source2: %pkg.prov.files Source3: %pkg.env Patch0: macros.nodejs-alt.patch Patch1: nodejs.req-alt.patch Patch2: nodejs.req-alt-rpmbuild404.patch Patch3: nodejs.req-alt-utf8.patch Provides: nodejs-packaging = %version Requires: npm Requires: node-devel Requires: node-gyp Requires: rpm-macros-%pkg BuildRequires: rpm-build-python3 %description RPM helper scripts and build environment for building %pkg packages. See %url for detailed %pkg packaging policy. %package -n rpm-macros-%pkg Summary: RPM helper macros for building %pkg packages License: GPLv2+ Group: Development/Other %description -n rpm-macros-%pkg RPM macros for building %pkg packages. See %url for detailed %pkg packaging policy. %prep %setup %patch0 -p2 %patch1 -p2 %patch2 -p2 %patch3 -p2 %install mkdir -p %buildroot/%_rpmmacrosdir/ cat >> %buildroot/%_rpmmacrosdir/%pkg << 'EOF' %%_rpm_build_nodejsdir %%_datadir/%name %%nodejs_arches %%ix86 x86_64 %%arm EOF sed -e s,_rpmconfigdir,_rpm_build_nodejsdir,g macros.nodejs >> %buildroot/%_rpmmacrosdir/%pkg # TMP: cat %{SOURCE1} >> %buildroot%_rpmmacrosdir/%pkg install -D -m755 %pkg.prov %buildroot/usr/lib/rpm/%pkg.prov install -D -m755 %{SOURCE2} %buildroot/usr/lib/rpm/%pkg.prov.files install -D -m644 %{SOURCE3} %buildroot%_rpmmacrosdir/%pkg.env install -D -m755 %pkg.req %buildroot/usr/lib/rpm/%pkg.req ln -s %pkg.prov.files %buildroot/usr/lib/rpm/%pkg.req.files install -D -m755 nodejs-fixdep %buildroot%_datadir/%name/%pkg-fixdep install -D -m755 nodejs-symlink-deps %buildroot%_datadir/%name/%pkg-symlink-deps install -D -m755 nodejs-setversion %{buildroot}%_datadir/%name/%pkg-setversion install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules %files %_datadir/%name %{_datadir}/node/multiver_modules /usr/lib/rpm/%pkg.prov /usr/lib/rpm/%pkg.prov.files /usr/lib/rpm/%pkg.req /usr/lib/rpm/%pkg.req.files # unused now %exclude %_rpmmacrosdir/%pkg.env %files -n rpm-macros-%pkg %_rpmmacrosdir/%pkg %changelog * Fri May 14 2021 Vitaly Lipatov <lav@altlinux.ru> 0.20.7-alt2 - add BR: rpm-build-python3 * Wed Nov 11 2020 Vitaly Lipatov <lav@altlinux.ru> 0.20.7-alt1 - macros.nodejs: node_prune: remove test dirs recursively * Thu Oct 29 2020 Vitaly Lipatov <lav@altlinux.ru> 0.20.6-alt1 - npm_install: add more excludes * Wed Oct 28 2020 Vitaly Lipatov <lav@altlinux.ru> 0.20.5-alt1 - macros.nodejs: add node_test, node_prune - hide missed build/Release error - support both pname and node_module - npm_build: more verbose * Thu Feb 20 2020 Vitaly Lipatov <lav@altlinux.ru> 0.20.4-alt2 - don't need rpm-build-python3 for node-gyp - require rpm-macros-nodejs from rpm-build-nodejs * Mon Jan 20 2020 Vitaly Lipatov <lav@altlinux.ru> 0.20.4-alt1 - node-gyp: drop --tarball * Fri Jan 10 2020 Pavel Skrylev <majioa@altlinux.org> 0.20.3-alt1 - added (+) short npm build and install macros scripts - fixed (*) license - fixed (*) dependencies * Wed Mar 27 2019 Igor Vlasenko <viy@altlinux.ru> 0.20.2-alt1 - utf-8 patch (closes: #36427) * Sat Mar 23 2019 Igor Vlasenko <viy@altlinux.ru> 0.20.1-alt1 - bugfix for rpmbuild 4.04 * Fri Mar 22 2019 Igor Vlasenko <viy@altlinux.ru> 0.20-alt1 - sync with nodejs-packaging 20-2 * Mon Aug 20 2018 Igor Vlasenko <viy@altlinux.ru> 0.6.1-alt1 - fixed warning in nodejs.req * Thu Sep 19 2013 Igor Vlasenko <viy@altlinux.ru> 0.6-alt1 - provides nodejs-packaging * Fri Jul 12 2013 Igor Vlasenko <viy@altlinux.ru> 0.5-alt1 - temporarily added nodejs-tap macros * Fri Jul 12 2013 Igor Vlasenko <viy@altlinux.ru> 0.4-alt1 - sync with nodejs-packaging 3-1 * Tue Jun 25 2013 Igor Vlasenko <viy@altlinux.ru> 0.3-alt1 - bugfixes * Sun Jun 23 2013 Igor Vlasenko <viy@altlinux.ru> 0.2-alt1 - bugfixes - TODO: sync with nodejs-0.10.12-1 after node update * Sat Jun 08 2013 Igor Vlasenko <viy@altlinux.ru> 0.1-alt1 - initial build for ALT Linux Sisyphus |