...not completely. There's already a load of TSM packages installed that own leading directories in /opt/tivoli/tsm/client. Furthermore there's multiple plugins (Vcloud, NetApp) that use /opt/tivoli/tsm/client/ba/bin/plugins or subdirs. So you can not have any of your own .spec or RPM files own "/opt/tivoli/tsm/client/ba/bin/plugins" in your %dir list. If you build a package per plugin then I'd think something like:
Code:
%define _datadir /opt/tivoli/tsm/client/ba/bin/plugins
%files
%{_datadir}/*
should work as it only includes the file and not the leading directories. If that doesn't work you'll have to post your complete .spec file.