Blame SPECS/cppcheck.spec

89e02f
Name:           cppcheck
89e02f
Version:        2.4
89e02f
Release:        1%{?dist}
89e02f
Summary:        Tool for static C/C++ code analysis
89e02f
Group:          Development/Languages
89e02f
License:        GPLv3+
89e02f
URL:            http://cppcheck.wiki.sourceforge.net/
89e02f
Source0:        https://downloads.sourceforge.net/project/%{name}/%{name}/%{version}/%{name}-%{version}.tar.bz2
89e02f
89e02f
BuildRequires:  gcc-c++
89e02f
BuildRequires:  pcre-devel
89e02f
BuildRequires:  tinyxml2-devel >= 2.6.0
89e02f
BuildRequires:  docbook-style-xsl
89e02f
BuildRequires:  libxslt
89e02f
BuildRequires:  pandoc
89e02f
BuildRequires:  qt5-devel
89e02f
BuildRequires:  cmake
89e02f
BuildRequires:  desktop-file-utils
89e02f
89e02f
%description
89e02f
Cppcheck is a static analysis tool for C/C++ code. Unlike C/C++
89e02f
compilers and many other analysis tools it does not detect syntax
89e02f
errors in the code. Cppcheck primarily detects the types of bugs that
89e02f
the compilers normally do not detect. The goal is to detect only real
89e02f
errors in the code (i.e. have zero false positives).
89e02f
89e02f
%package gui
89e02f
Summary:        Graphical user interface for cppcheck
89e02f
Group:          Applications/Engineering
89e02f
Requires:       %{name}%{?_isa} = %{version}-%{release}
89e02f
89e02f
%description gui
89e02f
This package contains the graphical user interface for cppcheck.
89e02f
89e02f
89e02f
%prep
89e02f
%setup -q
89e02f
89e02f
%build
89e02f
# Manuals
89e02f
make DB2MAN=%{_datadir}/sgml/docbook/xsl-stylesheets/manpages/docbook.xsl man
89e02f
man/build-html.sh man/manual
89e02f
89e02f
# Binaries
89e02f
mkdir objdir-%{_target_platform}
89e02f
cd objdir-%{_target_platform}
89e02f
# Upstream doesn't support shared libraries (unversioned solib)
89e02f
%cmake .. -DCMAKE_BUILD_TYPE=Release -DHAVE_RULES=1 -DBUILD_GUI=1 -DBUILD_SHARED_LIBS:BOOL=OFF -DBUILD_TESTS=1 -DCFGDIR=%{_datadir}/CppCheck
89e02f
# SMP make doesn't seem to work
89e02f
make cppcheck
89e02f
89e02f
%install
89e02f
rm -rf %{buildroot}
89e02f
make -C objdir-%{_target_platform} DESTDIR=%{buildroot} install
89e02f
install -D -p -m 644 cppcheck.1 %{buildroot}%{_mandir}/man1/cppcheck.1
89e02f
89e02f
# Install desktop file
89e02f
desktop-file-validate %{buildroot}%{_datadir}/applications/cppcheck-gui.desktop
89e02f
# Install logo
89e02f
install -D -p -m 644 gui/cppcheck-gui.png %{buildroot}%{_datadir}/pixmaps/cppcheck-gui.png
89e02f
89e02f
%check
89e02f
cd objdir-%{_target_platform}/bin
89e02f
./testrunner -g -q
89e02f
89e02f
%files
89e02f
%doc AUTHORS COPYING man/manual.html
89e02f
%{_datadir}/Cppcheck/
89e02f
%{_bindir}/cppcheck
89e02f
%{_bindir}/cppcheck*.qm
89e02f
%{_mandir}/man1/cppcheck.1*
89e02f
89e02f
%files gui
89e02f
%{_bindir}/cppcheck-gui
89e02f
%{_datadir}/applications/cppcheck-gui.desktop
89e02f
%{_datadir}/pixmaps/cppcheck-gui.png
89e02f
%{_datadir}/icons/hicolor/64x64/apps/cppcheck-gui.png
89e02f
%{_datadir}/icons/hicolor/scalable/apps/cppcheck-gui.svg
89e02f
89e02f
89e02f
%changelog
89e02f
* Wed Jun 16 2021 Dodji Seketeli <dodji@redhat.com> - 2.4-1
89e02f
- Update to 2.4 upstream tarball
89e02f
- Drop patches: cppcheck-1.83-tinyxml.patch, cppcheck-1.81-translations.patch, cppcheck-1.78-cfgdir.patch.
89e02f
- Bump BuildRequires for tinyxml2-devel to 2.6.0 at least.
89e02f
- Add BuildRequires pandoc.
89e02f
- There is no more bundled tinyxml in this new version of cppcheck.
89e02f
- Use the man/build-html.sh script to build the html version of the manual
89e02f
- Adjust $datadir/CppCheck to $datadir/Cppcheck.
89e02f
- Add $bindir/cppcheck*.qm files to the package.
89e02f
- Resolves: rhbz#1959478
89e02f
89e02f
* Sat Apr 14 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.83-1
89e02f
- Update to 1.83.
89e02f
89e02f
* Wed Feb 28 2018 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.81-5
89e02f
- Added gcc-c++ buildrequires.
89e02f
89e02f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.81-4
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
89e02f
89e02f
* Tue Jan 23 2018 Björn Esser <besser82@fedoraproject.org> - 1.81-3
89e02f
- Rebuilt for tinyxml2 soname/ABI change again
89e02f
89e02f
* Tue Jan 23 2018 François Cami <fcami@fedoraproject.org> - 1.81-2
89e02f
- Rebuilt for tinyxml2 soname/ABI change
89e02f
89e02f
* Wed Oct 18 2017 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.81-1
89e02f
- Update to 1.81.
89e02f
89e02f
* Tue Aug 01 2017 Gwyn Ciesla <limburgher@gmail.com> - 1.80-1
89e02f
- 1.80
89e02f
89e02f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.79-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
89e02f
89e02f
* Wed May 17 2017 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.79-1
89e02f
- Update to 1.79.
89e02f
89e02f
* Sun Apr 09 2017 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.78-1
89e02f
- Make cppcheck able to find its configs once again (bug 1427788).
89e02f
- Update to 1.78.
89e02f
89e02f
* Mon Feb 27 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.77-4
89e02f
- Remove Patch2: fixed in gcc side (gcc-7.0.1-10.fc26)
89e02f
  (ref: bug 1423312)
