b116427
b116427
Name:           clazy
b116427
Summary:        Qt oriented code checker based on clang framework
7aded3c
Version:        1.7
7aded3c
Release:        1%{?dist}
b116427
License:        LGPLv2
b116427
URL:            https://cgit.kde.org/%{name}.git/
b116427
Source0:        https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz
b116427
b116427
Patch0:         clazy-no-rpath.patch
9eb863a
# https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package
7aded3c
Patch1:         0001-Link-against-libclang-cpp.so.patch
7aded3c
Patch2:         clazy-build-against-clang-11-part1.patch
7aded3c
Patch3:         clazy-build-against-clang-11-part2.patch
b116427
b116427
BuildRequires: cmake
b116427
BuildRequires: gcc-c++
b116427
BuildRequires: clang-devel llvm-devel
f8fdc24
BuildRequires: perl-podlators
b116427
f8c08b3
Requires: clang
b116427
b116427
%description
b116427
clazy is a compiler plugin which allows clang to understand Qt semantics.
b116427
You get more than 50 Qt related compiler warnings, ranging from unneeded
b116427
memory allocations to misusage of API, including fix-its for automatic
b116427
refactoring.
b116427
b116427
b116427
%prep
b116427
%setup -q -n %{name}-%{version}
b116427
b116427
%patch0 -p1 -b .clazy-no-rpath
7aded3c
%patch1 -p1 -b .libclang-cpp
7aded3c
%patch2 -p1 -b .clazy-build-against-clang-11-part1
7aded3c
%patch3 -p1 -b .clazy-build-against-clang-11-part2
b116427
b116427
%build
7aded3c
%{cmake}
b116427
7aded3c
%cmake_build
b116427
b116427
%install
7aded3c
%cmake_install
b116427
b116427
%ldconfig_scriptlets
b116427
b116427
%files
6a87bbf
%doc HOWTO
b116427
%license COPYING*
b116427
%{_bindir}/clazy
b116427
%{_bindir}/clazy-standalone
b116427
%dir %{_docdir}/clazy
b116427
%{_docdir}/clazy/*
6a87bbf
%{_mandir}/man1/clazy.1.gz
6a87bbf
%{_libdir}/ClazyPlugin.so
028dadc
%{_datadir}/metainfo/org.kde.clazy.metainfo.xml
b116427
b116427
b116427
%changelog
7aded3c
* Mon Oct 26 07:05:22 CET 2020 Jan Grulich <jgrulich@redhat.com> - 1.6-7
7aded3c
- Update 1.7
7aded3c
72ecf57
* Sat Aug 01 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-6
72ecf57
- Second attempt - Rebuilt for
72ecf57
  https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
72ecf57
cbb8e8d
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-5
cbb8e8d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
cbb8e8d
80a173c
* Thu Jul 09 2020 Jan Grulich <jgrulich@redhat.com> - 1.6-4
80a173c
- Fix build against LLVM 10
80a173c
1fce9d5
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.6-3
1fce9d5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
1fce9d5
9eb863a
* Fri Dec 13 2019 Tom Stellard <tstellar@redhat.com> - 1.6-2
9eb863a
- Link against libclang-cpp.so
9eb863a
- https://fedoraproject.org/wiki/Changes/Stop-Shipping-Individual-Component-Libraries-In-clang-lib-Package
9eb863a
6afb9e4
* Wed Oct 30 2019 Jan Grulich <jgrulich@redhat.com> - 1.6-1
6afb9e4
- 1.6
6afb9e4
aeb6c19
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.5-3
aeb6c19
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
aeb6c19
8679164
* Tue Apr 30 2019 Tom Stellard <tstellar@redhat.com> - 1.5-2
8679164
- Rebuild for clang-8.0.0
8679164
6a87bbf
* Sun Feb 03 2019 Jan Grulich <jgrulich@redhat.com> - 1.5-1
6a87bbf
- Update to 1.5
6a87bbf
2678d79
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.4-3
2678d79
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
2678d79
f8c08b3
* Mon Dec 03 2018 Jan Grulich <jgrulich@redhat.com> - 1.4-2
f8c08b3
- Require clang
f8c08b3
b116427
* Tue Oct 02 2018 Jan Grulich <jgrulich@redhat.com> - 1.4-1
b116427
- Initial version