!4 use %{_vendor} instead of openeuler hardcode

From: @wonleing 
Reviewed-by: @gitee-cmd 
Signed-off-by: @gitee-cmd
This commit is contained in:
openeuler-ci-bot 2022-12-23 04:29:44 +00:00 committed by Gitee
commit 2fd12bdf2e
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F

View File

@ -1,7 +1,7 @@
%global macrosdir %(d=%{_rpmconfigdir}/macros.d; [ -d $d ] || d=%{_sysconfdir}/rpm; echo $d)
Name: nodejs-packaging
Version: 20
Release: 1
Release: 2
Summary: RPM Macros and Utilities for Node.js Packaging
BuildArch: noarch
License: MIT
@ -10,7 +10,7 @@ Source0: https://releases.pagure.org/%{name}/%{name}-fedora-%{versio
#ExclusiveArch: %{nodejs_arches} noarch
BuildRequires: python3
#nodejs-devel before 0.10.12 provided these macros and owned /usr/share/node
Requires: nodejs(engine) >= 0.10.12 openEuler-rpm-config
Requires: nodejs(engine) >= 0.10.12 %{_vendor}-rpm-config
%description
This package contains RPM macros and other utilities useful for packaging
Node.js modules and applications in RPM-based distributions.
@ -42,5 +42,8 @@ install -Dpm0644 multiver_modules %{buildroot}%{_datadir}/node/multiver_modules
%{_datadir}/node/multiver_modules
%changelog
* Thu Dec 22 2022 wanglin <wangl29@chinatelecom.cn> - 20-2
- Fix rpm-config hard code problem
* Thu Aug 20 2020 wutao <wutao61@huawei.com> - 20-1
- package init