### File cxsc.spec of Package cxsc

# # spec file for package cxsc # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ # Name: cxsc %define lname libcxsc2 Version: 2.5.4 Release: 0 Summary: C++ library for Extended Scientific Computing (XSC) License: LGPL-2.1+ Group: Productivity/Scientific/Math Url: http://www2.math.uni-wuppertal.de/~xsc/xsc/cxsc.html Source: http://www2.math.uni-wuppertal.de/~xsc/xsc/cxsc/cxsc-2-5-4.tar.gz Patch1: cxsc-libversion.diff BuildRequires: autoconf BuildRequires: automake >= 1.11 BuildRequires: gcc-c++ BuildRequires: libtool BuildRoot: %{_tmppath}/%{name}-%{version}-build %description C-XSC is a libary for the development of numerical algorithms that deliver highly accurate and automatically verified results. C-XSC can do real, complex, interval, and complex interval arithmetic with mathematically defined properties, dynamic vectors and matrices, accurate dot products, predefined arithmetic operators with highest accuracy, standard functions of high accuracy, dynamic multiple-precision arithmetic and rounding control for the input and output of data. %package -n %lname Summary: C++ library for Extended Scientific Computing (XSC) Group: System/Libraries %description -n %lname C-XSC is a libary for the development of numerical algorithms that deliver highly accurate and automatically verified results. C-XSC can do real, complex, interval, and complex interval arithmetic with mathematically defined properties, dynamic vectors and matrices, accurate dot products, predefined arithmetic operators with highest accuracy, standard functions of high accuracy, dynamic multiple-precision arithmetic and rounding control for the input and output of data. %package devel Summary: Development files for Lattice Basis Reduction with cxsc Group: Development/Libraries/C and C++ Requires: %lname = %version %description devel C-XSC is a libary for the development of numerical algorithms that deliver highly accurate and automatically verified results. This subpackage contains libraries and header files for developing applications that want to make use of %name. %prep %setup -qn %name-2-5-4 %patch -P 1 -p1 find . -name tmain -exec chmod a+x "{}" "+" %build mkdir -p m4 autoreconf -fi %configure make %{?_smp_mflags} %install b="%buildroot"; make install DESTDIR="$b"; rm -f "$b/%_libdir"/*.la; %post -n %lname -p /sbin/ldconfig %postun -n %lname -p /sbin/ldconfig %files %defattr(-,root,root) %_libexecdir/%name/ %doc docu/COPYING %files -n %lname %defattr(-,root,root) %_libdir/libcxsc.so.2 %_libdir/libcxsc.so.%version %files devel %defattr(-,root,root) %_includedir/%name/ %_libdir/libcxsc.so %changelog