Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.1
clazy
clazy.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File clazy.spec of Package clazy
# # spec file for package clazy # # Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via https://bugs.opensuse.org/ # Name: clazy Version: 1.5 Release: 0 Summary: Qt oriented code checker based on the Clang framework License: LGPL-2.0-or-later Group: Development/Tools/Other URL: https://www.kdab.com/clazy-video/ Source0: https://download.kde.org/stable/%{name}/%{version}/src/%{name}-%{version}.tar.xz BuildRequires: clang BuildRequires: cmake >= 3.0 BuildRequires: libstdc++-devel BuildRequires: llvm-clang-devel >= 3.9 %if 0%{?suse_version} == 1315 BuildRequires: ncurses-devel %else BuildRequires: pkgconfig(ncurses) %endif BuildRequires: pkgconfig(zlib) %description clazy is a compiler plugin which allows Clang to understand Qt semantics. You get more than 50 Qt related compiler warnings, ranging from unneeded memory allocations to misusage of API, including fix-its for automatic refactoring. %prep %setup -q %build export CXXFLAGS="`echo %{optflags} | sed 's#-fstack-clash-protection##'`" export CFLAGS="$CXXFLAGS" # -Wl,--no-undefined causes linker errors on leap 42.3 %cmake \ %if 0%{?suse_version} == 1315 -DCMAKE_SHARED_LINKER_FLAGS="-Wl,--as-needed -Wl,-z,now" \ %endif %make_jobs %install %cmake_install sed -i 's#%{_bindir}/env sh#/bin/sh#' %{buildroot}%{_bindir}/clazy %files %license COPYING-LGPL2.txt %doc README.md HOWTO Changelog %{_bindir}/clazy %{_bindir}/clazy-standalone %doc %{_datadir}/doc/clazy %{_libdir}/ClazyPlugin.so %{_mandir}/man1/clazy.1%{?ext_man} %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor