From 8bac5355dafa445fa99c7198cfe7beb943627364 Mon Sep 17 00:00:00 2001 From: Jean-Paul Chaput Date: Mon, 17 May 2010 16:20:07 +0000 Subject: [PATCH] Adding Requires and call to ldconfig in post stage. --- bootstrap/coriolis2.spec.in | 37 ++++++++++++++++++++++--------------- 1 file changed, 22 insertions(+), 15 deletions(-) diff --git a/bootstrap/coriolis2.spec.in b/bootstrap/coriolis2.spec.in index c8c03515..fe9f4e93 100644 --- a/bootstrap/coriolis2.spec.in +++ b/bootstrap/coriolis2.spec.in @@ -1,21 +1,24 @@ -%define coriolisVersion 1.0 -%define coriolisTop @coriolisTop@ -%define svntag @svntag@ - -%define with_binarytar %{?_with_binarytar:1}%{!?_with_binarytar:0} +%define coriolisVersion 1.0 +%define coriolisTop @coriolisTop@ +%define svntag @svntag@ + +%define with_binarytar %{?_with_binarytar:1}%{!?_with_binarytar:0} -Name: coriolis2 -Summary: Coriolis 2 VLSI CAD Sytem -Version: %{coriolisVersion}.%{svntag} -Release: 1%{dist} -License: LGPL/GPL -Group: Applications/Engineering -Source: %{name}-%{version}.tar.bz2 -URL: http://www-asim.lip6.fr/ -Packager: Jean-Paul Chaput -BuildRoot: %{_tmppath}/root-%{name} +Name: coriolis2 +Summary: Coriolis 2 VLSI CAD Sytem +Version: %{coriolisVersion}.%{svntag} +Release: 1%{dist} +License: LGPL/GPL +Group: Applications/Engineering +Source: %{name}-%{version}.tar.bz2 +URL: http://www-asim.lip6.fr/ +Packager: Jean-Paul Chaput +Require(post): ldconfig +Require: boost >= 1.33.1 +BuildRequire: boost-devel >= 1.33.1 +BuildRoot: %{_tmppath}/root-%{name} %description @@ -82,6 +85,10 @@ EOF if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi +%post -p /sbin/ldconfig +%postun -p /sbin/ldconfig + + %files %defattr(-,root,root,-) %dir %{coriolisTop}/share/etc