Is it a package travel if I buy flight and hotel seperately?

No, as a rule it is not.

However, it may be a package if the different elements are purchased from different suppliers, for example if the elements are purchased from a single point of sale or offered/invoiced at a single price or advertised as a package.