%attr in rpm.spec does not take env variable's value
问题 I have a rpm.spec file in which i have to give file permissions for a file. I want %attr to take $user and $group values during the rpm installation.(where i will be doing "export user=" and "export group=") but it does not take these values,instead gives a syntax error while installing the rpm. I have something like this in my specfile %pre %files %defattr(-,root,root,-) <some_path> %config /etc/akshatha %doc /usr/share/doc/akshatha %attr(0700,$user,$group) %dir directory_path %attr(0700,