- selinux file context no longer needed in post script

- (for ghc-6.12-shared) drop ld.so.conf.d files
--------------------------------------------------------------
This commit is contained in:
Jens Petersen 2009-10-01 08:45:50 +00:00
parent 92df927325
commit e6bc25d894

View File

@ -127,7 +127,7 @@ exit 0
%endif
%if %{without prof}
echo "GhcLibWays=%{?with_shared:dyn}" >> mk/build.mk
echo "GhcLibWays = %{?with_shared:dyn}" >> mk/build.mk
%endif
%if %{with manual}
@ -156,11 +156,6 @@ make DESTDIR=${RPM_BUILD_ROOT} install
make DESTDIR=${RPM_BUILD_ROOT} install-docs
%endif
%if %{with shared}
mkdir -p ${RPM_BUILD_ROOT}/%{_sysconfdir}/ld.so.conf.d
echo %{_libdir}/%{name}-%{version} > ${RPM_BUILD_ROOT}/%{_sysconfdir}/ld.so.conf.d/ghc-%{_arch}.conf
%endif
SRC_TOP=$PWD
rm -f rpm-*.files
( cd $RPM_BUILD_ROOT
@ -200,9 +195,6 @@ rm testghc/*
rm -rf $RPM_BUILD_ROOT
%post
semanage fcontext -a -t unconfined_execmem_exec_t %{_libdir}/ghc-%{version}/ghc >/dev/null 2>&1 || :
restorecon %{_libdir}/ghc-%{version}/ghc
# Alas, GHC, Hugs, and nhc all come with different set of tools in
# addition to a runFOO:
#
@ -265,19 +257,16 @@ fi
%ghost %{_docdir}/%{name}/libraries/minus.gif
%ghost %{_docdir}/%{name}/libraries/plus.gif
%if %{with shared}
%files libs
%defattr(-,root,root,-)
%{_sysconfdir}/ld.so.conf.d/ghc-%{_arch}.conf
%{_libdir}/libHS*-ghc%{version}.so
%endif
%if %{with prof}
%files prof -f rpm-prof.files
%defattr(-,root,root,-)
%endif
%changelog
* Thu Oct 1 2009 Jens Petersen <petersen@redhat.com>
- selinux file context no longer needed in post script
- (for ghc-6.12-shared) drop ld.so.conf.d files
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 6.10.4-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild