]> git.pld-linux.org Git - packages/qlandkartegt.git/blobdiff - qlandkartegt.spec
- fix building with gcc 8 and proj 6
[packages/qlandkartegt.git] / qlandkartegt.spec
index 5b39cd6e975602a6b160c9b692a8d1c468d360b0..aa9a46e01c97cb2685acde386a0892757f76e897 100644 (file)
@@ -6,11 +6,12 @@ Summary:      Garmin's MapSource clone for Linux
 Summary(pl.UTF-8):     Klon MapSource pod Linuksa
 Name:          qlandkartegt
 Version:       1.8.1
-Release:       4
+Release:       5
 License:       GPLv2
 Group:         X11/Applications
 Source0:       http://downloads.sourceforge.net/qlandkartegt/%{name}-%{version}.tar.gz
 # Source0-md5: 2bfe90aff7e21b19572b7b250d76a540
+Patch0:                gcc8.patch
 URL:           http://qlandkarte.org
 BuildRequires: QtCore-devel >= 4.6.0
 BuildRequires: QtDBus-devel >= 4.6.0
@@ -39,10 +40,13 @@ Klon MapSource pod Linuksa.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
 cd build
+CFLAGS="%{rpmcflags} -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
+CXXFLAGS="%{rpmcxxflags} -DACCEPT_USE_OF_DEPRECATED_PROJ_API_H"
 %cmake ..
 %{__make}
 
This page took 0.112126 seconds and 4 git commands to generate.