- ghost package.conf.old (Gérard Milmeister)

- set unconfined_execmem_exec_t context on executables with ghc rts
    (#195821)
epel9
Jens Petersen 19 years ago
parent e54329f9b7
commit 889645708c

@ -6,7 +6,7 @@
Name: ghc Name: ghc
Version: 6.4.2 Version: 6.4.2
Release: 2%{?dist} Release: 3%{?dist}
Summary: Glasgow Haskell Compilation system Summary: Glasgow Haskell Compilation system
License: BSD style License: BSD style
Group: Development/Languages Group: Development/Languages
@ -117,9 +117,14 @@ cat rpm-dir.files rpm-lib.files > rpm-base-filelist
cat rpm-dir.files rpm-prof.files > rpm-prof-filelist cat rpm-dir.files rpm-prof.files > rpm-prof-filelist
%endif %endif
# create package.conf.old
touch $RPM_BUILD_ROOT%{_libdir}/ghc-%{version}/package.conf.old
%clean %clean
rm -rf $RPM_BUILD_ROOT rm -rf $RPM_BUILD_ROOT
%post %post
## tweak prefix in drivers scripts if relocating ## tweak prefix in drivers scripts if relocating
if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then
@ -127,6 +132,9 @@ if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then
sed -i "s|%{_prefix}|${RPM_INSTALL_PREFIX}|" ${BINDIR}/{ghcprof,hsc2hs} sed -i "s|%{_prefix}|${RPM_INSTALL_PREFIX}|" ${BINDIR}/{ghcprof,hsc2hs}
fi fi
/usr/bin/chcon -t unconfined_execmem_exec_t %{_bindir}/{hasktags,runghc,runhaskell} >/dev/null 2>&1 || :
%post -n %{ghcver} %post -n %{ghcver}
## tweak prefix in drivers scripts if relocating ## tweak prefix in drivers scripts if relocating
if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then
@ -135,29 +143,41 @@ if [ "${RPM_INSTALL_PREFIX}" != "%{_prefix}" ]; then
sed -i "s|%{_prefix}|${RPM_INSTALL_PREFIX}|" ${BINDIR}/ghc*-%{version} ${LIBDIR}/ghc-%{version}/package.conf sed -i "s|%{_prefix}|${RPM_INSTALL_PREFIX}|" ${BINDIR}/ghc*-%{version} ${LIBDIR}/ghc-%{version}/package.conf
fi fi
/usr/bin/chcon -t unconfined_execmem_exec_t %{_libdir}/ghc-%{version}/{ghc-%{version},ghc-pkg.bin,hsc2hs-bin} >/dev/null 2>&1 || :
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_bindir}/* %{_bindir}/*
%exclude %{_bindir}/ghc*%{version} %exclude %{_bindir}/ghc*%{version}
%files -n %{ghcver} -f rpm-base-filelist %files -n %{ghcver} -f rpm-base-filelist
%defattr(-,root,root,-) %defattr(-,root,root,-)
%doc ghc/ANNOUNCE ghc/LICENSE ghc/README %doc ghc/ANNOUNCE ghc/LICENSE ghc/README
%{_bindir}/ghc*%{version} %{_bindir}/ghc*%{version}
%config(noreplace) %{_libdir}/ghc-%{version}/package.conf %config(noreplace) %{_libdir}/ghc-%{version}/package.conf
%ghost %{_libdir}/ghc-%{version}/package.conf.old
%if %{build_prof} %if %{build_prof}
%files -n %{ghcver}-prof -f rpm-prof-filelist %files -n %{ghcver}-prof -f rpm-prof-filelist
%defattr(-,root,root,-) %defattr(-,root,root,-)
%endif %endif
%if %{build_doc} %if %{build_doc}
%files doc %files doc
%defattr(-,root,root,-) %defattr(-,root,root,-)
%{_docdir}/%{name}-%{version} %{_docdir}/%{name}-%{version}
%endif %endif
%changelog %changelog
* Mon Sep 25 2006 Jens Petersen <petersen@redhat.com> - 6.4.2-3.fc6
- ghost package.conf.old (Gérard Milmeister)
- set unconfined_execmem_exec_t context on executables with ghc rts (#195821)
* Sat Apr 29 2006 Jens Petersen <petersen@redhat.com> - 6.4.2-2.fc6 * Sat Apr 29 2006 Jens Petersen <petersen@redhat.com> - 6.4.2-2.fc6
- buildrequire libXt-devel so that the X11 package and deps get built - buildrequire libXt-devel so that the X11 package and deps get built
(Garrett Mitchener, #190201) (Garrett Mitchener, #190201)

Loading…
Cancel
Save