2010-05-17 09:45:55 -05:00
|
|
|
|
2010-05-17 11:21:50 -05:00
|
|
|
%define coriolisVersion 1.0
|
2010-05-22 04:08:31 -05:00
|
|
|
%define coriolisTop %{_prefix}
|
2010-05-17 11:21:50 -05:00
|
|
|
%define svntag @svntag@
|
|
|
|
|
|
|
|
%define with_binarytar %{?_with_binarytar:1}%{!?_with_binarytar:0}
|
2010-05-21 12:03:22 -05:00
|
|
|
|
2010-05-22 04:08:31 -05:00
|
|
|
%if 0%{?rhel} > 5 || 0%{?fedora} > 10
|
2010-05-21 12:03:22 -05:00
|
|
|
%define qt4 qt
|
2010-05-22 04:08:31 -05:00
|
|
|
%else
|
|
|
|
%define qt4 qt4
|
2010-05-21 12:03:22 -05:00
|
|
|
%endif
|
2010-05-17 11:21:50 -05:00
|
|
|
|
|
|
|
|
|
|
|
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
|
2010-05-22 04:08:31 -05:00
|
|
|
Patch0: coriolis2-for-distribution.patch
|
2010-05-17 11:21:50 -05:00
|
|
|
URL: http://www-asim.lip6.fr/
|
|
|
|
Packager: Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr>
|
|
|
|
Requires(post): ldconfig
|
|
|
|
Requires: boost >= 1.33.1
|
2010-05-21 12:03:22 -05:00
|
|
|
Requires: %{qt4} >= 4.5.0
|
2010-05-17 11:21:50 -05:00
|
|
|
BuildRequires: boost-devel >= 1.33.1
|
2010-05-21 12:03:22 -05:00
|
|
|
BuildRequires: %{qt4}-devel >= 4.5.0
|
2010-05-17 11:21:50 -05:00
|
|
|
BuildRoot: %{_tmppath}/root-%{name}
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
Coriolis is the new CAD tool suite intended to replace the
|
|
|
|
physical backend flow of Alliance.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
2010-05-17 18:11:07 -05:00
|
|
|
Summary: Coriolis 2 VLSI CAD Sytem - Development
|
|
|
|
Group: Applications/Engineering
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2010-05-21 12:03:22 -05:00
|
|
|
Requires: %{qt4}-devel >= 4.5.0
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
Development files for the Coriolis 2 package.
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup
|
2010-05-22 04:08:31 -05:00
|
|
|
%patch0 -p0 -b .soc
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi
|
|
|
|
|
2010-05-22 08:21:24 -05:00
|
|
|
VLSISAPD_TOP=%{coriolisTop}; export VLSISAPD_TOP
|
|
|
|
CORIOLIS_TOP=%{coriolisTop}; export CORIOLIS_TOP
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
# Do build & install in one step.
|
2010-05-18 10:18:56 -05:00
|
|
|
tools="vlsisapd hurricane crlcore knik katabatic kite equinox solstice unicorn"
|
2010-05-17 09:45:55 -05:00
|
|
|
for tool in $tools; do
|
|
|
|
%__mkdir_p build/$tool
|
|
|
|
pushd build/$tool;
|
|
|
|
cmake -D CMAKE_BUILD_TYPE:STRING=RELEASE \
|
|
|
|
-D BUILD_SHARED_LIBS:STRING=ON \
|
|
|
|
-D BUILD_DOC:STRING=OFF \
|
|
|
|
-D CMAKE_INSTALL_PREFIX:STRING=%{coriolisTop} \
|
2010-05-22 10:27:37 -05:00
|
|
|
-D DESTDIR:STRING=%{buildroot} \
|
2010-05-17 18:20:40 -05:00
|
|
|
%ifarch x86_64
|
2010-05-17 18:28:50 -05:00
|
|
|
-D LIB_SUFFIX:STRING=64 \
|
2010-05-17 18:20:40 -05:00
|
|
|
%endif
|
2010-05-17 09:45:55 -05:00
|
|
|
../../$tool
|
2010-05-21 12:03:22 -05:00
|
|
|
makeArgs=""
|
|
|
|
if [ "$tool" = "crlcore" ]; then
|
|
|
|
makeArgs="dvi safepdf"
|
|
|
|
fi
|
|
|
|
make DESTDIR=%{buildroot} %{_smp_mflags} ${makeArgs} install
|
2010-05-17 09:45:55 -05:00
|
|
|
popd
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
|
|
%install
|
|
|
|
# Nothing to do here.
|
|
|
|
# Removing undistributed binaries.
|
|
|
|
%__rm -f %{buildroot}%{coriolisTop}/bin/{cx2y,kite-text}
|
|
|
|
|
2010-05-21 12:03:22 -05:00
|
|
|
# %{__mkdir} -p %{buildroot}%{_sysconfdir}/ld.so.conf.d/
|
|
|
|
# cat > %{buildroot}%{_sysconfdir}/ld.so.conf.d/%{name}.conf << EOF
|
2010-05-17 09:45:55 -05:00
|
|
|
# Coriolis 2 VLSI design system
|
2010-05-21 12:03:22 -05:00
|
|
|
#%{coriolisTop}/%{_lib}
|
|
|
|
#%{coriolisTop}/%{_lib}/python
|
|
|
|
#EOF
|
|
|
|
|
|
|
|
#%if %{with_binarytar}
|
|
|
|
# cd %{buildroot}%{coriolisTop}
|
|
|
|
# tar --exclude "*/cmake_modules*" \
|
|
|
|
# -jcf %{_sourcedir}/%{name}-binary-%{version}-%{release}.%{_arch}.tar.bz2 \
|
|
|
|
# bin %{_lib} share
|
|
|
|
#%endif
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%clean
|
|
|
|
if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi
|
|
|
|
|
|
|
|
|
2010-05-17 11:20:07 -05:00
|
|
|
%post -p /sbin/ldconfig
|
|
|
|
%postun -p /sbin/ldconfig
|
|
|
|
|
|
|
|
|
2010-05-17 09:45:55 -05:00
|
|
|
%files
|
|
|
|
%defattr(-,root,root,-)
|
2010-05-22 10:27:37 -05:00
|
|
|
%doc %{_docdir}/coriolis2/README.*
|
2010-05-21 12:03:22 -05:00
|
|
|
%dir %{_sysconfdir}/coriolis2
|
2010-05-18 08:00:48 -05:00
|
|
|
%dir %{coriolisTop}/share/coriolis2/flute-2.4
|
2010-05-17 09:45:55 -05:00
|
|
|
%dir %{coriolisTop}/bin
|
2010-05-17 18:11:07 -05:00
|
|
|
%dir %{coriolisTop}/%{_lib}
|
|
|
|
%dir %{coriolisTop}/%{_lib}/python
|
2010-05-17 09:45:55 -05:00
|
|
|
%{coriolisTop}/bin/*
|
2010-05-17 18:11:07 -05:00
|
|
|
%{coriolisTop}/%{_lib}/*.so
|
|
|
|
%{coriolisTop}/%{_lib}/python/*.so
|
2010-05-21 12:03:22 -05:00
|
|
|
#%config(noreplace) %{_sysconfdir}/ld.so.conf.d/*
|
|
|
|
%config(noreplace) %{_sysconfdir}/coriolis2/*.xml
|
2010-05-18 08:00:48 -05:00
|
|
|
%config(noreplace) %{coriolisTop}/share/coriolis2/flute-2.4/*.dat
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2010-05-18 08:00:48 -05:00
|
|
|
%dir %{coriolisTop}/share/cmake/Modules
|
2010-05-17 09:45:55 -05:00
|
|
|
%dir %{coriolisTop}/include
|
2010-05-18 10:18:56 -05:00
|
|
|
%dir %{coriolisTop}/include/vlsisapd
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/agds
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/cif
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/dtr
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/openChams
|
2010-05-18 08:00:48 -05:00
|
|
|
%dir %{coriolisTop}/include/coriolis2/hurricane
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/hurricane/viewer
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/hurricane/isobar
|
|
|
|
%dir %{coriolisTop}/include/coriolis2
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/crlcore
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/knik
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/katabatic
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/kite
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/equinox
|
|
|
|
%dir %{coriolisTop}/include/coriolis2/solstice
|
|
|
|
%{coriolisTop}/share/cmake/Modules/*.cmake
|
2010-05-18 10:18:56 -05:00
|
|
|
%{coriolisTop}/include/vlsisapd/agds/*.h
|
|
|
|
%{coriolisTop}/include/vlsisapd/cif/*.h
|
|
|
|
%{coriolisTop}/include/vlsisapd/dtr/*.h
|
|
|
|
%{coriolisTop}/include/vlsisapd/openChams/*.h
|
2010-05-18 08:00:48 -05:00
|
|
|
%{coriolisTop}/include/coriolis2/hurricane/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/hurricane/viewer/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/hurricane/isobar/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/crlcore/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/knik/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/katabatic/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/kite/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/equinox/*.h
|
|
|
|
%{coriolisTop}/include/coriolis2/solstice/*.h
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
* Sun May 16 2010 Jean-Paul.Chaput <Jean-Paul.Chaput@lip6.fr>
|
|
|
|
- Initial packaging for svn release 1322 (alpha stage).
|