This will create an RPM that
%define module_name myui_plugin_example
%define _usr_share_dir /usr/share/myui_plugin_example
%define _var_lib_dir /var/lib/myui_plugin_example
%{_usr_share_dir}/templates/*
%{_usr_share_dir}/static/*
%{_var_lib_dir}/data/*
myui --config_file=myui.conf
If you see an error when installing python-ldap, you'll need to install the openldap-devel package.