ros2spec
ros2spec is a Python 3 script that generates RPM spec files from ROS packages, then uploads them to an OBS instance. It has been used to port ROS hydro to openSUSE (see https://build.opensuse.org/project/show/home:bduffany:ros-hydro ).
For usage details, run python3 ros2spec.py --help