Package SimGear: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 | %define origver 2020.3.17 %def_enable openmp Name: SimGear Version: %origver Release: alt1 Summary: Simulator Construction Tools License: GPLv2+ Group: System/Libraries Url: http://www.flightgear.org # Source-url: https://sourceforge.net/projects/flightgear/files/release-%origver/simgear-%version.tar.bz2 Source: %name-%version.tar Patch0: simgear-3.2.0-fedora-format.patch Patch1: simgear-3.6.0-fedora-aarch64.patch Patch2: %name-g++8.patch Packager: Michael Shigorin <mike@altlinux.org> # Automatically added by buildreq on Sat Mar 03 2012 # optimized out: cmake-modules libGL-devel libICE-devel libOpenThreads-devel libSM-devel libX11-devel libXau-devel libXext-devel libopenal-devel libstdc++-devel xorg-kbproto-devel xorg-xproto-devel BuildRequires: boost-devel-headers cmake gcc-c++ libGLU-devel libOpenSceneGraph-devel libXi-devel libXt-devel libalut-devel libapr1-devel zlib-devel libcurl-devel libstdc++-devel BuildRequires: cmake libapr1-devel BuildRequires: libexpat-devel BuildRequires: liblzma-devel %if_enabled openmp BuildRequires: libgomp-devel %endif %ifarch %e2k # had to disable in OpenSceneGraph => unmets followed up %global __find_debuginfo_files %nil %endif %description SimGear is a set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications. %package -n libsimgear Summary: Simulation library Group: System/Libraries %description -n libsimgear SimGear is a set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications. %package -n libsimgear-devel Summary: Simulation library (development part) Group: Development/C Provides: SimGear = %version Provides: SimGear-devel = %version Obsoletes: SimGear-devel < 1.0.0 Conflicts: SimGear-devel < 1.0.0 # from SimGearTargets.cmake Requires: libOpenSceneGraph-devel libOpenThreads-devel Requires: zlib-devel libcurl-devel libopenal-devel libGL-devel libGLU-devel %description -n libsimgear-devel SimGear is a set of open-source libraries designed to be used as building blocks for quickly assembling 3d simulations, games, and visualization applications. This package contains header files for SimGear. %prep %setup %patch0 -p1 %patch1 -p1 %ifarch %e2k sed -i "/__x86_64__/{N;/<x86intrin.h>/s/__x86_64__/__e2k__/}" simgear/math/simd.hxx %else %patch2 -p2 %endif #sed -i "s|\${CMAKE_INSTALL_LIBDIR}/cmake/SimGear|%_libdir/cmake/SimGear|" CMakeLists.txt # rename version file to simgear_version because it's incorrectly detected as header file # by boost-1.73.0, and compilation fails when it's being incorrectly used as header file mv version simgear_version %build %add_optflags %optflags_shared # /usr/src/RPM/BUILD/SimGear-2020.1/simgear/io/HTTPRepository.cxx:267:16: error: return-statement with a value, in function returning 'void' [-fpermissive] # return ""; %add_optflags -fpermissive %cmake \ %ifarch x86_64 aarch64 %e2k -DENABLE_SIMD_CODE=ON \ %endif -DCMAKE_BUILD_TYPE=Release \ -DCMAKE_C_FLAGS_RELEASE="-DNDEBUG" \ -DCMAKE_CXX_FLAGS_RELEASE="-DNDEBUG" \ %if_enabled openmp -DENABLE_OPENMP=ON \ %endif -DSIMGEAR_SHARED=ON \ -DSYSTEM_EXPAT=ON \ -DENABLE_TESTS=OFF %cmake_build %install %cmake_install %files -n libsimgear %doc AUTHORS README* Thanks %_libdir/*.so.* %files -n libsimgear-devel %_libdir/*.so %_includedir/simgear %_libdir/cmake/%name/ %changelog * Sun Dec 18 2022 Artyom Bystrov <arbars@altlinux.org> 2020.3.17-alt1 - 2020.3.17 * Sat Nov 27 2021 Ilya Kurdyukov <ilyakurdyukov@altlinux.org> 2020.3.8-alt2 - enabled SIMD and OpenMP - fixed passing optlevel to cmake - removed obsolete workarounds for Elbrus * Tue Apr 27 2021 Arseny Maslennikov <arseny@altlinux.org> 2020.3.8-alt1.1 - NMU: spec: adapted to new cmake macros. * Wed Mar 31 2021 Michael Shigorin <mike@altlinux.org> 2020.3.8-alt1 - 2020.3.8 - drop patch4 (fixed upstream) - minor spec cleanup * Sat Jan 09 2021 Michael Shigorin <mike@altlinux.org> 2020.1.2-alt4 - E2K: disable debuginfo following OpenSceneGraph (avoid unmets) * Fri Jan 08 2021 Michael Shigorin <mike@altlinux.org> 2020.1.2-alt3 - E2K: revert patch introduced in 2018.2.2-alt2 (ftbfs with lcc 1.25) * Thu Jun 11 2020 Aleksei Nikiforov <darktemplar@altlinux.org> 2020.1.2-alt2 - Rebuilt with boost-1.73.0. * Wed May 27 2020 Michael Shigorin <mike@altlinux.org> 2020.1.2-alt1 - 2020.1.2 * Tue May 12 2020 Michael Shigorin <mike@altlinux.org> 2020.1-alt1 - 2020.1 - build with system expat - turn -devel-static subpackage into -devel * Sun Aug 04 2019 Michael Shigorin <mike@altlinux.org> 2018.2.2-alt3 - E2K: initial support (ported from the skipped 2017.2.1-alt1) * Wed Feb 13 2019 Andrey Bychkov <mrdrew@altlinux.org> 2018.2.2-alt2 - no return statement in the non-void function fixed (according g++8) * Thu Jun 21 2018 Vitaly Lipatov <lav@altlinux.ru> 2018.2.2-alt1 - new version (2018.2.2) with rpmgs script * Sat Feb 20 2016 Michael Shigorin <mike@altlinux.org> 2016.1.1-alt1 - 2016.1 * Wed Sep 30 2015 Michael Shigorin <mike@altlinux.org> 3.6.0-alt0.1 - 3.6.0-RC - updated fedora patches * Fri Jul 24 2015 Michael Shigorin <mike@altlinux.org> 3.4.0-alt2 - added another fedora patch - disabled tests following fedora too (to fix FTBFS) * Thu Feb 19 2015 Michael Shigorin <mike@altlinux.org> 3.4.0-alt1 - 3.4.0 * Tue Feb 10 2015 Michael Shigorin <mike@altlinux.org> 3.4.0-alt0.2 - 3.4.0-RC2 * Wed Oct 22 2014 Michael Shigorin <mike@altlinux.org> 3.2.0-alt1 - 3.2.0 * Sat Feb 22 2014 Michael Shigorin <mike@altlinux.org> 3.0.0-alt1 - 3.0.0 * Wed Feb 05 2014 Michael Shigorin <mike@altlinux.org> 3.0.0-alt0.3 - 3.0.0-rc3 * Tue Nov 26 2013 Michael Shigorin <mike@altlinux.org> 2.12.1-alt1 - 2.12.1 * Thu Sep 26 2013 Michael Shigorin <mike@altlinux.org> 2.12.0-alt1 - 2.12.0 * Mon Feb 18 2013 Michael Shigorin <mike@altlinux.org> 2.10.0-alt1 - 2.10 - added svn client support to fetch scenery * Wed Nov 21 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 2.8.0-alt2.1 - Rebuilt with -fPIC * Thu Sep 06 2012 Michael Shigorin <mike@altlinux.org> 2.8.0-alt2 - added patch by iv@ to fix FTBFS against boost-1.51 * Sat Aug 18 2012 Michael Shigorin <mike@altlinux.org> 2.8.0-alt1 - 2.8.0 * Mon Jun 25 2012 Michael Shigorin <mike@altlinux.org> 2.6.0-alt2 - applied fedora patch to fix CVE-2012-2090 * Sat Mar 03 2012 Michael Shigorin <mike@altlinux.org> 2.6.0-alt1 - 2.6.0 + cmake build + patch dropped (fix included with this release) - minor spec cleanup - buildreq * Thu Dec 15 2011 Michael Shigorin <mike@altlinux.org> 2.4.0-alt3 - band-aid to build against boost 1.48 * Mon Sep 26 2011 Michael Shigorin <mike@altlinux.org> 2.4.0-alt2 - rebuilt against libOpenSceneGraph-3.0.1 * Sun Sep 25 2011 Michael Shigorin <mike@altlinux.org> 2.4.0-alt1.3 - updated an Url: * Fri Sep 23 2011 Michael Shigorin <mike@altlinux.org> 2.4.0-alt1.2 - backdated 2.0.0-alt2 merge (was a mere soname rebuild) * Fri Sep 23 2011 Michael Shigorin <mike@altlinux.org> 2.4.0-alt1.1 - rebuilt for Sisyphus * Sun Sep 11 2011 Andrew Clark <andyc@altlinux.org> 2.4.0-alt1 - version update to 2.4.0-alt1 * Thu Mar 10 2011 Michael Shigorin <mike@altlinux.org> 2.0.0-alt2 - rebuilt with current OpenSceneGraph * Thu Mar 11 2010 Andrew Clark <andyc@altlinux.org> 2.0.0-alt1 - version update to 2.0.0-alt1 - spec cleanup - buildreq * Sun May 31 2009 Michael Shigorin <mike@altlinux.org> 1.9.1-alt3 - added Conflicts: SimGear-devel (as there obviously is) * Wed May 13 2009 Michael Shigorin <mike@altlinux.org> 1.9.1-alt2 - adapted gentoo patch to fix FTBFS with gcc-4.4 * Sun Mar 22 2009 Michael Shigorin <mike@altlinux.org> 1.9.1-alt1 - 1.9.1 - merged spec with one from my git.alt (see also #13080) - me as a Packager: - buildreq * Wed Dec 03 2008 Igor Zubkov <icesik@altlinux.org> 1.0.0-alt2 - fix build * Wed Jan 09 2008 Albert R. Valiev <darkstar@altlinux.ru> 1.0.0-alt1.1 - Fixed buildrequies (autoconf/automake dependecies) * Tue Jan 08 2008 Albert R. Valiev <darkstar@altlinux.ru> 1.0.0-alt1 - 1.0.0 - Now uses system libexpat (#8251) * Sat Dec 22 2007 Michael Shigorin <mike@altlinux.org> 1.0.0-alt1 - 1.0.0 - renamed binary package to libsimgear-devel-static (#13080) - built with JPEG Factory * Sat Aug 05 2006 Michael Shigorin <mike@altlinux.org> 0.3.10-alt1 - 0.3.10 * Thu Mar 02 2006 Albert R. Valiev <darkstar@altlinux.ru> 0.3.9-alt1.1 - Updated build requirements. * Sat Dec 03 2005 Albert R. Valiev <darkstar@altlinux.ru> 0.3.9-alt1 - new version * Tue Mar 01 2005 Albert R. Valiev <darkstar@altlinux.ru> 0.3.8-alt2 - Parallel build turned of (cause it fails to build with it...) * Fri Jan 21 2005 Albert R. Valiev <darkstar@altlinux.ru> 0.3.8-alt1 - Update to 0.3.9 version * Tue Sep 14 2004 Albert R. Valiev <darkstar@altlinux.ru> 0.3.7-alt1.pre1 - Update to 0.3.7-pre1 version * Sat Jun 14 2003 Albert R. Valiev <darkstar@altlinux.ru> 0.3.3-alt2 - Fixed rights in package * Sat Jun 14 2003 Albert R. Valiev <darkstar@altlinux.ru> 0.3.3-alt1 - Initial build to sisyphus |