89e02f
89e02f
* Fri Feb 17 2017 Mamoru TASAKA <mtasaka@fedoraproject.org> - 1.77-3
89e02f
- Fix FTBFS with gcc7 (bug 1423312, upstream ticket 7910)
89e02f
89e02f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.77-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
89e02f
89e02f
* Tue Jan 31 2017 Jon Ciesla <limburgher@gmail.com> - 1.77-1
89e02f
- 1.77.
89e02f
89e02f
* Mon Aug 08 2016 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.75-1
89e02f
- Update to 1.75.
89e02f
89e02f
* Tue Aug 02 2016 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.74-2
89e02f
- Re-enable tests on x86.
89e02f
89e02f
* Mon Aug 01 2016 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.74-1
89e02f
- Update to 1.74.
89e02f
89e02f
* Sun May 22 2016 Rich Mattes <richmattes@gmail.com> - 1.73-2
89e02f
- Rebuild for tinyxml2-3.0.0
89e02f
89e02f
* Sat Apr 09 2016 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.73-1
89e02f
- Update to 1.73.
89e02f
89e02f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.71-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
89e02f
89e02f
* Sat Nov 14 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.71-1
89e02f
- Update to 1.71.
89e02f
89e02f
* Fri Nov 13 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.70-4
89e02f
- Link whole archive (BZ #1280242), patch by Mamoru Tasaka.
89e02f
- Compile and run tests using CMake.
89e02f
89e02f
* Wed Nov 11 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.70-3
89e02f
- Enable HAVE_RULES.
89e02f
89e02f
* Thu Nov 5 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.70-2
89e02f
- Include GUI (BZ #1278318).
89e02f
89e02f
* Mon Sep 21 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.70-1
89e02f
- Update to 1.70.
89e02f
89e02f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.68-3
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
89e02f
89e02f
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 1.68-2
89e02f
- Rebuilt for GCC 5 C++11 ABI change
89e02f
89e02f
* Sat Jan 03 2015 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.68-1
89e02f
- Update to 1.68.
89e02f
89e02f
* Mon Dec 01 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.67-1
89e02f
- Update to 1.67.
89e02f
89e02f
* Sat Aug 23 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.66-1
89e02f
- Update to 1.66.
89e02f
89e02f
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.65-3
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
89e02f
89e02f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.65-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
89e02f
89e02f
* Tue May 13 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.65-1
89e02f
- Update to 1.65.
89e02f
89e02f
* Wed Jan 22 2014 François Cami <fcami@fedoraproject.org> - 1.63-3
89e02f
- Add HAVE_RULES=yes (#1056733).
89e02f
89e02f
* Tue Jan 07 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.63-2
89e02f
- Include cfg files as well.
89e02f
89e02f
* Tue Jan 07 2014 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.63-1
89e02f
- Update to 1.63.
89e02f
89e02f
* Sun Oct 13 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.62-1
89e02f
- Update to 1.62.
89e02f
89e02f
* Sat Aug 10 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.61-1
89e02f
- Update to 1.61.
89e02f
89e02f
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.60.1-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
89e02f
89e02f
* Mon Jun 03 2013 François Cami <fcami@fedoraproject.org> - 1.60.1-1
89e02f
- Update to 1.60.1.
89e02f
89e02f
* Mon Apr 01 2013 Susi Lehtola <jussilehtola@fedoraproject.org> - 1.59-1
89e02f
- Update to 1.59.
89e02f
89e02f
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.58-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
89e02f
89e02f
* Sun Jan 13 2013 François Cami <fcami@fedoraproject.org> - 1.58-1
89e02f
- Update to 1.58.
89e02f
89e02f
* Tue Sep 18 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.57-1
89e02f
- Update to 1.57.
89e02f
89e02f
* Tue Sep 18 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.56-1
89e02f
- Update to 1.56.
89e02f
89e02f
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.55-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
89e02f
89e02f
* Tue Jul 10 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.55-1
89e02f
- Update to 1.55.
89e02f
89e02f
* Sun Apr 15 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.54-1
89e02f
- Update to 1.54.
89e02f
89e02f
* Sat Feb 11 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.53-1
89e02f
- Update to 1.53.
89e02f
89e02f
* Thu Jan 05 2012 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-2
89e02f
- Add missing includes (fix FTBFS in rawhide).
89e02f
89e02f
* Sun Dec 11 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.52-1
89e02f
- Update to 1.52.
89e02f
89e02f
* Wed Oct 26 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.51-2
89e02f
- Include man page and more other docs.
89e02f
- Build with $RPM_LD_FLAGS.
89e02f
- Improve summary and description.
89e02f
89e02f
* Sun Oct 09 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.51-1
89e02f
- Update to 1.51.
89e02f
89e02f
* Fri Aug 19 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-2
89e02f
- Fix build on EPEL-4.
89e02f
89e02f
* Sun Aug 14 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.50-1
89e02f
- Update to 1.50.
89e02f
89e02f
* Mon Jun 13 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.49-1
89e02f
- Update to 1.49.
89e02f
89e02f
* Sat Apr 30 2011 Ville Skyttä <ville.skytta@iki.fi> - 1.48-2
89e02f
- Build with system tinyxml and support for rules.
89e02f
- Run test suite during build, don't include its sources in docs.
89e02f
- Drop readme.txt from docs, it doesn't contain useful info after installed.
89e02f
89e02f
* Fri Apr 15 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.48-1
89e02f
- Update to 1.48.
89e02f
89e02f
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.47-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
89e02f
89e02f
* Mon Feb 07 2011 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.47-1
89e02f
- Update to 1.47.
89e02f
89e02f
* Thu Dec 30 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46.1-1
89e02f
- Update to 1.46.1.
89e02f
89e02f
* Wed Dec 15 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.46-1
89e02f
- Update to 1.46.
89e02f
89e02f
* Mon Oct 4 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.45-1
89e02f
- Update to 1.45.
89e02f
89e02f
* Sat Jul 24 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.44-1
89e02f
- Update to 1.44.
89e02f
89e02f
* Sun May 9 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.43-1
89e02f
- Update to 1.43.
89e02f
89e02f
* Wed Mar 10 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.42-1
89e02f
- Update to 1.42.
89e02f
89e02f
* Mon Jan 18 2010 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.40-1
89e02f
- Update to 1.40.
89e02f
89e02f
* Sun Dec 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.39-1
89e02f
- Update to 1.39.
89e02f
89e02f
* Sat Nov 07 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.38-1
89e02f
- Update to 1.38.
89e02f
89e02f
* Tue Sep 22 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.36-1
89e02f
- Update to 1.36.
89e02f
89e02f
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.34-2
89e02f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
89e02f
89e02f
* Thu Jul 16 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.34-1
89e02f
- Update to 1.34.
89e02f
89e02f
* Mon Apr 27 2009 Jussi Lehtola <jussilehtola@fedoraproject.org> - 1.31-1
89e02f
- First release.