https://bugzilla.redhat.com/show_bug.cgi?id=2097925
--- Comment #5 from Ding-Yi Chen dchen@redhat.com ---
(In reply to Andreas Schneider from comment #3)
It should be two lines:
install -d -m 0755 path/to/dir
install -m 0644 source dest install -m 0644 source dest
This way you set correct permissions to the directory and also files.
Um, currently it looks like ~~~ for SELINUXVARIANT in %{selinux_variants}; do install -d %{buildroot}%{_datadir}/selinux/${SELINUXVARIANT} install -p -m 644 selinux/%{name}-${SELINUXVARIANT}.pp \ %{buildroot}%{_datadir}/selinux/${SELINUXVARIANT}/%{name}.pp
echo %{_datadir}/selinux/${SELINUXVARIANT}/%{name}.pp >> \ selinux-files.txt done
# Rename configuration files. mv %{buildroot}%{_sysconfdir}/%{name}/cepces.conf{.dist,} mv %{buildroot}%{_sysconfdir}/%{name}/logging.conf{.dist,} ~~~
Should I change it to: ~~~ for SELINUXVARIANT in %{selinux_variants}; do install -d -m 0755 %{buildroot}%{_datadir}/selinux/${SELINUXVARIANT} install -m 644 selinux/%{name}-${SELINUXVARIANT}.pp \ %{buildroot}%{_datadir}/selinux/${SELINUXVARIANT}/%{name}.pp
echo %{_datadir}/selinux/${SELINUXVARIANT}/%{name}.pp >> \ selinux-files.txt done
# Rename configuration files. install -d -m 0755 %{buildroot}%{_sysconfdir}/%{name}/ install -m 644 %{buildroot}%{_sysconfdir}/%{name}/cepces.conf{.dist,} rm -f %{buildroot}%{_sysconfdir}/%{name}/cepces.conf.dist install -m 644 %{buildroot}%{_sysconfdir}/%{name}/logging.conf{.dist,} rm -f %{buildroot}%{_sysconfdir}/%{name}/logging.conf.dist ~~~
Or you mean I should rename *.conf.dist to *.conf; change setup.py to use *.conf instead of *.conf.dist and we don't need to rename them in installation stage?