Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
M
MariaDB
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
MariaDB
Commits
bf92d91e
Commit
bf92d91e
authored
Mar 31, 2008
by
kent/mysqldev@mysql.com/production.mysql.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
mysql.spec.sh:
Made Federated and Cluster optional
parent
7cd32aa3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
35 additions
and
1 deletion
+35
-1
support-files/mysql.spec.sh
support-files/mysql.spec.sh
+35
-1
No files found.
support-files/mysql.spec.sh
View file @
bf92d91e
...
@@ -27,6 +27,16 @@
...
@@ -27,6 +27,16 @@
%
{
?_with_yassl:%define YASSL_BUILD 1
}
%
{
?_with_yassl:%define YASSL_BUILD 1
}
%
{!
?_with_yassl:%define YASSL_BUILD 0
}
%
{!
?_with_yassl:%define YASSL_BUILD 0
}
# use "rpmbuild --with cluster" or "rpm --define '_with_cluster 1'" (for RPM 3.x)
# to build with cluster support (off by default)
%
{
?_with_cluster:%define CLUSTER_BUILD 1
}
%
{!
?_with_cluster:%define CLUSTER_BUILD 0
}
# use "rpmbuild --with federated" or "rpm --define '_with_federated 1'" (for RPM 3.x)
# to build with federated support (off by default)
%
{
?_with_federated:%define FEDERATED_BUILD 1
}
%
{!
?_with_federated:%define FEDERATED_BUILD 0
}
%if %
{
STATIC_BUILD
}
%if %
{
STATIC_BUILD
}
%define release 0
%define release 0
%else
%else
...
@@ -134,6 +144,7 @@ This package contains the standard MySQL clients and administration tools.
...
@@ -134,6 +144,7 @@ This package contains the standard MySQL clients and administration tools.
%
{
see_base
}
%
{
see_base
}
%if %
{
CLUSTER_BUILD
}
%package ndb-storage
%package ndb-storage
Summary: MySQL - ndbcluster storage engine
Summary: MySQL - ndbcluster storage engine
Group: Applications/Databases
Group: Applications/Databases
...
@@ -174,6 +185,7 @@ This package contains some extra ndbcluster storage engine tools for the advance
...
@@ -174,6 +185,7 @@ This package contains some extra ndbcluster storage engine tools for the advance
They should be used with caution.
They should be used with caution.
%
{
see_base
}
%
{
see_base
}
%endif
%package
test
%package
test
Requires: %
{
name
}
-client
perl-DBI perl
Requires: %
{
name
}
-client
perl-DBI perl
...
@@ -322,12 +334,16 @@ CXXFLAGS=`echo "${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno
...
@@ -322,12 +334,16 @@ CXXFLAGS=`echo "${MYSQL_BUILD_CXXFLAGS:-$RPM_OPT_FLAGS -felide-constructors -fno
BuildMySQL
"--enable-shared
\
BuildMySQL
"--enable-shared
\
--with-debug
\
--with-debug
\
--with-innodb
\
--with-innodb
\
%if %{CLUSTER_BUILD}
--with-ndbcluster
\
--with-ndbcluster
\
%endif
--with-archive-storage-engine
\
--with-archive-storage-engine
\
--with-csv-storage-engine
\
--with-csv-storage-engine
\
--with-example-storage-engine
\
--with-example-storage-engine
\
--with-blackhole-storage-engine
\
--with-blackhole-storage-engine
\
%if %{FEDERATED_BUILD}
--with-federated-storage-engine
\
--with-federated-storage-engine
\
%endif
--with-partition
\
--with-partition
\
--with-big-tables
\
--with-big-tables
\
--with-comment=
\"
MySQL Community Server - Debug (GPL)
\"
"
)
--with-comment=
\"
MySQL Community Server - Debug (GPL)
\"
"
)
...
@@ -351,12 +367,16 @@ CFLAGS="${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS} -g" \
...
@@ -351,12 +367,16 @@ CFLAGS="${MYSQL_BUILD_CFLAGS:-$RPM_OPT_FLAGS} -g" \
CXXFLAGS
=
"
${
MYSQL_BUILD_CXXFLAGS
:-
$RPM_OPT_FLAGS
-felide-constructors -fno-exceptions -fno-rtti
}
-g"
\
CXXFLAGS
=
"
${
MYSQL_BUILD_CXXFLAGS
:-
$RPM_OPT_FLAGS
-felide-constructors -fno-exceptions -fno-rtti
}
-g"
\
BuildMySQL
"--enable-shared
\
BuildMySQL
"--enable-shared
\
--with-innodb
\
--with-innodb
\
%if %{CLUSTER_BUILD}
--with-ndbcluster
\
--with-ndbcluster
\
%endif
--with-archive-storage-engine
\
--with-archive-storage-engine
\
--with-csv-storage-engine
\
--with-csv-storage-engine
\
--with-example-storage-engine
\
--with-example-storage-engine
\
--with-blackhole-storage-engine
\
--with-blackhole-storage-engine
\
%if %{FEDERATED_BUILD}
--with-federated-storage-engine
\
--with-federated-storage-engine
\
%endif
--with-partition
\
--with-partition
\
--with-embedded-server
\
--with-embedded-server
\
--with-big-tables
\
--with-big-tables
\
...
@@ -563,12 +583,13 @@ sleep 2
...
@@ -563,12 +583,13 @@ sleep 2
#scheduled service packs and more. Visit www.mysql.com/enterprise for more
#scheduled service packs and more. Visit www.mysql.com/enterprise for more
#information."
#information."
%if %
{
CLUSTER_BUILD
}
%post ndb-storage
%post ndb-storage
mysql_clusterdir
=
/var/lib/mysql-cluster
mysql_clusterdir
=
/var/lib/mysql-cluster
# Create cluster directory if needed
# Create cluster directory if needed
if
test
!
-d
$mysql_clusterdir
;
then
mkdir
-m
755
$mysql_clusterdir
;
fi
if
test
!
-d
$mysql_clusterdir
;
then
mkdir
-m
755
$mysql_clusterdir
;
fi
%endif
%preun server
%preun server
if
test
$1
=
0
if
test
$1
=
0
...
@@ -603,7 +624,9 @@ fi
...
@@ -603,7 +624,9 @@ fi
%doc mysql-release-%
{
mysql_version
}
/COPYING mysql-release-%
{
mysql_version
}
/README
%doc mysql-release-%
{
mysql_version
}
/COPYING mysql-release-%
{
mysql_version
}
/README
%doc mysql-release-%
{
mysql_version
}
/support-files/my-
*
.cnf
%doc mysql-release-%
{
mysql_version
}
/support-files/my-
*
.cnf
%if %
{
CLUSTER_BUILD
}
%doc mysql-release-%
{
mysql_version
}
/support-files/ndb-
*
.ini
%doc mysql-release-%
{
mysql_version
}
/support-files/ndb-
*
.ini
%endif
%doc %attr
(
644, root, root
)
%
{
_infodir
}
/mysql.info
*
%doc %attr
(
644, root, root
)
%
{
_infodir
}
/mysql.info
*
...
@@ -698,6 +721,7 @@ fi
...
@@ -698,6 +721,7 @@ fi
%postun shared
%postun shared
/sbin/ldconfig
/sbin/ldconfig
%if %
{
CLUSTER_BUILD
}
%files ndb-storage
%files ndb-storage
%defattr
(
-,root,root,0755
)
%defattr
(
-,root,root,0755
)
%attr
(
755, root, root
)
%
{
_sbindir
}
/ndbd
%attr
(
755, root, root
)
%
{
_sbindir
}
/ndbd
...
@@ -745,6 +769,7 @@ fi
...
@@ -745,6 +769,7 @@ fi
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/ndb_delete_all.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/ndb_delete_all.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/ndb_drop_index.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/ndb_drop_index.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/ndb_drop_table.1
*
%doc %attr
(
644, root, man
)
%
{
_mandir
}
/man1/ndb_drop_table.1
*
%endif
%files devel
%files devel
%defattr
(
-, root, root, 0755
)
%defattr
(
-, root, root, 0755
)
...
@@ -767,8 +792,10 @@ fi
...
@@ -767,8 +792,10 @@ fi
%
{
_libdir
}
/mysql/libmysqlclient_r.la
%
{
_libdir
}
/mysql/libmysqlclient_r.la
%
{
_libdir
}
/mysql/libmystrings.a
%
{
_libdir
}
/mysql/libmystrings.a
%
{
_libdir
}
/mysql/libmysys.a
%
{
_libdir
}
/mysql/libmysys.a
%if %
{
CLUSTER_BUILD
}
%
{
_libdir
}
/mysql/libndbclient.a
%
{
_libdir
}
/mysql/libndbclient.a
%
{
_libdir
}
/mysql/libndbclient.la
%
{
_libdir
}
/mysql/libndbclient.la
%endif
%
{
_libdir
}
/mysql/libvio.a
%
{
_libdir
}
/mysql/libvio.a
%
{
_libdir
}
/mysql/libz.a
%
{
_libdir
}
/mysql/libz.a
%
{
_libdir
}
/mysql/libz.la
%
{
_libdir
}
/mysql/libz.la
...
@@ -777,7 +804,9 @@ fi
...
@@ -777,7 +804,9 @@ fi
%defattr
(
-, root, root, 0755
)
%defattr
(
-, root, root, 0755
)
# Shared libraries (omit for architectures that don't support them)
# Shared libraries (omit for architectures that don't support them)
%
{
_libdir
}
/libmysql
*
.so
*
%
{
_libdir
}
/libmysql
*
.so
*
%if %
{
CLUSTER_BUILD
}
%
{
_libdir
}
/libndb
*
.so
*
%
{
_libdir
}
/libndb
*
.so
*
%endif
%files
test
%files
test
%defattr
(
-, root, root, 0755
)
%defattr
(
-, root, root, 0755
)
...
@@ -799,6 +828,11 @@ fi
...
@@ -799,6 +828,11 @@ fi
# itself - note that they must be ordered by date (important when
# itself - note that they must be ordered by date (important when
# merging BK trees)
# merging BK trees)
%changelog
%changelog
*
Mon Mar 31 2008 Kent Boortz <kent@mysql.com>
- Made the
"Federated"
storage engine an option
- Made the
"Cluster"
storage engine and sub packages an option
*
Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
*
Wed Mar 19 2008 Joerg Bruehe <joerg@mysql.com>
- Add the man pages
for
"ndbd"
and
"ndb_mgmd"
.
- Add the man pages
for
"ndbd"
and
"ndb_mgmd"
.
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment