I want to find a swap rate, for an IRS where the floating is Libor+x bp where x is a constant. I have a risk free curve which is not the libor curve. I also have the libor rates.
How can I calculate the swap rate and x ?
This is actually no different from pricing a "standard" swap. The par swap rate is the "c" solved from $$ \sum_{i=1}^n c \cdot \delta_i \cdot d(t_i) = \sum_{j=1}^N \Delta_j \cdot (l_j + x) \cdot d(t_j). $$
The left hand side is the present value of the fixed payments, where $n$ is the number of fixed leg payments, $\delta_i$ is the day count fraction for each period, $d(t_i)$ is the discount factor (taken from the risk free discount curve, usually the OIS curve).
The right hand side is the present value of the floating payments. Here $\Delta_j$ is the day count fraction corresponding to each payment period, $l_j$ is the LIBOR forward rate for each period, $x$ is the agreed-upon spread, and $d(t_j)$ is once again the risk-free discount factor.
The risk-free curve not being LIBOR is not an issue. In fact, LIBOR is NOT risk-free and shouldn't be used as the discount curve even for a standard swap.
You can't calculate the term swap rate from that information. The problem is that the swap spread (ie difference between swap rate and government bond yield) has a term structure determined by supply and demand, that cannot be calculated.