Install macros in %{_rpmconfidir}/macros.d where available (#1074279)

This commit is contained in:
Ville Skyttä 2015-03-04 21:53:30 +02:00
parent c9bc5426a7
commit 48ee4c2b6a

View File

@ -1,6 +1,8 @@
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
Name: nodejs-packaging Name: nodejs-packaging
Version: 7 Version: 7
Release: 2%{?dist} Release: 3%{?dist}
Summary: RPM Macros and Utilities for Node.js Packaging Summary: RPM Macros and Utilities for Node.js Packaging
BuildArch: noarch BuildArch: noarch
License: MIT License: MIT
@ -23,7 +25,7 @@ Node.js modules and applications in RPM-based distributions.
#nothing to do #nothing to do
%install %install
install -Dpm0644 macros.nodejs %{buildroot}%{_sysconfdir}/rpm/macros.nodejs install -Dpm0644 macros.nodejs %{buildroot}%{macrosdir}/macros.nodejs
install -Dpm0644 nodejs.attr %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs.attr install -Dpm0644 nodejs.attr %{buildroot}%{_rpmconfigdir}/fileattrs/nodejs.attr
install -pm0755 nodejs.prov %{buildroot}%{_rpmconfigdir}/nodejs.prov install -pm0755 nodejs.prov %{buildroot}%{_rpmconfigdir}/nodejs.prov
install -pm0755 nodejs.req %{buildroot}%{_rpmconfigdir}/nodejs.req install -pm0755 nodejs.req %{buildroot}%{_rpmconfigdir}/nodejs.req
@ -32,13 +34,16 @@ install -pm0755 nodejs-fixdep %{buildroot}%{_rpmconfigdir}/nodejs-fixdep
install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules
%files %files
%{_sysconfdir}/rpm/macros.nodejs %{macrosdir}/macros.nodejs
%{_rpmconfigdir}/fileattrs/nodejs*.attr %{_rpmconfigdir}/fileattrs/nodejs*.attr
%{_rpmconfigdir}/nodejs* %{_rpmconfigdir}/nodejs*
%{_datadir}/node/multiver_modules %{_datadir}/node/multiver_modules
%doc LICENSE %doc LICENSE
%changelog %changelog
* 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 * Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild