You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
102 lines
3.8 KiB
102 lines
3.8 KiB
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
|
|
|
|
Name: nodejs-packaging
|
|
Version: 9
|
|
Release: 2%{?dist}
|
|
Summary: RPM Macros and Utilities for Node.js Packaging
|
|
BuildArch: noarch
|
|
License: MIT
|
|
URL: https://fedoraproject.org/wiki/Node.js/Packagers
|
|
Source0: https://fedorahosted.org/released/%{name}/%{name}-fedora-%{version}.tar.xz
|
|
ExclusiveArch: %{nodejs_arches} noarch
|
|
|
|
#nodejs-devel before 0.10.12 provided these macros and owned /usr/share/node
|
|
Requires: 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 -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules
|
|
|
|
|
|
%files
|
|
%license LICENSE
|
|
%{macrosdir}/macros.nodejs
|
|
%{_rpmconfigdir}/fileattrs/nodejs*.attr
|
|
%{_rpmconfigdir}/nodejs*
|
|
%{_datadir}/node/multiver_modules
|
|
|
|
|
|
%changelog
|
|
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 9-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
|
* Tue Feb 2 2016 Tom Hughes <tom@compton.nu> - 9-1
|
|
- nodejs-fixdep: stop --move erroring on missing dependency types
|
|
|
|
* 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
|
|
|
|
* Mon Nov 16 2015 Tom Hughes <tom@compton.nu> - 7-5
|
|
- nodejs-symlink-deps: handle caret in versions
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-4
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
* Wed Mar 4 2015 Ville Skyttä <ville.skytta@iki.fi> - 7-3
|
|
- Install macros in %%{_rpmconfidir}/macros.d where available (#1074279)
|
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-2
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
* 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
|
|
|
|
* 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
|
|
|
|
* Mon Jul 29 2013 T.C. Hollingsworth <tchollingsworth@gmail.com> - 4-1
|
|
- handle cases where the symlink target exists gracefully
|
|
|
|
* 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)
|
|
- restrict to compatible arches
|
|
|
|
* 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
|