Blame SPECS/double-conversion.spec

43d7c3
%undefine __cmake_in_source_build
43d7c3
%bcond_without static_libs # don't build static libraries
43d7c3
43d7c3
Summary:        Library providing binary-decimal and decimal-binary routines for IEEE doubles
43d7c3
Name:           double-conversion
43d7c3
Version:        3.1.5
43d7c3
Release:        6%{?dist}
43d7c3
License:        BSD
43d7c3
Source0:        https://github.com/google/double-conversion/archive/v%{version}/%{name}-%{version}.tar.gz
43d7c3
URL:            https://github.com/google/double-conversion
43d7c3
BuildRequires:  gcc
43d7c3
BuildRequires:  gcc-c++
43d7c3
BuildRequires:  cmake
43d7c3
43d7c3
%description
43d7c3
Provides binary-decimal and decimal-binary routines for IEEE doubles.
43d7c3
The library consists of efficient conversion routines that have been
43d7c3
extracted from the V8 JavaScript engine. The code has been re-factored
43d7c3
and improved so that it can be used more easily in other projects.
43d7c3
43d7c3
%package devel
43d7c3
Summary:    Library providing binary-decimal and decimal-binary routines for IEEE doubles
43d7c3
Requires:   %{name}%{?_isa} = %{version}-%{release}
43d7c3
43d7c3
%description devel
43d7c3
Contains header files for developing applications that use the %{name}
43d7c3
library.
43d7c3
43d7c3
There is extensive documentation in src/double-conversion.h. Other
43d7c3
examples can be found in test/cctest/test-conversions.cc.
43d7c3
43d7c3
%package static
43d7c3
Summary:    Library providing binary-decimal and decimal-binary routines for IEEE doubles
43d7c3
Requires:   %{name}-devel%{?_isa} = %{version}-%{release}
43d7c3
43d7c3
%description static
43d7c3
Static %{name} library.
43d7c3
43d7c3
%prep
43d7c3
%setup -q
43d7c3
43d7c3
%build
43d7c3
%global _vpath_builddir build-shared
43d7c3
%cmake -DBUILD_TESTING=ON
43d7c3
%cmake_build
43d7c3
43d7c3
%if %{with static_libs}
43d7c3
%global _vpath_builddir build-static
43d7c3
CXXFLAGS="%{optflags} -fPIC" %cmake -DBUILD_SHARED_LIBS=NO
43d7c3
%cmake_build
43d7c3
%endif
43d7c3
43d7c3
%install
43d7c3
%if %{with static_libs}
43d7c3
%global _vpath_builddir build-static
43d7c3
%cmake_install
43d7c3
%endif
43d7c3
43d7c3
%global _vpath_builddir build-shared
43d7c3
%cmake_install
43d7c3
43d7c3
%check
43d7c3
%ctest
43d7c3
43d7c3
%ldconfig_scriptlets
43d7c3
43d7c3
%files
43d7c3
%doc LICENSE README.md AUTHORS Changelog
43d7c3
%{_libdir}/libdouble-conversion.so.3*
43d7c3
43d7c3
%files devel
43d7c3
%{_libdir}/libdouble-conversion.so
43d7c3
%{_libdir}/cmake/%{name}
43d7c3
%{_includedir}/%{name}
43d7c3
43d7c3
%if %{with static_libs}
43d7c3
%files static
43d7c3
%{_libdir}/libdouble-conversion.a
43d7c3
%endif
43d7c3
43d7c3
%changelog
43d7c3
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 3.1.5-6
43d7c3
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
43d7c3
  Related: rhbz#1991688
43d7c3
43d7c3
* Thu Apr 15 2021 Mohan Boddu <mboddu@redhat.com> - 3.1.5-5
43d7c3
- Rebuilt for RHEL 9 BETA on Apr 15th 2021. Related: rhbz#1947937
43d7c3
43d7c3
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-4
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
43d7c3
43d7c3
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-3
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
43d7c3
43d7c3
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.1.5-2
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
43d7c3
43d7c3
* Sun Sep 22 2019 Orion Poplawski <orion@nwra.com> - 3.1.5-1
43d7c3
- Update to 3.1.5
43d7c3
43d7c3
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-5
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
43d7c3
43d7c3
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-4
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
43d7c3
43d7c3
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-3
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
43d7c3
43d7c3
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.0.0-2
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
43d7c3
43d7c3
* Mon Sep 4 2017 Milan Bouchet-Valat <nalimilan@club.fr> - 3.0.0-1
43d7c3
- New upstream release.
43d7c3
43d7c3
* Sun Aug 06 2017 Björn Esser <besser82@fedoraproject.org> - 2.0.1-11
43d7c3
- Rebuilt for AutoReq cmake-filesystem
43d7c3
43d7c3
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-10
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
43d7c3
43d7c3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-9
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
43d7c3
43d7c3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-8
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
43d7c3
43d7c3
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-7
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
43d7c3
43d7c3
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-6
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
43d7c3
43d7c3
* Fri Mar 13 2015 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-5
43d7c3
- Use github source
43d7c3
43d7c3
* Wed Mar 11 2015 Orion Poplawski <orion@cora.nwra.com> - 2.0.1-4
43d7c3
- Build with cmake
43d7c3
43d7c3
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-3
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
43d7c3
43d7c3
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0.1-2
43d7c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
43d7c3
43d7c3
* Sat Feb 8 2014 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.1-1
43d7c3
- New upstream version.
43d7c3
- Drop no longer needed custom SConstruct file and use new upstream SONAME.
43d7c3
43d7c3
* Tue Dec 17 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-4
43d7c3
- Drop libstdc++-devel from BuildRequires.
43d7c3
- Move %%check after %%install.
43d7c3
43d7c3
* Sat Dec 14 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-3
43d7c3
- Remove gcc-c++ from BuildRequires as it is an exception.
43d7c3
- Fix command in %%check and pass CXXFLAGS to scons.
43d7c3
- Use %%global instead of %%define.
43d7c3
43d7c3
* Thu Dec 12 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-2
43d7c3
- Fix building when "--without static_libs" is passed.
43d7c3
- Remove %%ghost with libdouble-conversion.so.2.
43d7c3
- Drop BuildRoot.
43d7c3
- Use rm instead of %%{__rm} for consistency
43d7c3
- Use %%{?dist} in Release.
43d7c3
43d7c3
* Wed Dec 11 2013 Milan Bouchet-Valat <nalimilan@club.fr> - 2.0.0-1
43d7c3
- Initial Fedora package based on a PLD Linux RPM by Elan Ruusamäe <glen@delfi.ee>:
43d7c3
  http://git.pld-linux.org/gitweb.cgi?p=packages/double-conversion.git