# Qt5 support uses the same library names #global qt5 1 Summary: Utilities to generate, maintain and access the AppStream Xapian database Name: appstream Version: 0.7.2 Release: 2%{?dist} # lib LGPLv2+, tools GPLv2+ License: GPLv2+ and LGPLv2+ URL: http://www.freedesktop.org/wiki/Distributions/AppStream/Software Source0: http://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.xz ## upstream patches Patch2: 0002-Treat-the-text-plain-mimetype-equal-to-YAML-or-XML.patch Patch4: 0004-spec-Update-the-icon-cache-layout-to-allow-icons-wit.patch Patch5: 0005-Include-QMultiHash.patch ## upstreamable patches BuildRequires: cmake BuildRequires: gettext BuildRequires: intltool BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(packagekit-glib2) BuildRequires: pkgconfig(QtCore) %if 0%{?qt5} BuildRequires: pkgconfig(Qt5Core) %endif BuildRequires: pkgconfig(yaml-0.1) BuildRequires: xapian-core-devel BuildRequires: xmlto Requires: appstream-data %description AppStream-Core makes it easy to access application information from the AppStream database over a nice GObject-based interface. %package devel Summary: Development files for %{name} 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} Requires: pkgconfig(QtCore) %description qt-devel %{summary}. %package qt5 Summary: Qt bindings for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description qt5 %{summary}. %package qt5-devel Summary: Development files for %{name}-qt5 bindings Requires: %{name}-qt5%{?_isa} = %{version}-%{release} Requires: pkgconfig(Qt5Core) %description qt5-devel %{summary}. %package vala Summary: Vala bindings for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} BuildRequires: vala-tools Requires: vala %description vala %{summary}. %prep %autosetup -n AppStream-%{version} -p1 %build mkdir -p %{_target_platform} pushd %{_target_platform} %{cmake} \ -DQT:BOOL=ON -DAPPSTREAM_QT_VERSION:STRING="4"\ -DTESTS:BOOL=ON \ -DVAPI:BOOL=ON \ .. popd # parallel build currently fails make -j1 -C %{_target_platform} %if 0%{?qt5} mkdir -p %{_target_platform}-qt5 pushd %{_target_platform}-qt5 %{cmake} \ -DQT:BOOL=ON -DAPPSTREAM_QT_VERSION:STRING="5"\ -DTESTS:BOOL=ON \ -DVAPI:BOOL=ON \ .. popd make -j1 -C %{_target_platform}-qt5 %endif %install %if 0%{?qt5} make install/fast DESTDIR=%{buildroot} -C %{_target_platform}-qt5 %endif make install/fast DESTDIR=%{buildroot} -C %{_target_platform} mkdir -p %{buildroot}%{_datadir}/app-info/{icons,xmls} mkdir -p %{buildroot}/var/cache/app-info/{icons,xapian,xmls} touch %{buildroot}/var/cache/app-info/cache.watch %find_lang appstream %check # all/many tests currently fail, make non-fatal for now make test -C %{_target_platform} ARGS="--output-on-failure --timeout 300" ||: %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %posttrans %{_bindir}/appstream-index refresh --force >& /dev/null ||: %files -f appstream.lang %doc AUTHORS %doc LICENSE.GPLv2 LICENSE.LGPLv2.1 %config(noreplace) %{_sysconfdir}/appstream.conf %{_bindir}/appstream-index %{_bindir}/appstream-validate %{_mandir}/man1/appstream-validate.1* %dir %{_libdir}/girepository-1.0 %{_libdir}/girepository-1.0/Appstream-0.7.typelib %{_libdir}/libappstream.so.1* %{_libdir}/libappstream.so.%{version} %dir %{_datadir}/app-info/ %dir %{_datadir}/app-info/icons %dir %{_datadir}/app-info/xmls %{_datadir}/app-info/categories.xml %ghost /var/cache/app-info/cache.watch %dir /var/cache/app-info %dir /var/cache/app-info/icons %dir /var/cache/app-info/xapian %dir /var/cache/app-info/xmls %{_mandir}/man1/appstream-index.1* %files devel %{_includedir}/Appstream/ %{_libdir}/libappstream.so %{_libdir}/pkgconfig/appstream.pc %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 %{_libdir}/libAppstreamQt.so.0* %files qt-devel %{_includedir}/AppstreamQt/ %{_libdir}/cmake/AppstreamQt/ %{_libdir}/libAppstreamQt.so %files vala %{_datadir}/vala/vapi/appstream.vapi %changelog * Tue Sep 30 2014 Rex Dieter 0.7.2-2 - pull in some upstream fixes, fix %%posttrans scriptlet * Tue Sep 30 2014 Rex Dieter 0.7.2-1 - 0.7.2, ready qt5 support (not enabled yet) * Fri Sep 12 2014 Rex Dieter 0.7.1-1 - 0.7.1 * 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 * Tue Jul 22 2014 Kalev Lember - 0.7.0-2 - Rebuilt for gobject-introspection 1.41.4 * Wed Jul 16 2014 Rex Dieter 0.7.0-1 - 0.7.0 * Sat Jun 28 2014 Rex Dieter 0.6.2-6 - Requires: appstream-data * Sat Jun 28 2014 Rex Dieter 0.6.2-5 - backport upstream commit to fix appstream-index hang (#1098306) * Fri Jun 20 2014 Rex Dieter 0.6.2-4 - appstream-index scriptlet hanging, skip for now (#1098306) * Sat Jun 07 2014 Fedora Release Engineering - 0.6.2-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Thu May 15 2014 Rex Dieter 0.6.2-2 - update URL * Mon May 12 2014 Rex Dieter 0.6.2-1 - 0.6.2 * Sat Apr 26 2014 Rex Dieter 0.6.1-1 - Appstream-0.6.1, -vala support lives! * Sat Apr 19 2014 Rex Dieter - 0.6-1 - Appstream-0.6 - Obsoletes: appstream-vala (no longer provided) * Sun Feb 23 2014 Rex Dieter 0.5-1 - Appstream-0.5 * Fri Jan 31 2014 Rex Dieter 0.4.0-3 - rebuild (PackageKit) * Mon Nov 04 2013 Rex Dieter 0.4.0-2 - -vala subpkg - own %%{_libdir}/girepository-1.0, %%{_libdir}/packagekit-plugins (until someone better comes along) * Sun Nov 03 2013 Rex Dieter 0.4.0-1 - AppStream-0.4.0