User define function in rpm .spec file ?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I found that there are something like user define function in .spec file.
For example the MySQL source rpm, there has

BuildMySQL() {
# The --enable-assembler simply does nothing on systems that does not
# support assembler speedups.
sh -c  "CFLAGS=\"$RPM_OPT_FLAGS\" \
	CXXFLAGS=\"$RPM_OPT_FLAGS\" \
	CPPFLAGS=\"-DBIG_TABLES\" \
	./configure \
 	    $* \
	    --enable-assembler \
	    --enable-local-infile \
            --with-mysqld-user=%{mysqld_user} \
            --with-unix-socket-path=/var/lib/mysql/mysql.sock \
            --prefix=/ \
..........
 }

am i right ?

_______________________________________________
Rpm-list mailing list
Rpm-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/rpm-list

[Index of Archives]     [RPM Ecosystem]     [Linux Kernel]     [Red Hat Install]     [PAM]     [Red Hat Watch]     [Red Hat Development]     [Red Hat]     [Gimp]     [Yosemite News]     [IETF Discussion]

  Powered by Linux