Use %bcond_without vala instead
OBS-URL: https://build.opensuse.org/package/show/KDE:Frameworks5/AppStream?expand=0&rev=68
This commit is contained in:
parent
940db3ae8b
commit
6e5cf46ba3
@ -16,6 +16,9 @@
|
|||||||
#
|
#
|
||||||
|
|
||||||
|
|
||||||
|
%if 0%{?sle_version} >= 150300 && 0%{?is_opensuse} || 0%{?suse_version} > 1500
|
||||||
|
%bcond_without vala
|
||||||
|
%endif
|
||||||
%define libappstream_sover 4
|
%define libappstream_sover 4
|
||||||
%define libAppStreamQt_sover 2
|
%define libAppStreamQt_sover 2
|
||||||
Name: AppStream
|
Name: AppStream
|
||||||
@ -33,7 +36,9 @@ BuildRequires: gettext
|
|||||||
BuildRequires: gperf
|
BuildRequires: gperf
|
||||||
BuildRequires: lmdb-devel
|
BuildRequires: lmdb-devel
|
||||||
BuildRequires: meson >= 0.48
|
BuildRequires: meson >= 0.48
|
||||||
|
%if %{with vala}
|
||||||
BuildRequires: vala
|
BuildRequires: vala
|
||||||
|
%endif
|
||||||
BuildRequires: pkgconfig
|
BuildRequires: pkgconfig
|
||||||
BuildRequires: xsltproc
|
BuildRequires: xsltproc
|
||||||
BuildRequires: pkgconfig(Qt5Core)
|
BuildRequires: pkgconfig(Qt5Core)
|
||||||
@ -115,7 +120,7 @@ GObject introspection bindings for interfaces provided by AppStream.
|
|||||||
|
|
||||||
%build
|
%build
|
||||||
%meson -Dqt=true \
|
%meson -Dqt=true \
|
||||||
%if 0%{?sle_version} >= 150300 && 0%{?is_opensuse} || 0%{?suse_version} > 1500
|
%if %{with vala}
|
||||||
-Dvapi=true \
|
-Dvapi=true \
|
||||||
%else
|
%else
|
||||||
-Dvapi=false \
|
-Dvapi=false \
|
||||||
@ -174,7 +179,7 @@ appstreamcli refresh --force || true
|
|||||||
%{_includedir}/appstream/
|
%{_includedir}/appstream/
|
||||||
%{_datadir}/gir-1.0/AppStream-1.0.gir
|
%{_datadir}/gir-1.0/AppStream-1.0.gir
|
||||||
%{_datadir}/gettext/
|
%{_datadir}/gettext/
|
||||||
%if 0%{?sle_version} >= 150300 && 0%{?is_opensuse} || 0%{?suse_version} > 1500
|
%if %{with vala}
|
||||||
%dir %{_datadir}/vala/
|
%dir %{_datadir}/vala/
|
||||||
%dir %{_datadir}/vala/vapi/
|
%dir %{_datadir}/vala/vapi/
|
||||||
%{_datadir}/vala/vapi/appstream.deps
|
%{_datadir}/vala/vapi/appstream.deps
|
||||||
|
Loading…
Reference in New Issue
Block a user