summaryrefslogtreecommitdiff
path: root/contrib/libappstream-glib.spec.in
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2015-05-12 19:45:45 +0100
committerRichard Hughes <richard@hughsie.com>2015-05-12 19:45:48 +0100
commit8bac1fcbe127db2bb2c3e32403ba1c8fd06cb473 (patch)
treeecf8f74a530ea585fca4250f00dc0b278738981e /contrib/libappstream-glib.spec.in
parent6a27bb88ead9f9696c6e2964ca523ce55ab1e205 (diff)
downloadappstream-glib-8bac1fcbe127db2bb2c3e32403ba1c8fd06cb473.tar.gz
Version the builder plugin location
This ensures we can run the correct plugins when different builder versions are installed on the same system.
Diffstat (limited to 'contrib/libappstream-glib.spec.in')
-rw-r--r--contrib/libappstream-glib.spec.in7
1 files changed, 5 insertions, 2 deletions
diff --git a/contrib/libappstream-glib.spec.in b/contrib/libappstream-glib.spec.in
index 94d1196..7247f6f 100644
--- a/contrib/libappstream-glib.spec.in
+++ b/contrib/libappstream-glib.spec.in
@@ -37,6 +37,9 @@ BuildRequires: docbook-style-xsl
Obsoletes: appdata-tools < 0.1.9
Provides: appdata-tools
+# this is not a library version
+%define as_plugin_version 2
+
%description
This library provides GObjects and helper methods to make it easy to read and
write AppStream metadata. It also provides a simple DOM implementation that
@@ -83,7 +86,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
%__rm -f %{buildroot}%{_libdir}/libappstream-glib*.la
%__rm -f %{buildroot}%{_libdir}/libappstream-builder*.la
-%__rm -f %{buildroot}%{_libdir}/asb-plugins/*.la
+%__rm -f %{buildroot}%{_libdir}/asb-plugins-%{as_plugin_version}/*.la
%find_lang appstream-glib
@@ -117,7 +120,7 @@ make install DESTDIR=$RPM_BUILD_ROOT
%doc COPYING
%{_bindir}/appstream-builder
%{_datadir}/bash-completion/completions/appstream-builder
-%{_libdir}/asb-plugins/*.so
+%{_libdir}/asb-plugins-%{as_plugin_version}/*.so
%{_libdir}/libappstream-builder.so.7*
%{_mandir}/man1/appstream-builder.1.gz