Accepting request 243990 from science
OBS-URL: https://build.opensuse.org/request/show/243990 OBS-URL: https://build.opensuse.org/package/show/devel:libraries:c_c++/double-conversion?expand=0&rev=1
This commit is contained in:
commit
d1f2d9fed1
23
.gitattributes
vendored
Normal file
23
.gitattributes
vendored
Normal file
@ -0,0 +1,23 @@
|
||||
## Default LFS
|
||||
*.7z filter=lfs diff=lfs merge=lfs -text
|
||||
*.bsp filter=lfs diff=lfs merge=lfs -text
|
||||
*.bz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.gem filter=lfs diff=lfs merge=lfs -text
|
||||
*.gz filter=lfs diff=lfs merge=lfs -text
|
||||
*.jar filter=lfs diff=lfs merge=lfs -text
|
||||
*.lz filter=lfs diff=lfs merge=lfs -text
|
||||
*.lzma filter=lfs diff=lfs merge=lfs -text
|
||||
*.obscpio filter=lfs diff=lfs merge=lfs -text
|
||||
*.oxt filter=lfs diff=lfs merge=lfs -text
|
||||
*.pdf filter=lfs diff=lfs merge=lfs -text
|
||||
*.png filter=lfs diff=lfs merge=lfs -text
|
||||
*.rpm filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz filter=lfs diff=lfs merge=lfs -text
|
||||
*.tbz2 filter=lfs diff=lfs merge=lfs -text
|
||||
*.tgz filter=lfs diff=lfs merge=lfs -text
|
||||
*.ttf filter=lfs diff=lfs merge=lfs -text
|
||||
*.txz filter=lfs diff=lfs merge=lfs -text
|
||||
*.whl filter=lfs diff=lfs merge=lfs -text
|
||||
*.xz filter=lfs diff=lfs merge=lfs -text
|
||||
*.zip filter=lfs diff=lfs merge=lfs -text
|
||||
*.zst filter=lfs diff=lfs merge=lfs -text
|
1
.gitignore
vendored
Normal file
1
.gitignore
vendored
Normal file
@ -0,0 +1 @@
|
||||
.osc
|
3
double-conversion-2.0.1.tar.gz
Normal file
3
double-conversion-2.0.1.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:671f0439b4531c7344ace5b2ddaab4bdd860e80cee586efcfebf37b4eedd7cf0
|
||||
size 7014061
|
4
double-conversion.changes
Normal file
4
double-conversion.changes
Normal file
@ -0,0 +1,4 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Jul 24 18:53:28 UTC 2014 - dmitry_r@opensuse.org
|
||||
|
||||
- Initial package, version 2.0.1
|
106
double-conversion.spec
Normal file
106
double-conversion.spec
Normal file
@ -0,0 +1,106 @@
|
||||
#
|
||||
# spec file for package double-conversion
|
||||
#
|
||||
# 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: double-conversion
|
||||
Version: 2.0.1
|
||||
%define lib_ver 1
|
||||
Release: 0
|
||||
Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
|
||||
License: BSD-3-Clause
|
||||
Group: System/Libraries
|
||||
Url: http://code.google.com/p/double-conversion
|
||||
Source0: http://double-conversion.googlecode.com/files/%{name}-%{version}.tar.gz
|
||||
BuildRequires: gcc-c++
|
||||
BuildRequires: python
|
||||
BuildRequires: scons >= 2.3.0
|
||||
|
||||
%description
|
||||
Double-conversion provides binary-decimal and decimal-binary routines
|
||||
for IEEE doubles. The library consists of efficient conversion routines
|
||||
that have been extracted from the V8 JavaScript engine. The code has been
|
||||
re-factored and improved so that it can be used more easily in other projects.
|
||||
|
||||
%package -n lib%{name}%{lib_ver}
|
||||
Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
|
||||
Group: System/Libraries
|
||||
|
||||
%description -n lib%{name}%{lib_ver}
|
||||
Double-conversion provides binary-decimal and decimal-binary routines
|
||||
for IEEE doubles. The library consists of efficient conversion routines
|
||||
that have been extracted from the V8 JavaScript engine. The code has been
|
||||
re-factored and improved so that it can be used more easily in other projects.
|
||||
|
||||
%package devel
|
||||
Summary: Library providing binary-decimal and decimal-binary routines for IEEE doubles
|
||||
Group: Development/Libraries/C and C++
|
||||
Requires: lib%{name}%{lib_ver} = %{version}
|
||||
|
||||
%description devel
|
||||
Double-conversion provides binary-decimal and decimal-binary routines
|
||||
for IEEE doubles. The library consists of efficient conversion routines
|
||||
that have been extracted from the V8 JavaScript engine. The code has been
|
||||
re-factored and improved so that it can be used more easily in other projects.
|
||||
|
||||
This package provides libraries and header files for developing applications
|
||||
that use double-conversion.
|
||||
|
||||
%prep
|
||||
%setup -q -c %{name}-%{version}
|
||||
|
||||
%build
|
||||
scons %{?_smp_mflags} \
|
||||
CXXFLAGS="%{optflags}" \
|
||||
VERSION="%{version}"
|
||||
|
||||
# With scons 2.3.0 setting the version fails without this
|
||||
# http://comments.gmane.org/gmane.comp.programming.tools.scons.user/24448
|
||||
rm -f libdouble-conversion.so*
|
||||
|
||||
%install
|
||||
install -d %{buildroot}%{_libdir}
|
||||
install -d %{buildroot}%{_includedir}/%{name}
|
||||
|
||||
scons install \
|
||||
CXXFLAGS="%{optflags}" \
|
||||
libsuffix=%{_lib} \
|
||||
prefix=%{_prefix} \
|
||||
DESTDIR=%{buildroot}
|
||||
|
||||
cp -p src/*.h %{buildroot}%{_includedir}/%{name}
|
||||
|
||||
rm %{buildroot}%{_libdir}/lib%{name}*.a
|
||||
|
||||
%check
|
||||
scons CXXFLAGS="%{optflags}" run_tests
|
||||
./run_tests --list | tr -d '<' | xargs ./run_tests
|
||||
|
||||
%post -n lib%{name}%{lib_ver} -p /sbin/ldconfig
|
||||
|
||||
%postun -n lib%{name}%{lib_ver} -p /sbin/ldconfig
|
||||
|
||||
%files -n lib%{name}%{lib_ver}
|
||||
%defattr(-,root,root)
|
||||
%{_libdir}/libdouble-conversion.so.%{lib_ver}*
|
||||
|
||||
%files devel
|
||||
%defattr(-,root,root)
|
||||
%doc AUTHORS Changelog LICENSE README
|
||||
%{_libdir}/libdouble-conversion.so
|
||||
%{_includedir}/%{name}/
|
||||
|
||||
%changelog
|
Loading…
Reference in New Issue
Block a user