kdevelopkdevelop-pg-qt/kdevelop-pg-qt.spec
2023-04-14 14:15:06 +08:00

69 lines
1.7 KiB
RPMSpec

%undefine __cmake_in_source_build
%define src_ver 2.2.1
Name: kdevelop-pg-qt
Summary: A parser generator
Version: 2.2.1
Release: 1
# All LGPLv2+, except for bison-generated kdev-pg-parser.{cc.h} which are GPLv2+
License: LGPLv2+ and GPLv2+ with exception
URL: http://techbase.kde.org/Development/KDevelop-PG-Qt_Introduction
Source0: http://download.kde.org/stable/kdevelop-pg-qt/%{version}/src/kdevelop-pg-qt-%{src_ver}.tar.xz
# upstream fix https://invent.kde.org/kdevelop/kdevelop-pg-qt/-/commit/0f830b2abc7763f6598f7f1a84f5af403d402a02
Patch0: upstream_Fix-linking-on-s390x.patch
BuildRequires: bison
BuildRequires: flex
BuildRequires: kf5-rpm-macros
BuildRequires: extra-cmake-modules
BuildRequires: qt5-qtbase-devel
# For AutoReq cmake-filesystem
BuildRequires: cmake
%description
KDevelop-PG-Qt is a parser generator written in readable source-code and
generating readable source-code. Its syntax was inspired 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.
%package devel
Summary: Developer files for %{name}
Requires: %{name}%{?_isa} = %{version}-%{release}
# went noarch->arch, so be careful on upgrades -- rex
Obsoletes: kdevelop-pg-qt-devel < 1.0.0-1
%description devel
%{summary}.
%prep
%autosetup -p1 -n %{name}-%{src_ver}
%build
mkdir build
pushd build
%cmake_kf5 ..
%make_build
popd
%install
pushd build
%make_install
popd
%files
%doc AUTHORS README
%license COPYING.LIB
%{_bindir}/kdev-pg-qt
%files devel
%{_includedir}/kdevelop-pg-qt/
%{_libdir}/cmake/KDevelop-PG-Qt/
%changelog
* Mon Sep 05 2022 liweiganga <liweiganga@uniontech.com> - 2.2.1-1
- init for openEuler