Building the Percona-XtraDB-Cluster-5.5.23-23.5.333.rhel5.src.rpm on “CentOS 5.4” works for me, but results in improperly named RPMs.
rpmbuild --rebuild Percona-XtraDB-Cluster-5.5.23-23.5.333.rhel5.src.rpm …snip…Wrote: /usr/src/redhat/RPMS/i386/Percona-XtraDB-Cluster-server-5.5.23-%{wsrep_version}.1.rhel5.i386.rpmWrote: /usr/src/redhat/RPMS/i386/Percona-XtraDB-Cluster-client-5.5.23-%{wsrep_version}.1.rhel5.i386.rpmWrote: /usr/src/redhat/RPMS/i386/Percona-XtraDB-Cluster-test-5.5.23-%{wsrep_version}.1.rhel5.i386.rpmWrote: /usr/src/redhat/RPMS/i386/Percona-XtraDB-Cluster-devel-5.5.23-%{wsrep_version}.1.rhel5.i386.rpmWrote: /usr/src/redhat/RPMS/i386/Percona-XtraDB-Cluster-shared-5.5.23-%{wsrep_version}.1.rhel5.i386.rpmWrote: /usr/src/redhat/RPMS/i386/Percona-XtraDB-Cluster-debuginfo-5.5.23-%{wsrep_version}.1.rhel5.i386.rpm
Looking at the .spec file we see it’s not defined.
grep wsrep_version percona-xtradb-cluster.spec %define percona_server_version %{wsrep_version}%define release %{release_tag}%{wsrep_version}.%{revision}.%{distribution}
Thanks for putting effort into making these RPM releases! We really appreciate it.
Erik Osterman