enable Qt bindings support

This commit is contained in:
Rex Dieter 2014-08-20 10:54:27 -05:00
parent ec0b67365b
commit dd1d8335e5

View File

@ -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 <rdieter@fedoraproject.org> 0.7.0-4
- enable Qt bindings support
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.7.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild