Blame SPECS/cppcheck.spec

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