File kdevelop-pg-qt.spec of Package kdevelop-pg-qt

#
# spec file for package kdevelop-pg-qt
#
# Copyright (c) 2024 SUSE LLC
#
# 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/
#


%define kf6_version 6.0.0
%define qt6_version 6.6.0

%bcond_without released
Name:           kdevelop-pg-qt
Version:        2.4.0
Release:        0
Summary:        Parser generator for Qt/KDE based applications
License:        LGPL-2.0-or-later
URL:            https://www.kdevelop.org
Source0:        https://download.kde.org/stable/kdevelop-pg-qt/%{version}/src/%{name}-%{version}.tar.xz
%if %{with released}
Source1:        https://download.kde.org/stable/kdevelop-pg-qt/%{version}/src/%{name}-%{version}.tar.xz.sig
Source2:        kdevelop-pg-qt.keyring
%endif
Source99:       kdevelop-pg-qt-rpmlintrc
BuildRequires:  bison
BuildRequires:  kf6-extra-cmake-modules >= %{kf6_version}
BuildRequires:  flex
BuildRequires:  cmake(Qt6Core) >= %{qt6_version}
BuildRequires:  cmake(Qt6Test) >= %{qt6_version}
Provides:       kdevelop5-pg-qt = %{version}
Obsoletes:      kdevelop5-pg-qt < %{version}
Conflicts:      kdevelop4-pg-qt

%description
KDevelop-PG-Qt is a parser generator written in readable source-code and
generating readable source-code. Its syntax was inspirated by AntLR. It
implements the visitor-pattern and uses the Qt library. That is why it is
ideal to be used in Qt/KDE-based applications like KDevelop.

%prep
%autosetup -p1

%build
%cmake_kf6

%kf6_build

%install
%kf6_install

%files
%license LICENSES/*
%{_includedir}/KDevelopPGQt/
%{_kf6_bindir}/kdev-pg-qt
%{_kf6_cmakedir}/KDevelop-PG-Qt/
%{_kf6_cmakedir}/KDevelopPGQt/

%changelog
openSUSE Build Service is sponsored by