diff --git a/gimp-lensfun.metainfo.xml b/gimp-lensfun.metainfo.xml
new file mode 100644
index 0000000..f8a70dd
--- /dev/null
+++ b/gimp-lensfun.metainfo.xml
@@ -0,0 +1,13 @@
+
+
+
+gimp-lensfun
+gimp.desktop
+GimpLensfun
+A plugin to correct lens distortion using the lensfun library and database
+http://seebk.github.io/GIMP-Lensfun/
+CC0-1.0
+GPL-3.0
+eischmann_at_redhat.com
+
diff --git a/gimp-lensfun.spec b/gimp-lensfun.spec
index 3332b9a..36cba6a 100644
--- a/gimp-lensfun.spec
+++ b/gimp-lensfun.spec
@@ -1,11 +1,12 @@
Name: gimp-lensfun
Version: 0.2.3
-Release: 3%{?dist}
+Release: 4%{?dist}
Summary: Gimp plugin to correct lens distortion
License: GPLv3+
URL: http://seebk.github.io/GIMP-Lensfun/
-Source: https://github.com/seebk/GIMP-Lensfun/releases/download/%{version}/gimplensfun-%{version}.tar.gz
+Source0: https://github.com/seebk/GIMP-Lensfun/releases/download/%{version}/gimplensfun-%{version}.tar.gz
+Source1: %{name}.metainfo.xml
BuildRequires: gimp-devel >= 2.0
BuildRequires: exiv2-devel
@@ -32,14 +33,21 @@ make %{?_smp_mflags} CXXFLAGS="%{optflags}"
%install
mkdir -p $RPM_BUILD_ROOT%{_libdir}/gimp/2.0/plug-ins
install -m 755 %{name} $RPM_BUILD_ROOT%{_libdir}/gimp/2.0/plug-ins
+mkdir -p $RPM_BUILD_ROOT%{_datadir}/appdata
+install -m 755 %{SOURCE1} $RPM_BUILD_ROOT%{_datadir}/appdata
%files
%doc LICENSE.txt CHANGES.txt README.txt
%{_libdir}/gimp/2.0/plug-ins/%{name}
+%{_datadir}/appdata/%{name}.metainfo.xml
%changelog
+* Fri Mar 11 2016 Graham White - 0.2.3-4
+- Fix bug #1316721, thanks to Jiri Eischmann
+- AppStream metadata file has been added to the package
+
* Thu Jun 25 2015 Rex Dieter 0.2.3-3
- rebuild (exiv2)