I think I found some way to do this:

Both variables have to be defined as binary > analyze > Fit Y by X >

select the Y and the X variables > In the red triangle choose: two sample test for proportions

and for the one sample proportion: analyze > Distributions > choose the Y binary variable > In the red triangle :choose "test probabilities".

Are there more options to do this?