Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:linux4humans:qt_5.15
double-conversion
double-conversion.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File double-conversion.spec of Package double-conversion
# # spec file for package double-conversion # # Copyright (c) 2023 SUSE LLC # # 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 https://bugs.opensuse.org/ # %define lib_ver 3 %define libname libdouble-conversion3 Name: double-conversion Version: 3.3.0 Release: 0 Summary: Binary-decimal and decimal-binary routines for IEEE doubles License: BSD-3-Clause Group: Development/Libraries/C and C++ URL: https://github.com/google/double-conversion Source0: https://github.com/google/double-conversion/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz Source99: baselibs.conf BuildRequires: cmake # You need to define a new version of GCC. SLE 11 SP4 has gcc 4.8, hovewer # SLE 11 SP3 has gcc 4.7. Althouth in my OWN repository I cast gcc 11 because # it's already built there. You need to use gcc48 instead (or clone a new gcc). %if 0%{?suse_version} < 1230 BuildRequires: gcc11 BuildRequires: gcc11-c++ %endif BuildRequires: gcc-c++ %if 0%{?suse_version} < 1210 BuildRequires: python-base %else BuildRequires: python3-base %endif BuildRoot: %{_tmppath}/%{name}-%{version}-build %description Double-conversion provides binary-decimal and decimal-binary routines for IEEE double-precision floating point numbers. The library consists of conversion routines that have been extracted from the V8 JavaScript engine. %package -n %{libname} Summary: Binary-decimal and decimal-binary routines for IEEE doubles Group: System/Libraries %description -n %{libname} Double-conversion provides binary-decimal and decimal-binary routines for IEEE double-precision floating point numbers. The library consists of conversion routines that have been extracted from the V8 JavaScript engine. %package devel Summary: Development files for BCD/DCB routines for IEEE doubles Group: Development/Libraries/C and C++ Requires: %{libname} = %{version} %description devel Double-conversion provides binary-decimal and decimal-binary routines for IEEE double-precision floating point numbers. The library consists of conversion routines that have been extracted from the V8 JavaScript engine. This package provides libraries and header files for developing applications that use double-conversion. %prep %setup -q %build %if 0%{?suse_version} < 1230 export CC=gcc-11 export CXX=g++-11 export PATH=/tmp/gcc:$PATH %endif mkdir build pushd build export CFLAGS="%{optflags}" export CXXFLAGS="%{optflags}" cmake \ -DCMAKE_INSTALL_PREFIX:PATH=/usr\ -DBUILD_SHARED_LIBS:BOOL=ON\ -DBUILD_TESTING:BOOL=ON\ .. make %{?_smp_mflags} popd %install %make_install -C build %check %if 0%{?suse_version} < 1230 export CC=gcc-11 export CXX=g++-11 mkdir /tmp/gcc ln -s /usr/bin/gcc-11 /tmp/gcc/gcc ln -s /usr/bin/g++-11 /tmp/gcc/g++ export PATH=/tmp/gcc:$PATH %endif export LD_LIBRARY_PATH=%{buildroot}%{_libdir} make test -C build %post -n %{libname} -p /sbin/ldconfig %postun -n %{libname} -p /sbin/ldconfig %files -n %{libname} %defattr(-,root,root) %doc LICENSE %{_libdir}/libdouble-conversion.so.%{lib_ver}* %files devel %defattr(-,root,root) %doc AUTHORS Changelog README.md %{_libdir}/libdouble-conversion.so %{_libdir}/cmake/%{name}/ %{_includedir}/%{name}/ %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