~percona-dev/percona-server/release-5.1.57-12.8-commit108486

« back to all changes in this revision

Viewing changes to build/percona-server.spec

  • Committer: Aleksandr Kuzminsky
  • Date: 2010-12-20 21:54:44 UTC
  • mfrom: (174.1.15 release-5.1.53-12-udf)
  • mto: This revision was merged to the branch mainline in revision 177.
  • Revision ID: aleksandr.kuzminsky@percona.com-20101220215444-ivzb0ghuf3137j26
Maatkit UDF functions are added to a distribution
Version is set to 5.1.54-12.5

Show diffs side-by-side

added added

removed removed

Lines of Context:
14
14
%define mysql_vendor  Percona, Inc
15
15
%define redhatversion %(lsb_release -rs | awk -F. '{ print $1}')
16
16
%define community 1
17
 
%define mysqlversion 5.1.52
 
17
%define mysqlversion 5.1.54
18
18
%define majorversion 12
19
 
%define minorversion 3
 
19
%define minorversion 5
20
20
%define distribution  rhel%{redhatversion}
21
21
%define release       rel%{majorversion}.%{minorversion}.%{gotrevision}.%{distribution}
22
22
 
321
321
        --libdir=%{_libdir} \
322
322
        --prefix=%{_prefix}
323
323
make
 
324
cd -
 
325
}
 
326
 
 
327
BuildUDF() {
 
328
cd UDF
 
329
CXX=g++ ./configure --includedir=$RPM_BUILD_DIR/%{src_dir}/include --libdir=%{_libdir}/mysql/plugin
 
330
make all
 
331
cd -
324
332
}
325
333
# end of function definition "BuildHandlerSocket"
326
334
 
411
419
 
412
420
BuildServer
413
421
BuildHandlerSocket
 
422
BuildUDF
414
423
if [ "$MYSQL_RPMBUILD_TEST" != "no" ] ; then
415
424
        MTR_BUILD_THREAD=auto make %{NORMAL_TEST_MODE}
416
425
fi
443
452
make DESTDIR=$RBR benchdir_root=%{_datadir} install
444
453
cd storage/HandlerSocket-Plugin-for-MySQL
445
454
make DESTDIR=$RBR benchdir_root=%{_datadir} install
 
455
cd -
 
456
cd UDF
 
457
make DESTDIR=$RBR benchdir_root=%{_datadir} install
 
458
cd -
446
459
 
447
460
# install symbol files ( for stack trace resolution)
448
461
#install -m644 $MBD/sql/mysqld.sym $RBR%{_libdir}/mysql/mysqld.sym
470
483
install -m600 $MBD/support-files/RHEL4-SElinux/mysql.{fc,te} \
471
484
        $RBR%{_datadir}/mysql/SELinux/RHEL4
472
485
 
473
 
 
474
486
##############################################################################
475
487
#  Post processing actions, i.e. when installed
476
488
##############################################################################
646
658
        sleep 2
647
659
fi
648
660
 
 
661
echo "Percona Server is distributed with several useful UDF (User Defined Function) from Maatkit"
 
662
echo "Run following command to create these functions:"
 
663
echo "mysql -e \"CREATE FUNCTION fnv1a_64 RETURNS INTEGER SONAME 'libfnv1a_udf.so'\""
 
664
echo "mysql -e \"CREATE FUNCTION fnv_64 RETURNS INTEGER SONAME 'libfnv_udf.so'\""
 
665
echo "mysql -e \"CREATE FUNCTION murmur_hash RETURNS INTEGER SONAME 'libmurmur_udf.so'\""
 
666
echo "See http://code.google.com/p/maatkit/source/browse/trunk/udf for more details"
 
667
 
649
668
# Allow mysqld_safe to start mysqld and print a message before we exit
650
669
sleep 2
651
670
 
681
700
%doc support-files/my-*.cnf
682
701
 
683
702
%doc %attr(644, root, root) %{_infodir}/mysql.info*
684
 
 
685
703
%doc %attr(644, root, man) %{_mandir}/man1/innochecksum.1*
686
704
%doc %attr(644, root, man) %{_mandir}/man1/my_print_defaults.1*
687
705
%doc %attr(644, root, man) %{_mandir}/man1/myisam_ftdump.1*
827
845
%defattr(-, root, root, 0755)
828
846
# Shared libraries (omit for architectures that don't support them)
829
847
%{_libdir}/*.so*
 
848
# Maatkit UDF libs
 
849
%{_libdir}/mysql/plugin/libfnv1a_udf.a
 
850
%{_libdir}/mysql/plugin/libfnv1a_udf.la
 
851
%{_libdir}/mysql/plugin/libfnv_udf.a
 
852
%{_libdir}/mysql/plugin/libfnv_udf.la
 
853
%{_libdir}/mysql/plugin/libmurmur_udf.a
 
854
%{_libdir}/mysql/plugin/libmurmur_udf.la
 
855
 
830
856
%{_libdir}/mysql/*.so*
831
857
 
832
858