2015-03-04 19:53:30 +00:00
|
|
|
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
Name: nodejs-packaging
|
2021-06-02 18:20:49 +00:00
|
|
|
Version: 2021.06
|
2021-07-22 16:13:42 +00:00
|
|
|
Release: 3%{?dist}
|
2013-07-10 10:43:52 +00:00
|
|
|
Summary: RPM Macros and Utilities for Node.js Packaging
|
|
|
|
BuildArch: noarch
|
|
|
|
License: MIT
|
|
|
|
URL: https://fedoraproject.org/wiki/Node.js/Packagers
|
2013-07-10 10:52:48 +00:00
|
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
2013-07-10 10:43:52 +00:00
|
|
|
|
2020-09-18 19:47:37 +00:00
|
|
|
Source0001: LICENSE
|
|
|
|
Source0002: README.md
|
|
|
|
Source0003: macros.nodejs
|
|
|
|
Source0004: multiver_modules
|
|
|
|
Source0005: nodejs-fixdep
|
|
|
|
Source0006: nodejs-setversion
|
|
|
|
Source0007: nodejs-symlink-deps
|
|
|
|
Source0008: nodejs.attr
|
|
|
|
Source0009: nodejs.prov
|
|
|
|
Source0010: nodejs.req
|
2021-01-06 18:13:56 +00:00
|
|
|
Source0011: nodejs-packaging-bundler
|
2020-09-18 19:47:37 +00:00
|
|
|
|
|
|
|
# Created with `tar cfz test.tar.gz test`
|
|
|
|
Source0101: test.tar.gz
|
|
|
|
|
2018-05-02 00:01:02 +00:00
|
|
|
BuildRequires: python3
|
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
Requires: redhat-rpm-config
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package contains RPM macros and other utilities useful for packaging
|
|
|
|
Node.js modules and applications in RPM-based distributions.
|
|
|
|
|
2021-01-06 18:13:56 +00:00
|
|
|
%package bundler
|
|
|
|
Summary: Bundle a node.js application dependencies
|
|
|
|
Requires: npm
|
|
|
|
Requires: coreutils, findutils, jq
|
|
|
|
|
|
|
|
%description bundler
|
|
|
|
nodejs-packaging-bundler bundles a node.js application node_module dependencies
|
2021-06-22 16:28:17 +00:00
|
|
|
It gathers the application tarball.
|
2021-01-06 18:13:56 +00:00
|
|
|
It generates a runtime (prod) tarball with runtime node_module dependencies
|
|
|
|
It generates a testing (dev) tarball with node_module dependencies for testing
|
2021-03-04 20:46:23 +00:00
|
|
|
It generates a bundled license file that gets the licenses in the runtime
|
|
|
|
dependency tarball
|
2016-01-31 12:14:05 +00:00
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
%prep
|
2020-09-18 19:47:37 +00:00
|
|
|
pushd %{_topdir}/BUILD
|
|
|
|
cp -da %{_sourcedir}/* .
|
|
|
|
tar xvf test.tar.gz
|
|
|
|
popd
|
2016-01-31 12:14:05 +00:00
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
|
|
|
|
%build
|
|
|
|
#nothing to do
|
|
|
|
|
2016-01-31 12:14:05 +00:00
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
%install
|
2015-03-04 19:53:30 +00:00
|
|
|
install -Dpm0644 macros.nodejs %{buildroot}%{macrosdir}/macros.nodejs
|
2013-07-10 10:43:52 +00:00
|
|
|
install -Dpm0644 nodejs.attr %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs.attr
|
|
|
|
install -pm0755 nodejs.prov %{buildroot}%{_rpmconfigdir}/nodejs.prov
|
|
|
|
install -pm0755 nodejs.req %{buildroot}%{_rpmconfigdir}/nodejs.req
|
|
|
|
install -pm0755 nodejs-symlink-deps %{buildroot}%{_rpmconfigdir}/nodejs-symlink-deps
|
|
|
|
install -pm0755 nodejs-fixdep %{buildroot}%{_rpmconfigdir}/nodejs-fixdep
|
2018-02-28 11:29:43 +00:00
|
|
|
install -pm0755 nodejs-setversion %{buildroot}%{_rpmconfigdir}/nodejs-setversion
|
2013-07-10 10:43:52 +00:00
|
|
|
install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules
|
2021-01-06 18:13:56 +00:00
|
|
|
install -Dpm0755 nodejs-packaging-bundler %{buildroot}%{_bindir}/nodejs-packaging-bundler
|
2013-07-10 10:43:52 +00:00
|
|
|
|
2016-01-31 12:14:05 +00:00
|
|
|
|
2018-05-01 23:47:38 +00:00
|
|
|
%check
|
|
|
|
./test/run
|
|
|
|
|
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
%files
|
2016-01-31 12:14:05 +00:00
|
|
|
%license LICENSE
|
2015-03-04 19:53:30 +00:00
|
|
|
%{macrosdir}/macros.nodejs
|
2013-07-10 10:43:52 +00:00
|
|
|
%{_rpmconfigdir}/fileattrs/nodejs*.attr
|
|
|
|
%{_rpmconfigdir}/nodejs*
|
|
|
|
%{_datadir}/node/multiver_modules
|
2016-01-31 12:14:05 +00:00
|
|
|
|
2021-01-06 18:13:56 +00:00
|
|
|
%files bundler
|
|
|
|
%{_bindir}/nodejs-packaging-bundler
|
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
|
|
|
|
%changelog
|
2021-07-22 16:13:42 +00:00
|
|
|
* Thu Jul 22 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2021.06-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
|
|
|
|
|
2021-06-22 16:28:17 +00:00
|
|
|
* Tue Jun 22 2021 Stephen Gallagher <sgallagh@redhat.com> - 2021.06-2
|
|
|
|
- Fix hard-coded output directory in the bundler
|
|
|
|
|
2021-06-02 18:20:49 +00:00
|
|
|
* Wed Jun 02 2021 Stephen Gallagher <sgallagh@redhat.com> - 2021.06-1
|
|
|
|
- Update to 2021.06-1
|
|
|
|
- bundler: Handle archaic license metadata
|
|
|
|
- bundler: Warn about bundled dependencies with no license metadata
|
|
|
|
|
2021-01-26 21:36:55 +00:00
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 2021.01-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
2021-01-20 14:19:40 +00:00
|
|
|
* Wed Jan 20 2021 Stephen Gallagher <sgallagh@redhat.com> - 2021.01-2
|
|
|
|
- nodejs-packaging-bundler improvements to handle uncommon characters
|
|
|
|
|
2021-01-06 18:13:56 +00:00
|
|
|
* Wed Jan 06 2021 Troy Dawson <tdawson@redhat.com> - 2021.01
|
|
|
|
- Add nodejs-packaging-bundler and update README.md
|
|
|
|
|
2020-09-18 19:47:37 +00:00
|
|
|
* Fri Sep 18 2020 Stephen Gallagher <sgallagh@redhat.com> - 2020.09-1
|
|
|
|
- Move to dist-git as the upstream
|
|
|
|
|
2020-09-02 14:52:07 +00:00
|
|
|
* Wed Sep 02 2020 Stephen Gallagher <sgallagh@redhat.com> - 25-1
|
|
|
|
- Fix incorrect bundled library detection for Requires
|
|
|
|
|
2020-09-01 14:46:37 +00:00
|
|
|
* Tue Sep 01 2020 Stephen Gallagher <sgallagh@redhat.com> - 24-1
|
|
|
|
- Check node_modules_prod for bundled dependencies
|
|
|
|
|
2020-07-28 10:55:05 +00:00
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 23-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
2020-06-03 13:25:32 +00:00
|
|
|
* Wed Jun 03 2020 Stephen Gallagher <sgallagh@redhat.com> - 23-3
|
|
|
|
- Drop Requires: nodejs(engine)
|
|
|
|
|
2020-01-29 17:45:01 +00:00
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 23-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
2019-10-31 10:04:50 +00:00
|
|
|
* Thu Oct 31 2019 Tom Hughes <tom@compton.nu> - 23-1
|
|
|
|
- Ensure nodejs(engine) is required for packages with no dependencies
|
|
|
|
|
2019-07-25 21:14:55 +00:00
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 22-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
2019-07-02 17:14:32 +00:00
|
|
|
* Tue Jul 2 2019 Tom Hughes <tom@compton.nu> - 22-1
|
|
|
|
- Refactor nodejs.req in more idiomatic Python
|
|
|
|
- Treat only external dependency links as un-bundled
|
|
|
|
|
2019-06-10 14:31:39 +00:00
|
|
|
* Mon Jun 10 2019 Tom Hughes <tom@compton.nu> - 21-1
|
|
|
|
- Refactor nodejs.prov in more idiomatic Python
|
|
|
|
|
2019-02-01 15:00:05 +00:00
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
2019-01-05 12:24:53 +00:00
|
|
|
* Sat Jan 5 2019 Tom Hughes <tom@compton.nu> - 20-1
|
|
|
|
- Fix handling of ^ dependencies for multiversion modules
|
|
|
|
|
2019-01-03 17:23:45 +00:00
|
|
|
* Thu Jan 3 2019 Tom Hughes <tom@compton.nu> - 18-1
|
|
|
|
- Handle =, >= and <= dependencies for multiversion modules
|
|
|
|
|
2018-07-13 13:29:19 +00:00
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
2018-05-03 07:51:04 +00:00
|
|
|
* Thu May 3 2018 Tom Hughes <tom@compton.nu> - 17-1
|
|
|
|
- Fix version comparators with a space after the operator
|
|
|
|
|
2018-05-01 23:47:38 +00:00
|
|
|
* Tue May 1 2018 Tom Hughes <tom@compton.nu> - 16-1
|
|
|
|
- Rewrite nodejs.req to better match npm versioning rules
|
|
|
|
- Add tests for nodejs.req and nodejs.prov
|
|
|
|
|
2018-04-30 19:44:41 +00:00
|
|
|
* Mon Apr 30 2018 Tom Hughes <tom@compton.nu> - 15-1
|
|
|
|
- Fix caret dependency ranges
|
|
|
|
|
2018-04-12 13:01:03 +00:00
|
|
|
* Thu Apr 12 2018 Tom Hughes <tom@compton.nu> - 14-1
|
|
|
|
- Only match top level modules for requires and provides generation
|
|
|
|
|
2018-02-28 11:29:43 +00:00
|
|
|
* Wed Feb 28 2018 Tom Hughes <tom@compton.nu> - 13-1
|
|
|
|
- Add %%nodejs_setversion macro
|
|
|
|
|
2018-02-23 22:22:08 +00:00
|
|
|
* Fri Feb 23 2018 Tom Hughes <tom@compton.nu> - 12-1
|
|
|
|
- Port to python 3
|
|
|
|
|
2018-02-08 06:56:45 +00:00
|
|
|
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 11-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
|
|
2018-01-13 00:23:08 +00:00
|
|
|
* Sat Jan 13 2018 Tom Hughes <tom@compton.nu> - 11-1
|
|
|
|
- nodesjs.req: use boolean with for range dependencies
|
|
|
|
|
2017-09-12 12:59:41 +00:00
|
|
|
* Tue Sep 12 2017 Stephen Gallagher <sgallagh@redhat.com> - 10-1
|
|
|
|
- Release v10
|
|
|
|
- Automatically generate Provides for bundled npm dependencies
|
|
|
|
|
2017-07-27 00:29:40 +00:00
|
|
|
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
|
|
2017-02-21 17:35:37 +00:00
|
|
|
* Tue Feb 21 2017 Tom Hughes <tom@compton.nu> - 9-3
|
|
|
|
- switch source URL to pagure
|
|
|
|
|
2017-02-10 23:36:35 +00:00
|
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
|
2016-02-02 18:05:11 +00:00
|
|
|
* Tue Feb 2 2016 Tom Hughes <tom@compton.nu> - 9-1
|
|
|
|
- nodejs-fixdep: stop --move erroring on missing dependency types
|
|
|
|
|
2016-01-31 12:14:05 +00:00
|
|
|
* Sun Jan 31 2016 Tom Hughes <tom@compton.nu> - 8-1
|
|
|
|
- nodejs-fixdep: add --move option
|
|
|
|
- nodejs-symlink-deps: add --optional option
|
|
|
|
- req: generate suggests for optional dependencies
|
|
|
|
|
2015-11-16 17:26:56 +00:00
|
|
|
* Mon Nov 16 2015 Tom Hughes <tom@compton.nu> - 7-5
|
|
|
|
- nodejs-symlink-deps: handle caret in versions
|
|
|
|
|
2015-06-17 22:48:00 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-03-04 19:53:30 +00:00
|
|
|
* Wed Mar 4 2015 Ville Skyttä <ville.skytta@iki.fi> - 7-3
|
|
|
|
- Install macros in %%{_rpmconfidir}/macros.d where available (#1074279)
|
|
|
|
|
2014-06-07 14:15:13 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-25 06:11:59 +00:00
|
|
|
* Sun May 25 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 7-1
|
|
|
|
- nodejs-symlink-deps: fix regression preventing multiply versioned modules from
|
|
|
|
being symlinked correctly
|
|
|
|
|
2014-05-24 03:14:14 +00:00
|
|
|
* Sat May 24 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 6-1
|
|
|
|
- nodejs-fixdep: use real option parsing
|
|
|
|
- nodejs-fixdep: support modifying optionalDependencies and devDependencies
|
|
|
|
- req: support the caret operator
|
|
|
|
- nodejs-symlink-deps: add --force option
|
|
|
|
- nodejs-symlink-deps: add --build alias for --check
|
|
|
|
- nodejs-fixdep: support converting to caret dependencies
|
|
|
|
- nodejs-fixdep: support non-dictionary dependency properties
|
|
|
|
- multiver_modules: add nan
|
|
|
|
|
2013-07-29 23:43:03 +00:00
|
|
|
* Mon Jul 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-1
|
|
|
|
- handle cases where the symlink target exists gracefully
|
|
|
|
|
2013-07-10 10:45:45 +00:00
|
|
|
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3-1
|
|
|
|
- dependencies and engines can be lists or strings too
|
|
|
|
- handle unversioned dependencies on multiply versioned modules correctly
|
|
|
|
(RHBZ#982798)
|
2013-07-10 10:52:48 +00:00
|
|
|
- restrict to compatible arches
|
2013-07-10 10:45:45 +00:00
|
|
|
|
2013-07-10 10:43:52 +00:00
|
|
|
* Fri Jun 21 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2-1
|
|
|
|
- move multiple version list to /usr/share/node
|
|
|
|
- bump nodejs Requires to 0.10.12
|
|
|
|
- add Requires: redhat-rpm-config
|
|
|
|
|
|
|
|
* Thu Jun 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1-1
|
|
|
|
- initial package
|