Hello!
I want to create rpm file for binary package already installed in my system.
Usually i using this syntax for my spec files:
Quote:
Name: digger
Version: 0.1
Release: 1%{?dist}
Summary: Digger
Group: Games
License: GPL
Requires: SDL
%description
Very old PC game.
%files
%defattr(-,root,root)
%attr(0755,root,root) /usr/bin/digger
%attr(0644,root,root) /usr/share/icons/digger/digger.png
%attr(0644,root,root) /usr/share/icons/digger/large/digger.png
%attr(0644,root,root) /usr/share/icons/digger/mini/digger.png
%attr(0644,root,root) /usr/share/applications/digger.desktop
|
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.