* ./goodies:

- Change: In coriolis2.spec.in, now do a install "in system", that is
        under /usr witch configuration in /etc.
This commit is contained in:
Jean-Paul Chaput 2010-05-21 17:03:22 +00:00
parent 54b3b6fc1f
commit c70b261d74
1 changed files with 29 additions and 18 deletions

View File

@ -5,6 +5,12 @@
%define with_binarytar %{?_with_binarytar:1}%{!?_with_binarytar:0} %define with_binarytar %{?_with_binarytar:1}%{!?_with_binarytar:0}
%if %{!?rhel:0} && (%{rhel} < 6)
%define qt4 qt4
%else
%define qt4 qt
%endif
Name: coriolis2 Name: coriolis2
Summary: Coriolis 2 VLSI CAD Sytem Summary: Coriolis 2 VLSI CAD Sytem
@ -17,9 +23,9 @@ URL: http://www-asim.lip6.fr/
Packager: Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr> Packager: Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr>
Requires(post): ldconfig Requires(post): ldconfig
Requires: boost >= 1.33.1 Requires: boost >= 1.33.1
Requires: qt4 >= 4.5.0 Requires: %{qt4} >= 4.5.0
BuildRequires: boost-devel >= 1.33.1 BuildRequires: boost-devel >= 1.33.1
BuildRequires: qt4-devel >= 4.5.0 BuildRequires: %{qt4}-devel >= 4.5.0
BuildRoot: %{_tmppath}/root-%{name} BuildRoot: %{_tmppath}/root-%{name}
@ -32,7 +38,7 @@ physical backend flow of Alliance.
Summary: Coriolis 2 VLSI CAD Sytem - Development Summary: Coriolis 2 VLSI CAD Sytem - Development
Group: Applications/Engineering Group: Applications/Engineering
Requires: %{name} = %{version}-%{release} Requires: %{name} = %{version}-%{release}
Requires: qt4-devel >= 4.5.0 Requires: %{qt4}-devel >= 4.5.0
%description devel %description devel
@ -62,7 +68,11 @@ Development files for the Coriolis 2 package.
-D LIB_SUFFIX:STRING=64 \ -D LIB_SUFFIX:STRING=64 \
%endif %endif
../../$tool ../../$tool
make DESTDIR=%{buildroot} %{_smp_mflags} install makeArgs=""
if [ "$tool" = "crlcore" ]; then
makeArgs="dvi safepdf"
fi
make DESTDIR=%{buildroot} %{_smp_mflags} ${makeArgs} install
popd popd
done done
@ -72,19 +82,19 @@ Development files for the Coriolis 2 package.
# Removing undistributed binaries. # Removing undistributed binaries.
%__rm -f %{buildroot}%{coriolisTop}/bin/{cx2y,kite-text} %__rm -f %{buildroot}%{coriolisTop}/bin/{cx2y,kite-text}
%{__mkdir} -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/ # %{__mkdir} -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/
cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf << EOF # cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf << EOF
# Coriolis 2 VLSI design system # Coriolis 2 VLSI design system
%{coriolisTop}/%{_lib} #%{coriolisTop}/%{_lib}
%{coriolisTop}/%{_lib}/python #%{coriolisTop}/%{_lib}/python
EOF #EOF
%if %{with_binarytar} #%if %{with_binarytar}
cd %{buildroot}%{coriolisTop} # cd %{buildroot}%{coriolisTop}
tar --exclude "*/cmake_modules*" \ # tar --exclude "*/cmake_modules*" \
-jcf %{_sourcedir}/%{name}-binary-%{version}-%{release}.%{_arch}.tar.bz2 \ # -jcf %{_sourcedir}/%{name}-binary-%{version}-%{release}.%{_arch}.tar.bz2 \
bin %{_lib} share # bin %{_lib} share
%endif #%endif
%clean %clean
@ -97,7 +107,8 @@ EOF
%files %files
%defattr(-,root,root,-) %defattr(-,root,root,-)
%dir %{coriolisTop}/etc/coriolis2 %docdir %{_docdir}/coriolis2/
%dir %{_sysconfdir}/coriolis2
%dir %{coriolisTop}/share/coriolis2/flute-2.4 %dir %{coriolisTop}/share/coriolis2/flute-2.4
%dir %{coriolisTop}/bin %dir %{coriolisTop}/bin
%dir %{coriolisTop}/%{_lib} %dir %{coriolisTop}/%{_lib}
@ -105,8 +116,8 @@ EOF
%{coriolisTop}/bin/* %{coriolisTop}/bin/*
%{coriolisTop}/%{_lib}/*.so %{coriolisTop}/%{_lib}/*.so
%{coriolisTop}/%{_lib}/python/*.so %{coriolisTop}/%{_lib}/python/*.so
%config(noreplace) %{_sysconfdir}/ld.so.conf.d/* #%config(noreplace) %{_sysconfdir}/ld.so.conf.d/*
%config(noreplace) %{coriolisTop}/etc/coriolis2/*.xml %config(noreplace) %{_sysconfdir}/coriolis2/*.xml
%config(noreplace) %{coriolisTop}/share/coriolis2/flute-2.4/*.dat %config(noreplace) %{coriolisTop}/share/coriolis2/flute-2.4/*.dat