scilab/scilab.spec

270 lines
7.8 KiB
RPMSpec
Raw Normal View History

Name: scilab
Version: 6.1.1
Release: 1mamba
Summary: A scientific software package for numerical computations
Group: Graphical Desktop/Applications/Scientific
Vendor: openmamba
Distribution: openmamba
Packager: Silvan Calarco <silvan.calarco@mambasoft.it>
URL: https://www.scilab.org/
Source0: http://www.scilab.org/download/%{version}/scilab-%{version}-src.tar.gz
Source1: scilab.desktop
Source2: scilab_256x256x32.png
Patch0: scilab-6.1.0-jogl-2.3.2.patch
Patch1: scilab-6.1.0-strict-jar.patch
Patch2: scilab-6.1.0-libhdf5-1.8.10.patch
Patch3: scilab-6.1.0-hdf5_18_api.patch
Patch4: scilab-6.1.0-matio-fix-uint32_t-type.patch
Patch5: scilab-6.1.1-ocaml-num.patch
Patch6: scilab-6.1.0-ocaml.patch
Patch7: scilab-6.1.0-fix-core-link.patch
Patch8: scilab-6.1.1-pause_to_scipause.patch
License: CeCILL, GPL
## AUTOBUILDREQ-BEGIN
BuildRequires: gcc-fortran
BuildRequires: glibc-devel
BuildRequires: java-openjdk8-runtime
BuildRequires: libarpack-devel
BuildRequires: libcurl-devel
BuildRequires: libfftw-devel
BuildRequires: libgcc
BuildRequires: libgomp-devel
BuildRequires: libhdf5-devel
BuildRequires: liblzma-devel
BuildRequires: libmatio-devel
BuildRequires: libmpi-devel
BuildRequires: libncurses-devel
BuildRequires: libopenblas-devel
BuildRequires: libpcre-devel
BuildRequires: libquadmath-devel
BuildRequires: libstdc++6-devel
BuildRequires: libsuitesparse-devel
BuildRequires: libtcl-devel
BuildRequires: libtk-devel
BuildRequires: libxml2-devel
BuildRequires: libz-devel
## AUTOBUILDREQ-END
BuildRequires: libmpi-devel >= 4.1.5
BuildRequires: ocaml
BuildRequires: ocaml-num
BuildRequires: desktop-file-utils
BuildRequires: ImageMagick
# java stuff
BuildRequires: apache-ant
BuildRequires: apache-batik
BuildRequires: apache-fop
BuildRequires: java-openjdk8
BuildRequires: java-flexdock
BuildRequires: java-graphx
BuildRequires: java-jogl
BuildRequires: java-jeuclid
BuildRequires: java-jlatexmath
BuildRequires: java-lucene
BuildRequires: java-rosetta
BuildRequires: java-skinlf
BuildRequires: java-xmlgraphics-commons
#BuildRequires: jakarta-commons-io
#BuildRequires: java-excalibur-avalon-framework-api
#BuildRequires: jakarta-commons-logging
#BuildRequires: java-junit48
BuildRequires: javahelp2
BuildRequires: jgoodies-looks
Requires: antlr
Requires: apache-batik
Requires: apache-fop
Requires: docbook-xsl
#Requires: jakarta-commons-beanutils
#Requires: jakarta-commons-io
#Requires: jakarta-commons-logging
Requires: java-checkstyle
#Requires: java-excalibur-avalon-framework
Requires: java-flexdock
Requires: java-graphx
Requires: java-jeuclid
Requires: java-jlatexmath
#Requires: java-junit48
#Requires: java-openjdk8
Requires: java-qdox
Requires: java-rosetta
Requires: java-saxon9
Requires: java-skinlf
Requires: java-testng
Requires: java-xmlgraphics-commons
Requires: javahelp2
Requires: jgoodies-looks
Requires: ocaml
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
%description
Scilab is a scientific software package for numerical computations providing a powerful open computing environment for engineering and scientific applications.
Scilab includes hundreds of mathematical functions with the possibility to add interactively programs from various languages (C, Fortran...). It has sophisticated data structures (including lists, polynomials, rational functions, linear systems...), an interpreter and a high level programming language.
Scilab has been designed to be an open system where the user can define new data types and operations on these data types by using overloading.
%package -n lib%{name}
Group: System/Libraries
Summary: Shared libraries provided by Scilab
%description -n lib%{name}
Scilab - A scientific software package for numerical computations.
This package contains the shared libraries provided by Scilab.
%package -n lib%{name}-devel
Group: Development/Libraries
Summary: Development files for Scilab
Requires: %{name} = %{?epoch:%epoch:}%{version}-%{release}
Requires: lib%{name} = %{?epoch:%epoch:}%{version}-%{release}
Provides: scilab-devel
Obsoletes: scilab-devel < 6.1.0
%description -n lib%{name}-devel
Scilab - A scientific software package for numerical computations.
This package contains development files for with Scilab.
%debug_package
%prep
%setup -q
#-D -T
#:<< _EOF
%patch 0 -p2
%patch 3 -p1
#%patch 4 -p1
%patch 5 -p0
%patch 6 -p1
#%patch 7 -p1
%patch 8 -p2
#autoreconf -f -i
%build
#:<< _EOF
%configure \
--enable-debug \
--with-gcc \
--with-gfortran \
--with-mpi \
--with-matio \
--with-umfpack \
--with-fftw \
--with-modelica \
--without-emf \
--with-install-help-xml \
--enable-build-help \
--enable-build-localization \
--disable-static-system-lib \
--with-jdk=%{_jvmdir}/java-8-openjdk/ \
FFLAGS="-fallow-argument-mismatch" \
CFLAGS="%{optflags} -fcommon" \
CXXFLAGS="%{optflags} -fcommon"
%make -j1 \
OCAMLCFLAGS="" OCAMLOPTFLAGS=""
make doc
%install
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%makeinstall
make DESTDIR=%{buildroot} install-data install-html
%find_lang scilab
%clean
[ "%{buildroot}" != / ] && rm -rf "%{buildroot}"
%post
/sbin/ldconfig
touch --no-create %{_datadir}/icons/hicolor &>/dev/null || :
:
%postun
/sbin/ldconfig
if [ $1 -eq 0 ] ; then
touch --no-create %{_datadir}/icons/hicolor &>/dev/null
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
fi
:
%posttrans
gtk-update-icon-cache %{_datadir}/icons/hicolor &>/dev/null || :
%files -f scilab.lang
%defattr(-,root,root)
%{_bindir}/XML2Modelica
%{_bindir}/modelicac
%{_bindir}/modelicat
%{_bindir}/scilab
%{_bindir}/scilab-adv-cli
%{_bindir}/scilab-bin
%{_bindir}/scilab-cli
%{_bindir}/scilab-cli-bin
%{_bindir}/scinotes
%{_bindir}/xcos
%dir %{_datadir}/scilab
%{_datadir}/scilab/ACKNOWLEDGEMENTS
%{_datadir}/scilab/CHANGES.md
%{_datadir}/scilab/COPYING*
%{_datadir}/scilab/README.md
%{_datadir}/scilab/Version.incl
%{_datadir}/scilab/contrib
%{_datadir}/scilab/etc
#%{_datadir}/scilab/icons
%{_datadir}/scilab/tools
%dir %{_datadir}/scilab/modules
%{_datadir}/scilab/modules/*
%{_datadir}/appdata/scilab.appdata.xml
%{_datadir}/applications/*.desktop
%{_datadir}/mime/packages/scilab.xml
%{_datadir}/icons/hicolor/*/apps/*.png
%{_datadir}/icons/hicolor/*/mimetypes/*.png
#%{_datadir}/pixmaps/scilab.png
%files -n lib%{name}
%defattr(-,root,root)
%dir %{_libdir}/scilab
%{_libdir}/scilab/libjavasci2.so.*
%{_libdir}/scilab/libsci*.so.*
%{_libdir}/scilab/*.so
%doc COPYING COPYING-BSD
%files -n lib%{name}-devel
%defattr(-,root,root)
%dir %{_includedir}/scilab
%{_includedir}/scilab/*
%{_libdir}/pkgconfig/scilab.pc
%changelog
* Sat Oct 21 2023 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1.1-1mamba
- update to 6.1.1
* Sun Apr 11 2021 Silvan Calarco <silvan.calarco@mambasoft.it> 6.1.0-1mamba
- update to 6.1.0
* Sat Aug 03 2013 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.0-5mamba
- rebuilt with libhdf5 1.8.10
* Tue Mar 06 2012 Silvan Calarco <silvan.calarco@mambasoft.it> 5.3.0-4mamba
- rebuilt with libsuitesparse
* Tue Feb 08 2011 gil <puntogil@libero.it> 5.3.0-3mamba
- add getmodules.patch
* Tue Feb 08 2011 gil <puntogil@libero.it> 5.3.0-2mamba
- edit configure options add libatlas support
* Fri Feb 04 2011 gil <puntogil@libero.it> 5.3.0-1mamba
- update to 5.3.0
* Wed Jul 30 2008 gil <puntogil@libero.it> 4.1.2-1mamba
- update to 4.1.2
* Wed Jul 13 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-3qilnx
- added automatic creation of user configuration for rtai patch
* Wed Jul 13 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-2qilnx
- added RTAI patch
* Mon Jul 11 2005 Silvan Calarco <silvan.calarco@mambasoft.it> 3.1.1-1qilnx
- package created by autospec