From dd1d8335e57f63864fd980d8de12dac237bdbc61 Mon Sep 17 00:00:00 2001 From: Rex Dieter Date: Wed, 20 Aug 2014 10:54:27 -0500 Subject: [PATCH] enable Qt bindings support --- appstream.spec | 39 ++++++++++++++++++++++++++++++++++++--- 1 file changed, 36 insertions(+), 3 deletions(-) diff --git a/appstream.spec b/appstream.spec index a027ab5..39bc716 100644 --- a/appstream.spec +++ b/appstream.spec @@ -2,7 +2,7 @@ Summary: Utilities to generate, maintain and access the AppStream Xapian database Name: appstream Version: 0.7.0 -Release: 3%{?dist} +Release: 4%{?dist} # lib LGPLv2+, tools GPLv2+ License: GPLv2+ and LGPLv2+ @@ -21,6 +21,7 @@ BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(packagekit-glib2) BuildRequires: pkgconfig(packagekit-plugin) +BuildRequires: pkgconfig(QtCore) BuildRequires: xapian-core-devel BuildRequires: xmlto @@ -38,6 +39,20 @@ Requires: %{name}%{?_isa} = %{version}-%{release} %description devel %{summary}. +%package qt +Summary: Qt bindings for %{name} +Requires: %{name}%{?_isa} = %{version}-%{release} +%description qt +%{summary}. + +%package qt-devel +Summary: Development files for %{name}-qt bindings +Requires: %{name}-qt%{?_isa} = %{version}-%{release} +# until when/if this grows pkgconfig support and the dep is handled automatically +Requires: pkgconfig(QtCore) +%description qt-devel +%{summary}. + %package vala Summary: Vala bindings for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} @@ -54,8 +69,11 @@ Requires: vala %build mkdir -p %{_target_platform} pushd %{_target_platform} -%{cmake} -DTESTS:BOOL=ON -DVAPI:BOOL=ON .. - +%{cmake} \ + -DQT:BOOL=ON \ + -DTESTS:BOOL=ON \ + -DVAPI:BOOL=ON \ + .. popd # parallel build currently fails @@ -116,11 +134,26 @@ make test -C %{_target_platform} ARGS="--output-on-failure --timeout 300" ||: %dir %{_datadir}/gir-1.0 %{_datadir}/gir-1.0/Appstream-0.7.gir + +%post qt -p /sbin/ldconfig +%postun qt -p /sbin/ldconfig + +%files qt +/usr/lib64/libAppstreamQt.so.0* + +%files qt-devel +%{_includedir}/AppstreamQt/ +%{_libdir}/cmake/AppstreamQt/ +%{_libdir}/libAppstreamQt.so + %files vala %{_datadir}/vala/vapi/appstream.vapi %changelog +* Wed Aug 20 2014 Rex Dieter 0.7.0-4 +- enable Qt bindings support + * Fri Aug 15 2014 Fedora Release Engineering - 0.7.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild