2010-05-17 09:45:55 -05:00
|
|
|
|
2015-04-08 10:45:45 -05:00
|
|
|
%{?scl:%{?scl_package:%scl_package coriolis2}}
|
|
|
|
|
2015-04-07 17:13:27 -05:00
|
|
|
%define coriolisVersion 2.1
|
2010-05-22 04:08:31 -05:00
|
|
|
%define coriolisTop %{_prefix}
|
2015-04-07 17:13:27 -05:00
|
|
|
%define githash @githash@
|
|
|
|
%define revdate @revdate@
|
2010-05-17 11:21:50 -05:00
|
|
|
|
2015-04-08 10:45:45 -05:00
|
|
|
%define with_binarytar %{?_with_binarytar:1}%{!?_with_binarytar:0}
|
2010-05-22 18:18:32 -05:00
|
|
|
%define python_sitedir %{_lib}/%(python -c '
|
2010-05-22 17:24:55 -05:00
|
|
|
import os.path
|
|
|
|
import distutils.sysconfig
|
|
|
|
|
2015-04-08 10:45:45 -05:00
|
|
|
pathes = distutils.sysconfig.get_python_lib(1).split("/")
|
2010-05-22 17:24:55 -05:00
|
|
|
print os.path.join ( pathes[-2], pathes[-1] )
|
2010-05-22 17:54:33 -05:00
|
|
|
')
|
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
|
|
|
|
|
|
|
|
2015-04-08 10:45:45 -05:00
|
|
|
Name: %{?scl_prefix}coriolis2
|
2015-04-01 05:05:48 -05:00
|
|
|
Summary: Coriolis 2 VLSI CAD System
|
2015-04-07 17:13:27 -05:00
|
|
|
Version: %{coriolisVersion}
|
2015-04-07 17:33:26 -05:00
|
|
|
Release: 1.%{revdate}git%{githash}%{dist}
|
2011-02-03 04:34:43 -06:00
|
|
|
License: BSD/LGPL/GPL/FLUTE
|
2010-05-17 11:21:50 -05:00
|
|
|
Group: Applications/Engineering
|
2015-04-08 10:45:45 -05:00
|
|
|
Source: %{pkg_name}-%{version}.%{revdate}git%{githash}.tar.bz2
|
2015-04-07 17:33:26 -05:00
|
|
|
URL: http://www-soc.lip6.fr/
|
2010-05-17 11:21:50 -05:00
|
|
|
Packager: Jean-Paul Chaput <Jean-Paul.Chaput@lip6.fr>
|
2015-04-08 10:45:45 -05:00
|
|
|
|
|
|
|
%{!?scl:%define pkg_name %{name}}
|
|
|
|
%{?scl:Requires:%scl_runtime}
|
2010-05-17 11:21:50 -05:00
|
|
|
Requires(post): ldconfig
|
2015-04-08 10:45:45 -05:00
|
|
|
Requires: %{?scl_prefix}boost >= 1.53.0
|
2010-05-21 12:03:22 -05:00
|
|
|
Requires: %{qt4} >= 4.5.0
|
2015-04-08 10:45:45 -05:00
|
|
|
BuildRequires: %{?scl_prefix}boost-devel >= 1.53.0
|
2010-05-21 12:03:22 -05:00
|
|
|
BuildRequires: %{qt4}-devel >= 4.5.0
|
2015-04-08 10:45:45 -05:00
|
|
|
BuildRoot: %{_tmppath}/root-%{pkg_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.
|
|
|
|
|
2010-05-27 06:54:24 -05:00
|
|
|
The Knik global router makes use of FLUTE, which is redistributed
|
|
|
|
under is own license. FLUTE is copyrighted by Dr. Chris C. N. Chu
|
|
|
|
from the Iowa State University <http://home.eng.iastate.edu/~cnchu>.
|
|
|
|
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
%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
|
2015-04-08 10:45:45 -05:00
|
|
|
%setup -n %{pkg_name}-%{version}.%{revdate}git%{githash}
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
if [ -d %{buildroot} ]; then rm -r %{buildroot}; fi
|
|
|
|
|
2015-04-07 17:33:26 -05:00
|
|
|
IMPORTEDS_TOP=%{coriolisTop}; export IMPORTEDS_TOP
|
|
|
|
CORIOLIS_TOP=%{coriolisTop}; export CORIOLIS_TOP
|
2015-04-08 10:45:45 -05:00
|
|
|
SMP_MFLAGS=%{_smp_mflags}; export SMP_MFLAGS
|
2010-05-17 09:45:55 -05:00
|
|
|
|
2010-05-26 02:30:53 -05:00
|
|
|
# Do build & install in one step, except for documentation.
|
2015-04-07 17:33:26 -05:00
|
|
|
make -f coriolis/bootstrap/Makefile.package \
|
2015-04-08 10:45:45 -05:00
|
|
|
prefix=%{coriolisTop} \
|
2015-04-07 17:13:27 -05:00
|
|
|
DESTDIR=%{buildroot} \
|
|
|
|
BUILD_DESTDIR=%{_builddir}/%{buildsubdir}/install.dir \
|
2015-04-08 10:45:45 -05:00
|
|
|
build
|
2010-05-26 02:30:53 -05:00
|
|
|
|
2010-05-28 05:59:59 -05:00
|
|
|
|
|
|
|
%install
|
2015-04-07 17:33:26 -05:00
|
|
|
IMPORTEDS_TOP=%{coriolisTop}; export IMPORTEDS_TOP
|
|
|
|
CORIOLIS_TOP=%{coriolisTop}; export CORIOLIS_TOP
|
2010-05-28 05:59:59 -05:00
|
|
|
|
|
|
|
# Install & build documentation, in -j1.
|
2015-04-07 17:33:26 -05:00
|
|
|
make -f coriolis/bootstrap/Makefile.package \
|
2015-04-08 10:45:45 -05:00
|
|
|
prefix=%{coriolisTop} \
|
2015-04-07 17:33:26 -05:00
|
|
|
DESTDIR=%{buildroot} \
|
2015-04-07 17:13:27 -05:00
|
|
|
BUILD_DESTDIR=%{_builddir}/%{buildsubdir}/install.dir \
|
2015-04-08 10:45:45 -05:00
|
|
|
install
|
2010-05-17 09:45:55 -05:00
|
|
|
|
2011-02-03 04:34:43 -06:00
|
|
|
# Copy the license from the Debian package directory.
|
2015-04-07 17:33:26 -05:00
|
|
|
cp coriolis/bootstrap/debian/copyright %{buildroot}%{_datadir}/doc/coriolis2/COPYRIGHT
|
2011-02-03 04:34:43 -06:00
|
|
|
|
2015-04-08 10:45:45 -05:00
|
|
|
%if %{with_binarytar}
|
|
|
|
cd %{buildroot}%{coriolisTop}
|
|
|
|
tar -jcf %{_sourcedir}/%{name}-%{version}-%{release}.bin-%{_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,-)
|
2011-02-02 14:07:51 -06:00
|
|
|
%doc %{_datadir}/doc/coriolis2
|
2010-05-21 12:03:22 -05:00
|
|
|
%dir %{_sysconfdir}/coriolis2
|
2015-04-06 05:49:27 -05:00
|
|
|
%dir %{coriolisTop}/share/coriolis2/flute-3.1
|
2010-05-17 09:45:55 -05:00
|
|
|
%dir %{coriolisTop}/bin
|
2010-05-17 18:11:07 -05:00
|
|
|
%dir %{coriolisTop}/%{_lib}
|
2010-05-22 17:24:55 -05:00
|
|
|
%dir %{coriolisTop}/%{python_sitedir}
|
2012-12-03 09:49:21 -06:00
|
|
|
%dir %{coriolisTop}/%{python_sitedir}/crlcore
|
2022-12-01 19:17:50 -06:00
|
|
|
%dir %{coriolisTop}/%{python_sitedir}/helpers
|
2011-02-02 04:40:25 -06:00
|
|
|
%dir %{coriolisTop}/%{python_sitedir}/cumulus
|
|
|
|
%dir %{coriolisTop}/%{python_sitedir}/stratus
|
2010-05-17 09:45:55 -05:00
|
|
|
%{coriolisTop}/bin/*
|
2011-02-04 05:32:30 -06:00
|
|
|
%{coriolisTop}/%{_lib}/*.so.*
|
2010-05-22 17:24:55 -05:00
|
|
|
%{coriolisTop}/%{python_sitedir}/*.so
|
2011-02-02 10:15:33 -06:00
|
|
|
%{coriolisTop}/%{python_sitedir}/cumulus/*.py*
|
2015-04-07 17:33:26 -05:00
|
|
|
%{coriolisTop}/%{python_sitedir}/cumulus/plugins/*.py*
|
|
|
|
%{coriolisTop}/%{python_sitedir}/cumulus/plugins/*/*.py*
|
2011-02-02 10:15:33 -06:00
|
|
|
%{coriolisTop}/%{python_sitedir}/stratus/*.py*
|
2012-12-03 09:49:21 -06:00
|
|
|
%{coriolisTop}/%{python_sitedir}/crlcore/*.py*
|
2022-12-01 19:17:50 -06:00
|
|
|
%{coriolisTop}/%{python_sitedir}/helpers/*.py*
|
2015-04-07 17:33:26 -05:00
|
|
|
%{coriolisTop}/%{python_sitedir}/kite/*.py*
|
|
|
|
%{coriolisTop}/%{python_sitedir}/unicorn/*.py*
|
2015-04-08 10:45:45 -05:00
|
|
|
%{_sysconfdir}/coriolis2/*.py
|
2012-12-03 09:49:21 -06:00
|
|
|
%config(noreplace) %{_sysconfdir}/coriolis2/*.conf
|
2015-04-07 17:33:26 -05:00
|
|
|
%config(noreplace) %{_sysconfdir}/coriolis2/*/*.conf
|
2010-05-21 12:03:22 -05:00
|
|
|
%config(noreplace) %{_sysconfdir}/coriolis2/*.xml
|
2011-02-02 09:35:54 -06:00
|
|
|
%config(noreplace) %{_sysconfdir}/coriolis2/stratus.vim
|
2015-04-06 05:49:27 -05:00
|
|
|
%config(noreplace) %{coriolisTop}/share/coriolis2/flute-3.1/*.dat
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%files devel
|
|
|
|
%defattr(-,root,root,-)
|
2011-02-04 05:32:30 -06:00
|
|
|
%dir %{coriolisTop}/%{_lib}
|
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
|
2015-04-07 17:33:26 -05:00
|
|
|
%dir %{coriolisTop}/include/vlsisapd/utilities
|
2010-05-18 10:18:56 -05:00
|
|
|
%dir %{coriolisTop}/include/vlsisapd/agds
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/cif
|
2012-12-03 09:49:21 -06:00
|
|
|
%dir %{coriolisTop}/include/vlsisapd/spice
|
2011-02-02 09:35:54 -06:00
|
|
|
%dir %{coriolisTop}/include/vlsisapd/liberty
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/bookshelf
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/configuration
|
2015-04-07 17:33:26 -05:00
|
|
|
%dir %{coriolisTop}/include/vlsisapd/dtr
|
|
|
|
%dir %{coriolisTop}/include/vlsisapd/openChams
|
2015-04-08 10:45:45 -05:00
|
|
|
%dir %{coriolisTop}/include/coriolis2/coloquinte
|
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
|
2015-04-01 05:05:48 -05:00
|
|
|
%dir %{coriolisTop}/include/coriolis2/etesian
|
2010-05-18 08:00:48 -05:00
|
|
|
%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
|
2011-02-02 04:40:25 -06:00
|
|
|
%dir %{coriolisTop}/include/coriolis2/unicorn
|
2011-02-04 05:32:30 -06:00
|
|
|
%{coriolisTop}/%{_lib}/*.so
|
2010-05-18 08:00:48 -05:00
|
|
|
%{coriolisTop}/share/cmake/Modules/*.cmake
|
2015-04-07 17:33:26 -05:00
|
|
|
%{coriolisTop}/include/vlsisapd/utilities/*.h
|
2010-05-18 10:18:56 -05:00
|
|
|
%{coriolisTop}/include/vlsisapd/agds/*.h
|
|
|
|
%{coriolisTop}/include/vlsisapd/cif/*.h
|
2012-12-03 09:49:21 -06:00
|
|
|
%{coriolisTop}/include/vlsisapd/spice/*.h
|
2011-02-02 09:35:54 -06:00
|
|
|
%{coriolisTop}/include/vlsisapd/liberty/*.h
|
|
|
|
%{coriolisTop}/include/vlsisapd/bookshelf/*.h
|
|
|
|
%{coriolisTop}/include/vlsisapd/configuration/*.h
|
2015-04-07 17:33:26 -05:00
|
|
|
%{coriolisTop}/include/vlsisapd/dtr/*.h
|
|
|
|
%{coriolisTop}/include/vlsisapd/openChams/*.h
|
2023-05-26 08:09:52 -05:00
|
|
|
%{coriolisTop}/include/coriolis2/coloquinte/*.hpp
|
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
|
2015-04-07 17:33:26 -05:00
|
|
|
%{coriolisTop}/include/coriolis2/etesian/*.h
|
2010-05-18 08:00:48 -05:00
|
|
|
%{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
|
2011-02-02 04:40:25 -06:00
|
|
|
%{coriolisTop}/include/coriolis2/unicorn/*.h
|
2010-05-17 09:45:55 -05:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2011-02-02 09:42:41 -06:00
|
|
|
* Wed Feb 2 2011 Jean-Paul.Chaput <Jean-Paul.Chaput@lip6.fr>
|
|
|
|
- Second release, all tools from Coriolis 1 have been ported.
|
|
|
|
(nimbus, mauka, metis, cumulus, stratus1)
|
|
|
|
|
2010-05-17 09:45:55 -05:00
|
|
|
* Sun May 16 2010 Jean-Paul.Chaput <Jean-Paul.Chaput@lip6.fr>
|
|
|
|
- Initial packaging for svn release 1322 (alpha stage).
|