I want to create rpm file for binary package already installed in my system.
Usually i using this syntax for my spec files:
Very old PC game.
and then: rpmbuild -bb -v digger.spec
This is good for 5 binary files that includes in this package.
But the problem is if i have more than 200 files and every file have its own permissions.
What i need to write in my spec file?
Example: my package installed in /opt/package
If i try this syntax( %attr(,root,root) /opt/package/*), i get error.
I can write script to make list of files with permissions, but maybe present some better way to do this?
Sorry about my English.