cost basis for a real estate purchase in regards to capital gains tax

what is tax deductible in a real estate transaction from both a seller's and a buyer's point of views)? Assuming it is not a trustee sale. Brokers' fees? Staging fees? Repair cost of the house right before selling? New landscape?