Package cppcheck: 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 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 | # Unpackaged files in buildroot should terminate build %define _unpackaged_files_terminate_build 1 Name: cppcheck Version: 2.13.3 Release: alt1 Summary: A tool for static C/C++ code analysis License: GPLv3 Group: Development/Tools Url: https://github.com/danmar/cppcheck # Source-url: https://github.com/danmar/cppcheck/archive/%version.tar.gz Source: %name-%version.tar Patch2: cppcheck-1.78-norebuild.patch Patch4: cppcheck-1.72-test_32.patch Patch8: cppcheck-2.2-translations.patch Patch10: cppcheck-2.8-kate.patch BuildRequires: gcc-c++ BuildRequires: qt5-base-devel qt5-tools-devel qt5-charts-devel BuildRequires: cmake BuildRequires: ctest BuildRequires: docbook-style-xsl libpcre-devel xsltproc BuildRequires: libtinyxml2-devel BuildRequires(pre): rpm-build-python3 BuildRequires(pre): rpm-macros-cmake # cppcheck-suppress missingReturn, we do the same here %add_optflags -Wno-error=return-type %add_python3_req_skip cppcheckdata misra_9 cppcheck %description Static analysis of C/C++ code. Checks for: memory leaks, mismatching allocation-deallocation, buffer overrun, and many more. The goal is 0%% false positives. %package gui Summary: Qt version of %name, %summary Group: Development/Tools Requires: %name = %EVR Requires: icon-theme-hicolor %description gui %summary %prep %setup %__subst 's|/usr/share/sgml/docbook/stylesheet/xsl/nwalsh/manpages/docbook.xsl|/usr/share/xml/docbook/xsl-stylesheets/manpages/docbook.xsl|' \ Makefile man/cppcheck.1.xml tools/dmake.cpp %patch2 -p1 %ifnarch x86_64 %patch4 -p1 %endif %patch8 -p1 %patch10 -p1 %__subst 's|/usr/bin/env python.*$|%__python3|' htmlreport/{cppcheck-htmlreport,*.py} addons/*.py tools/*.py %ifarch %e2k # strip UTF-8 BOM for lcc < 1.24 find -type f -name '*.cpp' -o -name '*.hpp' -o -name '*.c' -o -name '*.h' | xargs -r sed -ri 's,^\xEF\xBB\xBF,,' %endif # Make sure bundled tinyxml2 is not used rm -rv externals/tinyxml2 %build %cmake \ -G'Unix Makefiles' \ -DCMAKE_BUILD_TYPE=Release \ -DUSE_MATCHCOMPILER:BOOL=ON \ -DUSE_BUNDLED_TINYXML2=OFF \ -DHAVE_RULES:BOOL=ON \ -DBUILD_GUI:BOOL=ON \ -DBUILD_SHARED_LIBS:BOOL=OFF \ -DBUILD_TESTS:BOOL=ON \ -DFILESDIR=%{_datadir}/Cppcheck \ -DPCRE_INCLUDE="%_includedir/pcre" \ %nil %cmake_build %make man # Generate html documentation for N in man/*.docbook; do xsltproc -o ${N%%.docbook}.html \ /usr/share/xml/docbook/xsl-stylesheets/xhtml/docbook.xsl $N done %install %cmakeinstall_std install -pD -m 644 %name.1 %buildroot%_man1dir/%name.1 # Install htmlreport install -pD -m 755 htmlreport/cppcheck-htmlreport %buildroot%_bindir/cppcheck-htmlreport # Restore execute permission of python files grep -l "#\!%__python3" %buildroot%_datadir/Cppcheck/addons/*.py | xargs chmod +x %check #cmake_build --target check %files %doc readme.txt man/*.html %_bindir/%name %_bindir/%name-htmlreport %_man1dir/%name.1* %dir %_datadir/Cppcheck/ %_datadir/Cppcheck/addons/ %_datadir/Cppcheck/cfg/ %_datadir/Cppcheck/platforms/ %files gui %doc gui/help/manual.html %_bindir/%name-gui %_datadir/Cppcheck/lang %_desktopdir/* %_iconsdir/hicolor/*/apps/* %changelog * Fri Feb 23 2024 Hihin Ruslan <ruslandh@altlinux.ru> 2.13.3-alt1 - Version 2.13.3 * Sun Feb 04 2024 Hihin Ruslan <ruslandh@altlinux.ru> 2.13.2-alt1 - Version 2.13.2 * Sun Jan 07 2024 Hihin Ruslan <ruslandh@altlinux.ru> 2.13.0-alt1 - Version 2.13.0 * Thu Nov 23 2023 Hihin Ruslan <ruslandh@altlinux.ru> 2.12.1-alt1 - Version 2.12.1 * Mon Sep 18 2023 Hihin Ruslan <ruslandh@altlinux.ru> 2.12.0-alt1 - New Version * Sat Aug 05 2023 Vitaly Lipatov <lav@altlinux.ru> 2.11.1-alt1 - NMU: new version 2.11.1 (with rpmrb script) - really build with external libtinyxml2 - build with -Wno-error=return-type * Sun Mar 12 2023 Hihin Ruslan <ruslandh@altlinux.ru> 2.10.2-alt1 - New Version * Sun Feb 12 2023 Hihin Ruslan <ruslandh@altlinux.ru> 2.10.0-alt1 - New Version * Mon Jan 23 2023 Hihin Ruslan <ruslandh@altlinux.ru> 2.9.3-alt1 - Version 2.9.3 * Sat Oct 01 2022 Hihin Ruslan <ruslandh@altlinux.ru> 2.9.0-alt1 - Version 2.9 * Mon Aug 01 2022 Hihin Ruslan <ruslandh@altlinux.ru> 2.8.2-alt1 - Version 2.8.2 * Sun May 22 2022 Hihin Ruslan <ruslandh@altlinux.ru> 2.8-alt2 - Add cppcheck-2.8-kate.patch * Sat May 21 2022 Andrew A. Vasilyev <andy@altlinux.org> 2.8-alt1 - 2.8 * Mon Apr 18 2022 Hihin Ruslan <ruslandh@altlinux.ru> 2.7.5-alt1 - 2.7.5 * Fri Mar 25 2022 Andrew A. Vasilyev <andy@altlinux.org> 2.7.4-alt1 - 2.7.4 * Mon Mar 21 2022 Andrew A. Vasilyev <andy@altlinux.org> 2.7.3-alt1 - 2.7.3 * Sat Mar 12 2022 Andrew A. Vasilyev <andy@altlinux.org> 2.7.1-alt1 - 2.7.1 * Sat Feb 05 2022 Andrew A. Vasilyev <andy@altlinux.org> 2.7-alt1 - 2.7 * Fri Dec 17 2021 Andrew A. Vasilyev <andy@altlinux.org> 2.6.3-alt1 - 2.6.3 * Tue Nov 23 2021 Andrew A. Vasilyev <andy@altlinux.org> 2.6.2-alt1 - 2.6.2 * Mon Oct 25 2021 Andrew A. Vasilyev <andy@altlinux.org> 2.6.1-alt1 - 2.6.1 * Thu Oct 07 2021 Andrew A. Vasilyev <andy@altlinux.org> 2.6-alt1 - 2.6 * Mon May 31 2021 Arseny Maslennikov <arseny@altlinux.org> 2.2-alt1.1 - NMU: spec: adapted to new cmake macros. * Thu Oct 08 2020 Anton Farygin <rider@altlinux.ru> 2.2-alt1 - 2.2 - cleanup spec * Sat Jan 25 2020 Vitaly Lipatov <lav@altlinux.ru> 1.90-alt1 - NMU: new version 1.90 (with rpmrb script) - cleanup build, switch to python3 * Sat Aug 31 2019 Michael Shigorin <mike@altlinux.org> 1.88-alt2 - E2K: strip UTF-8 BOM for lcc < 1.24 * Wed Aug 07 2019 Aleksei Nikiforov <darktemplar@altlinux.org> 1.88-alt1 - Updated to upstream version 1.88. * Thu Jan 25 2018 Hihin Ruslan <ruslandh@altlinux.ru> 1.82-alt1_git_de7aa8f.1 - Fix cppcheck-1.82-appPath.patch * Thu Jan 18 2018 Hihin Ruslan <ruslandh@altlinux.ru> 1.82-alt1_git_de7aa8f - Update from git commit de7aa8f5134a4b666ce642f3108ae3121f77905b * Sun Aug 20 2017 Hihin Ruslan <ruslandh@altlinux.ru> 1.80-alt1 - Version 1.80 * Sat May 27 2017 Hihin Ruslan <ruslandh@altlinux.ru> 1.79-alt1.1 - Version 1.79 * Fri May 19 2017 Fr. Br. George <george@altlinux.ru> 1.79-alt1 - Autobuild version bump to 1.79 * Thu Apr 27 2017 Hihin Ruslan <ruslandh@altlinux.ru> 1.78-alt1 - Version 1.78 * Wed Mar 08 2017 Hihin Ruslan <ruslandh@altlinux.ru> 1.77-alt1 - Version 1.77 * Mon Oct 31 2016 Fr. Br. George <george@altlinux.ru> 1.76.1-alt1 - Autobuild version bump to 1.76.1 * Tue Oct 18 2016 Hihin Ruslan <ruslandh@altlinux.ru> 1.76-alt1.1 - Version 1.76.1 * Sun Oct 09 2016 Hihin Ruslan <ruslandh@altlinux.ru> 1.76-alt1 - Version 1.76 * Sat Aug 13 2016 Hihin Ruslan <ruslandh@altlinux.ru> 1.75-alt1 - Version 1.75 * Wed Jul 20 2016 Hihin Ruslan <ruslandh@altlinux.ru> 1.74-alt1.3eef - Update from git://github.com/danmar/cppcheck.git * Sat Jun 11 2016 Hihin Ruslan <ruslandh@altlinux.ru> 1.74-alt1 - Version 1.74 * Thu Feb 25 2016 Hihin Ruslan <ruslandh@altlinux.ru> 1.72-alt1 - Version 1.72 * Sat Nov 21 2015 Hihin Ruslan <ruslandh@altlinux.ru> 1.71-alt2 - Fix Version in help * Wed Nov 18 2015 Fr. Br. George <george@altlinux.ru> 1.71-alt1 - Autobuild version bump to 1.71 * Sun Nov 01 2015 Hihin Ruslan <ruslandh@altlinux.ru> 1.70-alt1 - Version 1.70 * Tue Jul 14 2015 Fr. Br. George <george@altlinux.ru> 1.69-alt1 - Autobuild version bump to 1.69 * Wed Jan 28 2015 Fr. Br. George <george@altlinux.ru> 1.68-alt1 - Autobuild version bump to 1.68 * Tue Nov 25 2014 Fr. Br. George <george@altlinux.ru> 1.67-alt1 - Autobuild version bump to 1.67 - Package config file - Build Qt GUI and package separately * Wed May 28 2014 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.65-alt1 - Version 1.65 * Mon Nov 11 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.62-alt1 - Version 1.62 * Tue Jun 18 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.60.1-alt1 - Version 1.60.1 * Fri Feb 01 2013 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.58-alt1 - Version 1.58 * Tue Jul 17 2012 Eugeny A. Rostovtsev (REAL) <real at altlinux.org> 1.55-alt1 - Version 1.55 * Sat Sep 17 2011 Slava Semushin <php-coder@altlinux.ru> 1.50-alt1 - Updated to 1.50 * Fri May 06 2011 Slava Semushin <php-coder@altlinux.ru> 1.48-alt1 - Updated to 1.48 - I not maintain this package any more * Thu Feb 10 2011 Slava Semushin <php-coder@altlinux.ru> 1.47-alt1 - Updated to 1.47 * Wed Dec 29 2010 Slava Semushin <php-coder@altlinux.ru> 1.46.1-alt1 - Updated to 1.46.1 * Sat Oct 30 2010 Slava Semushin <php-coder@altlinux.ru> 1.45-alt1 - Updated to 1.45 * Fri Jul 16 2010 Slava Semushin <php-coder@altlinux.ru> 1.44-alt1 - Updated to 1.44 * Mon May 10 2010 Slava Semushin <php-coder@altlinux.ru> 1.43-alt1 - Updated to 1.43 * Thu Mar 11 2010 Slava Semushin <php-coder@altlinux.ru> 1.42-alt1 - Updated to 1.42 * Sun Jan 17 2010 Slava Semushin <php-coder@altlinux.ru> 1.40-alt1 - Updated to 1.40 * Sat Dec 12 2009 Slava Semushin <php-coder@altlinux.ru> 1.39-alt1 - Updated to 1.39 - Include manual.html to documentation * Sat Oct 31 2009 Slava Semushin <php-coder@altlinux.ru> 1.38-alt1 - Updated to 1.38 - Moved "make test" to %%check section * Wed Sep 23 2009 Slava Semushin <php-coder@altlinux.ru> 1.37-alt1 - Updated to 1.37 * Sun Aug 16 2009 Slava Semushin <php-coder@altlinux.ru> 1.35-alt1 - Updated to 1.35 * Sun Jul 12 2009 Slava Semushin <php-coder@altlinux.ru> 1.34-alt1 - Updated to 1.34 * Wed Jun 10 2009 Slava Semushin <php-coder@altlinux.ru> 1.33-alt1 - Updated to 1.33 - Run test suite during build * Mon May 11 2009 Slava Semushin <php-coder@altlinux.ru> 1.32-alt1 - Updated to 1.32 * Tue May 05 2009 Slava Semushin <php-coder@altlinux.ru> 1.31-alt1 - Initial build for ALT Linux |