revised workaround for %ghost issue

This commit is contained in:
Kaleb S. KEITHLEY 2015-06-23 07:41:40 -04:00
parent 4064a38db7
commit 719bed34fd

View File

@ -165,7 +165,7 @@ Summary: Cluster File System
%if ( 0%{_for_fedora_koji_builds} ) %if ( 0%{_for_fedora_koji_builds} )
Name: glusterfs Name: glusterfs
Version: 3.7.2 Version: 3.7.2
Release: 2%{?prereltag:.%{prereltag}}%{?dist} Release: 3%{?prereltag:.%{prereltag}}%{?dist}
Vendor: Fedora Project Vendor: Fedora Project
%else %else
Name: @PACKAGE_NAME@ Name: @PACKAGE_NAME@
@ -814,6 +814,10 @@ find ./tests ./run-tests.sh -type f | cpio -pd %{buildroot}%{_prefix}/share/glus
install -p -m 0744 -D extras/command-completion/gluster.bash \ install -p -m 0744 -D extras/command-completion/gluster.bash \
%{buildroot}%{_sysconfdir}/bash_completion.d/gluster %{buildroot}%{_sysconfdir}/bash_completion.d/gluster
mv %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.* %{buildroot}%{_libexecdir}/glusterfs/
ln -s %{_libexecdir}/glusterfs/S57glusterfind-delete-post.py %{buildroot}%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py
%clean %clean
rm -rf %{buildroot} rm -rf %{buildroot}
@ -1231,7 +1235,6 @@ fi
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/post
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/pre %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/create/pre
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete
%dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/post
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/hooks/1/delete/pre
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/glustershd
%ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/vols %ghost %dir %attr(0755,-,-) %{_sharedstatedir}/glusterd/vols
@ -1249,13 +1252,15 @@ fi
%{_bindir}/glusterfind %{_bindir}/glusterfind
%{_libexecdir}/glusterfs/peer_add_secret_pub %{_libexecdir}/glusterfs/peer_add_secret_pub
%{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py %{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.py
%exclude %{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyc %{_libexecdir}/glusterfs/S57glusterfind-delete-post.*
%exclude %{_sharedstatedir}/glusterd/hooks/1/delete/post/S57glusterfind-delete-post.pyo
%changelog %changelog
* Tue Jun 23 2015 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.7.2-3
- revised workaround for %%ghost issue
* Mon Jun 22 2015 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.7.2-2 * Mon Jun 22 2015 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.7.2-2
- workaround for %%ghost %{_sharedstatedir}/glusterd/hooks/1/delete/post - workaround for %%ghost %%{_sharedstatedir}/glusterd/hooks/1/delete/post
pending correct fix that also packages the .pyc and .pyo files. pending correct fix that also packages the .pyc and .pyo files.
* Fri Jun 19 2015 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.7.2-1 * Fri Jun 19 2015 Kaleb S. KEITHLEY <kkeithle[at]redhat.com> - 3.7.2-1