commit bc5b5daa0e7a462a41284b61549c7e9bee04f9ae Author: CentOS Sources Date: Tue Nov 3 07:05:13 2020 -0500 import nodejs-packaging-23-3.module+el8.3.0+6519+9f98ed83 diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..25e17d3 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/nodejs-packaging-fedora-23.tar.xz diff --git a/.nodejs-packaging.metadata b/.nodejs-packaging.metadata new file mode 100644 index 0000000..5a2ce9c --- /dev/null +++ b/.nodejs-packaging.metadata @@ -0,0 +1 @@ +7fa84f4a8aa409eca9694d062eed8eaa8f879345 SOURCES/nodejs-packaging-fedora-23.tar.xz diff --git a/SPECS/nodejs-packaging.spec b/SPECS/nodejs-packaging.spec new file mode 100644 index 0000000..3aba99b --- /dev/null +++ b/SPECS/nodejs-packaging.spec @@ -0,0 +1,178 @@ +%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d) + +Name: nodejs-packaging +Version: 23 +Release: 3%{?dist} +Summary: RPM Macros and Utilities for Node.js Packaging +BuildArch: noarch +License: MIT +URL: https://fedoraproject.org/wiki/Node.js/Packagers +Source0: https://releases.pagure.org/%{name}/%{name}-fedora-%{version}.tar.xz +ExclusiveArch: %{nodejs_arches} noarch + +BuildRequires: python3-devel + +#nodejs-devel before 0.10.12 provided these macros and owned /usr/share/node +Recommends: nodejs(engine) >= 0.10.12 +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. + + +%prep +%autosetup -p 1 -n %{name}-fedora-%{version} + + +%build +#nothing to do + + +%install +install -Dpm0644 macros.nodejs %{buildroot}%{macrosdir}/macros.nodejs +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 +install -pm0755 nodejs-setversion %{buildroot}%{_rpmconfigdir}/nodejs-setversion +install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules + + +%check +./test/run + + +%files +%license LICENSE +%{macrosdir}/macros.nodejs +%{_rpmconfigdir}/fileattrs/nodejs*.attr +%{_rpmconfigdir}/nodejs* +%{_datadir}/node/multiver_modules + + +%changelog +* Wed May 06 2020 Zuzana Svetlikova - 23-3 +- Updated +- Removed pathfix.py + +* Wed Jan 29 2020 Fedora Release Engineering - 23-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Thu Oct 31 2019 Tom Hughes - 23-1 +- Ensure nodejs(engine) is required for packages with no dependencies + +* Thu Jul 25 2019 Fedora Release Engineering - 22-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Tue Jul 2 2019 Tom Hughes - 22-1 +- Refactor nodejs.req in more idiomatic Python +- Treat only external dependency links as un-bundled + +* Mon Jun 10 2019 Tom Hughes - 21-1 +- Refactor nodejs.prov in more idiomatic Python + +* Fri Feb 01 2019 Fedora Release Engineering - 20-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jan 5 2019 Tom Hughes - 20-1 +- Fix handling of ^ dependencies for multiversion modules + +* Thu Jan 3 2019 Tom Hughes - 18-1 +- Handle =, >= and <= dependencies for multiversion modules + +* Tue Jan 1 2019 zsvetlik@redhat.com - 17-3 +- Change Requires to Recommends on nodejs dependency, so it is usable for building nodejs + +* Wed Jul 04 2018 Tomas Orsava - 17-2 +- Switch hardcoded python3 shebangs into the %%{__python3} macro + +* Thu May 3 2018 Tom Hughes - 17-1 +- Fix version comparators with a space after the operator + +* Tue May 1 2018 Tom Hughes - 16-1 +- Rewrite nodejs.req to better match npm versioning rules +- Add tests for nodejs.req and nodejs.prov + +* Mon Apr 30 2018 Tom Hughes - 15-1 +- Fix caret dependency ranges + +* Thu Apr 12 2018 Tom Hughes - 14-1 +- Only match top level modules for requires and provides generation + +* Wed Feb 28 2018 Tom Hughes - 13-1 +- Add %%nodejs_setversion macro + +* Fri Feb 23 2018 Tom Hughes - 12-1 +- Port to python 3 + +* Thu Feb 08 2018 Fedora Release Engineering - 11-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Sat Jan 13 2018 Tom Hughes - 11-1 +- nodesjs.req: use boolean with for range dependencies + +* Tue Sep 12 2017 Stephen Gallagher - 10-1 +- Release v10 +- Automatically generate Provides for bundled npm dependencies + +* Thu Jul 27 2017 Fedora Release Engineering - 9-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Feb 21 2017 Tom Hughes - 9-3 +- switch source URL to pagure + +* Fri Feb 10 2017 Fedora Release Engineering - 9-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild + +* Tue Feb 2 2016 Tom Hughes - 9-1 +- nodejs-fixdep: stop --move erroring on missing dependency types + +* Sun Jan 31 2016 Tom Hughes - 8-1 +- nodejs-fixdep: add --move option +- nodejs-symlink-deps: add --optional option +- req: generate suggests for optional dependencies + +* Mon Nov 16 2015 Tom Hughes - 7-5 +- nodejs-symlink-deps: handle caret in versions + +* Wed Jun 17 2015 Fedora Release Engineering - 7-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild + +* Wed Mar 4 2015 Ville Skyttä - 7-3 +- Install macros in %%{_rpmconfidir}/macros.d where available (#1074279) + +* Sat Jun 07 2014 Fedora Release Engineering - 7-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild + +* Sun May 25 2014 T.C. Hollingsworth - 7-1 +- nodejs-symlink-deps: fix regression preventing multiply versioned modules from + being symlinked correctly + +* Sat May 24 2014 T.C. Hollingsworth - 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 + +* Mon Jul 29 2013 T.C. Hollingsworth - 4-1 +- handle cases where the symlink target exists gracefully + +* Wed Jul 10 2013 T.C. Hollingsworth - 3-1 +- dependencies and engines can be lists or strings too +- handle unversioned dependencies on multiply versioned modules correctly + (RHBZ#982798) +- restrict to compatible arches + +* Fri Jun 21 2013 T.C. Hollingsworth - 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 - 1-1 +- initial package