b116427
b116427
Name:           clazy
b116427
Summary:        Qt oriented code checker based on clang framework
6a87bbf
Version:        1.5
6a87bbf
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
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
b116427
b116427
%build
b116427
mkdir %{_target_platform}
b116427
pushd %{_target_platform}
b116427
%{cmake} ..
b116427
popd
b116427
b116427
make %{?_smp_mflags} -C %{_target_platform}
b116427
b116427
b116427
%install
b116427
make install/fast DESTDIR=%{buildroot} -C %{_target_platform}
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
b116427
b116427
b116427
%changelog
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