#
# Conditional build:
%bcond_with alpm # Arch Linux PacMan support
+%bcond_with rpm5 # build with rpm5
%bcond_with stemmer # search stemmer based on libstemmer
%bcond_without static_libs # static libraries
Summary(pl.UTF-8): Obiekty GLiba i metody pomocnicze do odczytu i zapisu metadanych AppStream
Name: appstream-glib
Version: 0.7.17
-Release: 1
+Release: 2
License: LGPL v2.1+
Group: Libraries
Source0: https://people.freedesktop.org/~hughsient/appstream-glib/releases/%{name}-%{version}.tar.xz
Summary: appstream-glib API documentation
Summary(pl.UTF-8): Dokumentacja API biblioteki appstream-glib
Group: Documentation
-%if "%{_rpmversion}" >= "4.6"
-BuildArch: noarch
-%endif
+%{?noarchpackage}
%description apidocs
API documentation for appstream-glib library.
%prep
%setup -q
-%if "%(rpm -q --qf '%{V}' rpm-devel | cut -f1 -d.)" == "5"
-%patch0 -p1
-%endif
+%{?with_rpm5:%patch0 -p1}
%patch1 -p1
%if %{with static_libs}