fix gcc6 FTBFS

epel9
Rex Dieter 9 years ago
parent 2b1e5c6cfa
commit fcc7a93fc5

@ -16,6 +16,9 @@ URL: https://projects.kde.org/%{framework}
%endif
Source0: http://download.kde.org/%{stable}/applications/%{version}/src/%{framework}-%{version}.tar.xz
## upstreamable patches
Patch1: kholidays-15.12.1-gcc6.patch
BuildRequires: kf5-rpm-macros
BuildRequires: extra-cmake-modules
BuildRequires: qt5-qtbase-devel
@ -38,7 +41,7 @@ developing applications that use %{name}.
%prep
%setup -q -n %{framework}-%{version}
%autosetup -n %{framework}-%{version} -p1
%build
@ -71,8 +74,9 @@ make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
%changelog
* Sat Feb 06 2016 Rex Dieter <rdieter@fedoraproject.org> 15.12.1-1
* Thu Feb 11 2016 Rex Dieter <rdieter@fedoraproject.org> 15.12.1-1
- 15.12.1
- fix gcc6 FTBFS
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 15.12.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild

@ -0,0 +1,11 @@
diff -up kholidays-15.12.1/src/sunriseset.cpp.gcc6 kholidays-15.12.1/src/sunriseset.cpp
--- kholidays-15.12.1/src/sunriseset.cpp.gcc6 2015-11-21 18:49:24.000000000 -0600
+++ kholidays-15.12.1/src/sunriseset.cpp 2016-02-11 08:31:39.554683739 -0600
@@ -23,6 +23,7 @@
*/
#include "sunriseset.h"
+#include <math.h>
#include <cmath>
static const double PI = 3.14159265358979323846;
static const double MaxLat = 89.99;
Loading…
Cancel
Save