48ee4c2
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
48ee4c2
T.C. Hollingsworth f1fb576
Name:           nodejs-packaging
8de3f91
Version:        2020.09
372df43
Release:        1%{?dist}
T.C. Hollingsworth f1fb576
Summary:        RPM Macros and Utilities for Node.js Packaging
T.C. Hollingsworth f1fb576
BuildArch:      noarch
T.C. Hollingsworth f1fb576
License:        MIT
T.C. Hollingsworth f1fb576
URL:            https://fedoraproject.org/wiki/Node.js/Packagers
T.C. Hollingsworth 87370bb
ExclusiveArch:  %{nodejs_arches} noarch
T.C. Hollingsworth f1fb576
8de3f91
Source0001: LICENSE
8de3f91
Source0002: README.md
8de3f91
Source0003: macros.nodejs
8de3f91
Source0004: multiver_modules
8de3f91
Source0005: nodejs-fixdep
8de3f91
Source0006: nodejs-setversion
8de3f91
Source0007: nodejs-symlink-deps
8de3f91
Source0008: nodejs.attr
8de3f91
Source0009: nodejs.prov
8de3f91
Source0010: nodejs.req
8de3f91
8de3f91
# Created with `tar cfz test.tar.gz test`
8de3f91
Source0101: test.tar.gz
8de3f91
9983689
BuildRequires:  python3
9983689
T.C. Hollingsworth f1fb576
Requires:       redhat-rpm-config
T.C. Hollingsworth f1fb576
T.C. Hollingsworth f1fb576
%description
T.C. Hollingsworth f1fb576
This package contains RPM macros and other utilities useful for packaging
T.C. Hollingsworth f1fb576
Node.js modules and applications in RPM-based distributions.
T.C. Hollingsworth f1fb576
207e477
T.C. Hollingsworth f1fb576
%prep
8de3f91
pushd %{_topdir}/BUILD
8de3f91
cp -da %{_sourcedir}/* .
8de3f91
tar xvf test.tar.gz
8de3f91
popd
207e477
T.C. Hollingsworth f1fb576
T.C. Hollingsworth f1fb576
%build
T.C. Hollingsworth f1fb576
#nothing to do
T.C. Hollingsworth f1fb576
207e477
T.C. Hollingsworth f1fb576
%install
48ee4c2
install -Dpm0644 macros.nodejs %{buildroot}%{macrosdir}/macros.nodejs
T.C. Hollingsworth f1fb576
install -Dpm0644 nodejs.attr %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs.attr
T.C. Hollingsworth f1fb576
install -pm0755 nodejs.prov %{buildroot}%{_rpmconfigdir}/nodejs.prov
T.C. Hollingsworth f1fb576
install -pm0755 nodejs.req %{buildroot}%{_rpmconfigdir}/nodejs.req
T.C. Hollingsworth f1fb576
install -pm0755 nodejs-symlink-deps %{buildroot}%{_rpmconfigdir}/nodejs-symlink-deps
T.C. Hollingsworth f1fb576
install -pm0755 nodejs-fixdep %{buildroot}%{_rpmconfigdir}/nodejs-fixdep
1f15ed7
install -pm0755 nodejs-setversion %{buildroot}%{_rpmconfigdir}/nodejs-setversion
T.C. Hollingsworth f1fb576
install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules
T.C. Hollingsworth f1fb576
207e477
7428d76
%check
7428d76
./test/run
7428d76
7428d76
T.C. Hollingsworth f1fb576
%files
207e477
%license LICENSE
48ee4c2
%{macrosdir}/macros.nodejs
T.C. Hollingsworth f1fb576
%{_rpmconfigdir}/fileattrs/nodejs*.attr
T.C. Hollingsworth f1fb576
%{_rpmconfigdir}/nodejs*
T.C. Hollingsworth f1fb576
%{_datadir}/node/multiver_modules
207e477
T.C. Hollingsworth f1fb576
T.C. Hollingsworth f1fb576
%changelog
8de3f91
* Fri Sep 18 2020 Stephen Gallagher <sgallagh@redhat.com> - 2020.09-1
8de3f91
- Move to dist-git as the upstream
8de3f91
c68c968
* Wed Sep 02 2020 Stephen Gallagher <sgallagh@redhat.com> - 25-1
c68c968
- Fix incorrect bundled library detection for Requires
c68c968
372df43
* Tue Sep 01 2020 Stephen Gallagher <sgallagh@redhat.com> - 24-1
372df43
- Check node_modules_prod for bundled dependencies
372df43
3ee96cd
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 23-4
3ee96cd
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
3ee96cd
021f0ba
* Wed Jun 03 2020 Stephen Gallagher <sgallagh@redhat.com> - 23-3
021f0ba
- Drop Requires: nodejs(engine)
021f0ba
06eeb0e
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 23-2
06eeb0e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
06eeb0e
f3e8a04
* Thu Oct 31 2019 Tom Hughes <tom@compton.nu> - 23-1
f3e8a04
- Ensure nodejs(engine) is required for packages with no dependencies
f3e8a04
47235c6
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 22-2
47235c6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
47235c6
9875fea
* Tue Jul  2 2019 Tom Hughes <tom@compton.nu> - 22-1
9875fea
- Refactor nodejs.req in more idiomatic Python
9875fea
- Treat only external dependency links as un-bundled
9875fea
0af8638
* Mon Jun 10 2019 Tom Hughes <tom@compton.nu> - 21-1
0af8638
- Refactor nodejs.prov in more idiomatic Python
0af8638
82f548a
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 20-2
82f548a
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
82f548a
3b49842
* Sat Jan  5 2019 Tom Hughes <tom@compton.nu> - 20-1
3b49842
- Fix handling of ^ dependencies for multiversion modules
3b49842
d4c27e1
* Thu Jan  3 2019 Tom Hughes <tom@compton.nu> - 18-1
d4c27e1
- Handle =, >= and <= dependencies for multiversion modules
d4c27e1
fefb4a0
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 17-2
fefb4a0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
fefb4a0
682ccaa
* Thu May  3 2018 Tom Hughes <tom@compton.nu> - 17-1
682ccaa
- Fix version comparators with a space after the operator
682ccaa
7428d76
* Tue May  1 2018 Tom Hughes <tom@compton.nu> - 16-1
7428d76
- Rewrite nodejs.req to better match npm versioning rules
7428d76
- Add tests for nodejs.req and nodejs.prov
7428d76
9ab0cce
* Mon Apr 30 2018 Tom Hughes <tom@compton.nu> - 15-1
9ab0cce
- Fix caret dependency ranges
9ab0cce
0f8a055
* Thu Apr 12 2018 Tom Hughes <tom@compton.nu> - 14-1
0f8a055
- Only match top level modules for requires and provides generation
0f8a055
1f15ed7
* Wed Feb 28 2018 Tom Hughes <tom@compton.nu> - 13-1
1f15ed7
- Add %%nodejs_setversion macro
1f15ed7
b023303
* Fri Feb 23 2018 Tom Hughes <tom@compton.nu> - 12-1
b023303
- Port to python 3
b023303
e35ac62
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 11-2
e35ac62
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
e35ac62
d0b9330
* Sat Jan 13 2018 Tom Hughes <tom@compton.nu> - 11-1
d0b9330
- nodesjs.req: use boolean with for range dependencies
d0b9330
79a61a7
* Tue Sep 12 2017 Stephen Gallagher <sgallagh@redhat.com> - 10-1
79a61a7
- Release v10
79a61a7
- Automatically generate Provides for bundled npm dependencies
79a61a7
ab09ef0
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9-4
ab09ef0
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
ab09ef0
037154a
* Tue Feb 21 2017 Tom Hughes <tom@compton.nu> - 9-3
037154a
- switch source URL to pagure
037154a
de2dd70
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9-2
de2dd70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
de2dd70
697d52f
* Tue Feb  2 2016 Tom Hughes <tom@compton.nu> - 9-1
697d52f
- nodejs-fixdep: stop --move erroring on missing dependency types
697d52f
207e477
* Sun Jan 31 2016 Tom Hughes <tom@compton.nu> - 8-1
207e477
- nodejs-fixdep: add --move option
207e477
- nodejs-symlink-deps: add --optional option
207e477
- req: generate suggests for optional dependencies
207e477
1656b7e
* Mon Nov 16 2015 Tom Hughes <tom@compton.nu> - 7-5
1656b7e
- nodejs-symlink-deps: handle caret in versions
1656b7e
eaf0c04
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-4
eaf0c04
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
eaf0c04
48ee4c2
* Wed Mar  4 2015 Ville Skyttä <ville.skytta@iki.fi> - 7-3
48ee4c2
- Install macros in %%{_rpmconfidir}/macros.d where available (#1074279)
48ee4c2
c9bc542
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-2
c9bc542
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
c9bc542
T.C. Hollingsworth 958fb72
* Sun May 25 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 7-1
T.C. Hollingsworth 958fb72
- nodejs-symlink-deps: fix regression preventing multiply versioned modules from
T.C. Hollingsworth 958fb72
  being symlinked correctly
T.C. Hollingsworth 958fb72
T.C. Hollingsworth 110033b
* Sat May 24 2014 T.C. Hollingsworth <tchollingsworth@gmail.com> - 6-1
T.C. Hollingsworth 110033b
- nodejs-fixdep: use real option parsing
T.C. Hollingsworth 110033b
- nodejs-fixdep: support modifying optionalDependencies and devDependencies
T.C. Hollingsworth 110033b
- req: support the caret operator
T.C. Hollingsworth 110033b
- nodejs-symlink-deps: add --force option
T.C. Hollingsworth 110033b
- nodejs-symlink-deps: add --build alias for --check
T.C. Hollingsworth 110033b
- nodejs-fixdep: support converting to caret dependencies
T.C. Hollingsworth 110033b
- nodejs-fixdep: support non-dictionary dependency properties
T.C. Hollingsworth 110033b
- multiver_modules: add nan
T.C. Hollingsworth 110033b
T.C. Hollingsworth 7a44985
* Mon Jul 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-1
T.C. Hollingsworth 7a44985
- handle cases where the symlink target exists gracefully
T.C. Hollingsworth 7a44985
T.C. Hollingsworth 55efec8
* Wed Jul 10 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 3-1
T.C. Hollingsworth 55efec8
- dependencies and engines can be lists or strings too
T.C. Hollingsworth 55efec8
- handle unversioned dependencies on multiply versioned modules correctly
T.C. Hollingsworth 55efec8
  (RHBZ#982798)
T.C. Hollingsworth 87370bb
- restrict to compatible arches
T.C. Hollingsworth 55efec8
T.C. Hollingsworth f1fb576
* Fri Jun 21 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 2-1
T.C. Hollingsworth f1fb576
- move multiple version list to /usr/share/node
T.C. Hollingsworth f1fb576
- bump nodejs Requires to 0.10.12
T.C. Hollingsworth f1fb576
- add Requires: redhat-rpm-config
T.C. Hollingsworth f1fb576
T.C. Hollingsworth f1fb576
* Thu Jun 13 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 1-1
T.C. Hollingsworth f1fb576
- initial package