If I have a point in spherical coordinates, and I rotate it around one of the Cartesian axes, what will be the new spherical coordinates for the point? Both spherical and Cartesian coordinate systems have the same origin. Rotation axes go through origin as in the image below.

I'm building a mechanical device that has a camera rotating around object, and camera's relative coordinates should remain same while object rotates. I've read Wikipedia pages about transformation matrices etc, but those goes way over my head.

Denote rotation matrix about an axis $\omega$ and rotation angle $\theta$ by $R_\omega(\theta)$. Then the Cartesian coordinate of a point can be represented by spherical coordinates in the following way: $$ \left[\begin{array}{c} x\\ y\\ z \end{array}\right]=R_z(\theta)\cdot R_y(\varphi)\cdot rz,\quad z=\left[\begin{array}{c} 0\\ 0\\ 1 \end{array}\right] $$ Then rotate the point $p=(x,y,z)$ about the three coordinate axes is given by (note that $R_z(\sigma)\cdot z=z, \forall \sigma\in\mathbb R$): $$ \begin{split} R_x(\alpha)\cdot R_z(\theta)\cdot R_y(\varphi)\cdot rz&=R_z(\theta')\cdot R_y(\varphi')\cdot rz\\ (&=R_z(\theta')\cdot R_y(\varphi')\cdot R_z(\sigma')\cdot rz) \end{split} $$ $$ \begin{split} R_y(\beta)\cdot R_z(\theta)\cdot R_y(\varphi)\cdot rz&=R_z(\theta'')\cdot R_y(\varphi'')\cdot rz\\ (&=R_z(\theta'')\cdot R_y(\varphi'')\cdot R_z(\sigma'')\cdot rz) \end{split} $$ and $$ R_z(\gamma)\cdot R_z(\theta)\cdot R_y(\varphi)\cdot rz=R_z(\theta+\gamma)\cdot R_y(\varphi)\cdot rz $$ This way, you see that for rotation about $z$, the result is immediate, and for rotation about $x$, this is the problem of transform between $YZX$ and $ZYZ$ Euler angles, and for $y$ it is between $YZY$ and $ZYZ$ Euler angles. There are ready-to-use routines for solving this problem (it might help to use quaternions to deal with the consecutive rotation if you intend to write the code yourself).