Sorry if anything I say is a bit stupid or out of context, I'm really new to Open Source licensing, so please don't be too mean ;)
I have wrote a software framework which I want to distribute as open source but restricting it's commercial use a bit.
First restriction is, if you're an individual developer or the usage is for an open source project use is completely free, but if usage is by a company with more than one programer then it must be licensed.
Second, anyone can modify the source code, but the modified code cannot be redistributed unless it will be upstreamed to the main project or used in an open source project.
Third, derived software cannot be another framework for the same usage (basically, you can't create a framework for the same usage, not sure if this really makes any sense, what I don't want is someone to grab our code, modify it and then redistribute it as another product).
And now, the real question, is there any license which will fit these restrictions?
I have read some licenses (MIT, Apache, GLP, LGPL and so on), but on some parts I just got lost so I'm not really sure if there's any existing license which matches these requirements.
If there is no license which matches these requirements, how should I write a license like this? or is there any place which helps to create a custom license?