Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
Please login to access the resource
openSUSE:Leap:42.3:Update
cln
cln.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File cln.spec of Package cln
# # spec file for package cln # # 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: cln Version: 1.3.4 Release: 0 Summary: Class Library for Numbers (C++) License: GPL-2.0+ Group: Productivity/Scientific/Math Url: http://www.ginac.de/CLN/ Source0: http://www.ginac.de/CLN/cln-%{version}.tar.bz2 Source1: pi.tar.gz BuildRequires: gcc-c++ BuildRequires: gmp-devel BuildRequires: pkg-config BuildRequires: texinfo PreReq: %install_info_prereq Provides: libcln Provides: pi BuildRoot: %{_tmppath}/%{name}-%{version}-build PreReq: %install_info_prereq %description CLN features a rich set of number classes: integer (unlimited precision), rational, short float, single float, double float, long float (unlimited precision), complex, modular integer, and univariate polynomial. It implements elementary, logical, and transcendental functions. C++ as the implementation language brings efficiency, type safety, and algebraic syntax. Memory efficiency: small integers and short floats are immediate, not heap allocated. Automatic, noninterruptive garbage collection. Speed efficiency: assembly language kernel for some CPUs, Karatsuba and Schoenhage-Strassen multiplication. Interoperability: garbage collection with no burden on the main application, hooks for memory allocation and exceptions. The following C++ features are used: classes, member functions, overloading of functions and operators, constructors and destructors, inline, const, multiple inheritance, templates, and namespaces. The following C++ features are not used: new, delete, virtual inheritance, and exceptions. %package devel Summary: Class Library for Numbers (C++) Group: Development/Libraries/C and C++ PreReq: %install_info_prereq Requires: %{name} = %{version} %description devel CLN features a rich set of number classes: integer (unlimited precision), rational, short float, single float, double float, long float (unlimited precision), complex, modular integer, and univariate polynomial. It implements elementary, logical, and transcendental functions. C++ as the implementation language brings efficiency, type safety, and algebraic syntax. Memory efficiency: small integers and short floats are immediate, not heap allocated. Automatic, noninterruptive garbage collection. Speed efficiency: assembly language kernel for some CPUs, Karatsuba and Schoenhage-Strassen multiplication. Interoperability: garbage collection with no burden on the main application, hooks for memory allocation and exceptions. The following C++ features are used: classes, member functions, overloading of functions and operators, constructors and destructors, inline, const, multiple inheritance, templates, and namespaces. The following C++ features are not used: new, delete, virtual inheritance, and exceptions. %prep %setup -q -a 1 %build %ifarch %{arm} %global XFLAGS %{optflags} -DNO_ASM %else %global XFLAGS %{optflags} %endif CFLAGS="%{XFLAGS} -fno-unit-at-a-time" \ CXXFLAGS="%{XFLAGS} -fno-strict-aliasing -fvisibility-inlines-hidden -fno-unit-at-a-time -fno-reorder-blocks" \ %configure --disable-static make %{?_smp_mflags} make %{?_smp_mflags} check #cd benchmarks #for i in a ap b ; do # ./timebench2$i -r 10 #done #cd .. g++ %{optflags} -I./include pi.cc -o pi -L./src/.libs/ -lcln -lgmp make %{?_smp_mflags} html %install mkdir -p %{buildroot}%{_docdir}/cln make DESTDIR=%{buildroot} MANDIR=%{_mandir} htmldir=%{_docdir}/cln install install -m 755 pi %{buildroot}%{_prefix}/bin rm -f %{buildroot}%{_libdir}/libcln.la %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %post devel %install_info --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %postun devel %install_info_delete --info-dir=%{_infodir} %{_infodir}/%{name}.info.gz %files %defattr(-,root,root) %doc COPYING ChangeLog README NEWS %{_bindir}/pi %{_libdir}/libcln.so.* %files devel %defattr(-,root,root) %doc COPYING ChangeLog README NEWS %{_includedir}/cln %{_infodir}/cln.info.gz %{_mandir}/man1/pi.1.gz %{_libdir}/libcln.so %{_libdir}/pkgconfig/cln.pc %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor