Skip to content

Commit be52eea

Browse files
committed
Only create the NodeJS RPM package if 'ndb_nodejs_extras_path' is set
1 parent bae62b7 commit be52eea

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

packaging/rpm-oel/mysql.spec.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,7 @@ Requires: %{name}-ndbclient%{?_isa} = %{version}-%{release}
550550
This package contains the development header files and libraries
551551
necessary to develop client applications for MySQL NDB storage engine.
552552

553+
%if 0%{?ndb_nodejs_extras_path:1}
553554
%package nodejs
554555
Summary: Set of Node.js adapters for MySQL Cluster
555556
Group: Applications/Databases
@@ -558,6 +559,7 @@ This package contains MySQL NoSQL Connector for JavaScript, a set of
558559
Node.js adapters for MySQL Cluster and MySQL Server, which make it
559560
possible to write JavaScript applications for Node.js using MySQL
560561
data.
562+
%endif
561563

562564
%package java
563565
Summary: MySQL Cluster Connector for Java
@@ -1322,10 +1324,12 @@ fi
13221324
%attr(644, root, root) %{_libdir}/mysql/libndbclient_static.a
13231325
%{_libdir}/mysql/libndbclient.so
13241326

1327+
%if 0%{?ndb_nodejs_extras_path:1}
13251328
%files nodejs
13261329
%defattr(-, root, root, -)
13271330
%doc %{?license_files_server}
13281331
%{_datadir}/mysql/nodejs/
1332+
%endif
13291333

13301334
%files java
13311335
%defattr(-, root, root, -)

packaging/rpm-sles/mysql.spec.in

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -443,6 +443,7 @@ Requires: %{name}-ndbclient%{?_isa} = %{version}-%{release}
443443
This package contains the development header files and libraries
444444
necessary to develop client applications for MySQL NDB storage engine.
445445

446+
%if 0%{?ndb_nodejs_extras_path:1}
446447
%package nodejs
447448
Summary: Set of Node.js adapters for MySQL Cluster
448449
Group: Applications/Databases
@@ -451,6 +452,7 @@ This package contains MySQL NoSQL Connector for JavaScript, a set of
451452
Node.js adapters for MySQL Cluster and MySQL Server, which make it
452453
possible to write JavaScript applications for Node.js using MySQL
453454
data.
455+
%endif
454456

455457
%package java
456458
Summary: MySQL Cluster Connector for Java
@@ -1128,10 +1130,12 @@ fi
11281130
%attr(644, root, root) %{_libdir}/mysql/libndbclient_static.a
11291131
%{_libdir}/mysql/libndbclient.so
11301132

1133+
%if 0%{?ndb_nodejs_extras_path:1}
11311134
%files nodejs
11321135
%defattr(-, root, root, -)
11331136
%doc %{?license_files_server}
11341137
%{_datadir}/mysql/nodejs/
1138+
%endif
11351139

11361140
%files java
11371141
%defattr(-, root, root, -)

0 commit comments

Comments
 (0)