# Vala/Vapi support ( upstream disabled by default, probably explains why it the build breaks often ) %global vala 1 Summary: Utilities to generate, maintain and access the AppStream database Name: appstream Version: 0.10.4 Release: 1%{?dist} # lib LGPLv2+, tools GPLv2+ License: GPLv2+ and LGPLv2+ #URL: http://www.freedesktop.org/wiki/Distributions/AppStream URL: https://github.com/ximion/appstream Source0: http://www.freedesktop.org/software/appstream/releases/AppStream-%{version}.tar.xz ## upstream patches (lookaside cache) ## upstreamable patches BuildRequires: cmake3 BuildRequires: gettext BuildRequires: intltool BuildRequires: itstool BuildRequires: libstemmer-devel BuildRequires: pkgconfig(gio-2.0) pkgconfig(gobject-introspection-1.0) BuildRequires: pkgconfig(libxml-2.0) BuildRequires: pkgconfig(packagekit-glib2) BuildRequires: pkgconfig(protobuf-lite) BuildRequires: pkgconfig(Qt5Core) BuildRequires: pkgconfig(yaml-0.1) BuildRequires: xmlto BuildRequires: appstream-data Requires: appstream-data %if ! 0%{?vala} Obsoletes: appstream-vala < 0.7.3 %endif %description AppStream 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: Qt5 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(Qt5Core) %description qt-devel %{summary}. %if 0%{?vala} %package vala Summary: Vala bindings for %{name} Requires: %{name}%{?_isa} = %{version}-%{release} BuildRequires: vala-tools Requires: vala %description vala %{summary}. %endif %prep %autosetup -n AppStream-%{version} -p1 %build mkdir %{_target_platform} pushd %{_target_platform} %{cmake3} .. \ -DQT:BOOL=ON \ -DTESTS:BOOL=ON \ -DVAPI:BOOL=%{?vala:ON}%{!?vala:OFF} popd make %{?_smp_mflags} -C %{_target_platform} %install make install/fast DESTDIR=%{buildroot} -C %{_target_platform} mkdir -p %{buildroot}/var/cache/app-info/{icons,gv,xmls} touch %{buildroot}/var/cache/app-info/cache.watch %find_lang appstream # move metainfo to right/legacy location, at least until our tools can handle it mkdir -p %{buildroot}%{_datadir}/appdata/ mv %{buildroot}%{_datadir}/metainfo/*.xml \ %{buildroot}%{_datadir}/appdata/ %check make test -C %{_target_platform} ARGS="--output-on-failure --timeout 300" %post -p /sbin/ldconfig %postun -p /sbin/ldconfig %posttrans %{_bindir}/appstreamcli refresh --force >& /dev/null ||: %triggerun -- appstream-data %{_bindir}/appstreamcli refresh >& /dev/null ||: %files -f appstream.lang %doc AUTHORS %{!?_licensedir:%global license %%doc} %license LICENSE.GPLv2 %license LICENSE.LGPLv2.1 %{_bindir}/appstreamcli %{_mandir}/man1/appstreamcli.1* %config(noreplace) %{_sysconfdir}/appstream.conf %dir %{_libdir}/girepository-1.0/ %{_libdir}/girepository-1.0/AppStream-1.0.typelib %{_libdir}/libappstream.so.4* %{_libdir}/libappstream.so.%{version} %{_datadir}/appdata/org.freedesktop.appstream.cli.*.xml # put in -devel? -- rex %{_datadir}/gettext/its/metainfo.* %ghost /var/cache/app-info/cache.watch %dir /var/cache/app-info/ %dir /var/cache/app-info/icons/ %dir /var/cache/app-info/gv/ %dir /var/cache/app-info/xmls/ %files devel %{_includedir}/AppStream/ %{_libdir}/libappstream.so %{_libdir}/pkgconfig/appstream.pc %dir %{_datadir}/gir-1.0/ %{_datadir}/gir-1.0/AppStream-1.0.gir %{_docdir}/appstream/html/ ## symlink pointing to ^^, but need to take care, since rpm has ## trouble replacing dirs with symlinks, omit it for now -- rex %exclude %{_datadir}/gtk-doc/html/appstream %post qt -p /sbin/ldconfig %postun qt -p /sbin/ldconfig %files qt %{_libdir}/libAppStreamQt.so.2* %{_libdir}/libAppStreamQt.so.%{version} %files qt-devel %{_includedir}/AppStreamQt/ %{_libdir}/cmake/AppStreamQt/ %{_libdir}/libAppStreamQt.so %if 0%{?vala} %files vala %{_datadir}/vala/vapi/appstream.vapi %endif %changelog * Thu Dec 15 2016 Rex Dieter - 0.10.4-1 - 0.10.4 * Tue Nov 15 2016 Rex Dieter - 0.10.3-4 - use /usr/share/appdata, improve /var/cache/app-info * Mon Nov 14 2016 Rex Dieter - 0.10.3-2 - pull in upstream crash fix * Tue Nov 01 2016 Rex Dieter - 0.10.3-1 - 0.10.3 - update scriptlets to use 'refresh' instead of 'refresh-index' * Fri Sep 30 2016 Rex Dieter - 0.10.1-3 - s|share/appstream|share/appdata/ * Sat Sep 17 2016 Rex Dieter - 0.10.1-2 - improve description, drop no-longer-used deps * Sat Sep 17 2016 Rex Dieter - 0.10.1-1 - 0.10.1 * Thu Aug 18 2016 Rex Dieter - 0.9.8-3 - pull in upstream fixes * Wed Aug 17 2016 Rex Dieter - 0.9.8-2 - (re)enable vala support (#1367892) * Fri Aug 12 2016 Rex Dieter - 0.9.8-1 - 0.9.8 * Thu May 12 2016 Rex Dieter - 0.9.6-1 - 0.9.6 * Fri Apr 08 2016 Rex Dieter - 0.9.3-1 - 0.9.3 * Wed Feb 24 2016 Rex Dieter 0.9.1-1 - 0.9.1 * Wed Feb 03 2016 Fedora Release Engineering - 0.9.0-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Sun Dec 13 2015 Rex Dieter 0.9.0-1 - 0.9.0 * Sun Dec 13 2015 Rex Dieter 0.8.6-1 - 0.8.6 * Tue Sep 29 2015 Rex Dieter 0.8.4-3 - Don't abort hitting unknown appstream tags (#1267312) * Wed Sep 09 2015 Rex Dieter 0.8.4-2 - polish scriptlets - use --force in %%post - use %%triggerun -- appstream-data (only on upgrades) - ignore errors, redirect output to /dev/null * Tue Sep 08 2015 Rex Dieter 0.8.4-1 - 0.8.4, refresh-index whenever appstream-data is updated too * Thu Sep 03 2015 Rex Dieter 0.8.3-2 - -devel: fix doc handling, omit gtk-doc symlink (for now) * Thu Sep 03 2015 Rex Dieter 0.8.3-1 - 0.8.3 * Sat Jun 27 2015 Rex Dieter 0.8.2-1 - 0.8.2 * Sat Jun 27 2015 Rex Dieter 0.8.1-1 - 0.8.1 * Wed Jun 17 2015 Fedora Release Engineering - 0.8.0-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sat May 02 2015 Kalev Lember - 0.8.0-2 - Rebuilt for GCC 5 C++11 ABI change * Wed Jan 28 2015 Rex Dieter 0.8.0-1 - 0.8.0 * Wed Jan 21 2015 Rex Dieter 0.7.6-1 - 0.7.6 * Wed Jan 21 2015 Rex Dieter 0.7.5-2 - -qt: Qt5 support (drop deprecated Qt4-based bindings) * Tue Jan 13 2015 Rex Dieter 0.7.5-1 - 0.7.5 * Mon Oct 13 2014 Rex Dieter - 0.7.3-1 - 0.7.3 - omit vala support (for now, build broken) * 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