Summary: Utilities to generate, maintain and access the AppStream Xapian database Name: appstream Version: 0.6.2 Release: 5%{?dist} # lib LGPLv3+, tools GPLv3+ License: GPLv3+ and LGPLv3+ URL: http://www.freedesktop.org/wiki/Distributions/AppStream/Software Source0: http://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.gz ## upstream patches Patch55: 0055-Fix-issue-when-loading-compressed-metadata-files.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(packagekit-plugin) BuildRequires: xapian-core-devel BuildRequires: xmlto %description AppStream-Core makes it easy to access application information from the AppStream database over a nice GObject-based interface. It uses a PackageKit plugin to automatically (re)generate the AppStream Xapian database of applications. %package devel Summary: Development files for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} %description 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} -DTESTS:BOOL=ON -DVAPI:BOOL=ON .. popd # parallel build currently fails make -j1 -C %{_target_platform} %install 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 %check # all/many tests currently fail, make non-fatal for now make test -C %{_target_platform} ARGS="--output-on-failure --timeout 300" ||: ## include this scriptlet *somewhere*, but only if it is safe and ## won't hang or take a long time, see ## https://bugzilla.redhat.com/1098306 %{_bindir}/appstream-index --refresh --force >& /dev/null ||: %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %files %doc AUTHORS %doc LICENSE.GPLv3 LICENSE.LGPLv3 %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.6.typelib %{_libdir}/libappstream.so.0* %dir %{_libdir}/packagekit-plugins %{_libdir}/packagekit-plugins/libpk_plugin_appstream.so %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.6.gir %files vala %{_datadir}/vala/vapi/appstream.vapi %changelog * 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