From b12a03187e801fa6804f28368075ea0efd407076 Mon Sep 17 00:00:00 2001 From: Mat Booth Date: Mar 21 2018 16:56:43 +0000 Subject: Install appdata --- diff --git a/eclipse-pydev.metainfo.xml b/eclipse-pydev.metainfo.xml new file mode 100644 index 0000000..af0c773 --- /dev/null +++ b/eclipse-pydev.metainfo.xml @@ -0,0 +1,12 @@ + + + + eclipse-pydev + CC0-1.0 + EPL-1.0 + PyDev + Eclipse plug-ins for Python development + eclipse.desktop + http://www.pydev.org/ + mat.booth@redhat.com + diff --git a/eclipse-pydev.spec b/eclipse-pydev.spec index 8f170a3..673baf8 100644 --- a/eclipse-pydev.spec +++ b/eclipse-pydev.spec @@ -6,11 +6,12 @@ Epoch: 1 Summary: Eclipse Python development plug-in Name: eclipse-pydev Version: 6.3.2 -Release: 1%{?dist} +Release: 2%{?dist} License: EPL URL: http://pydev.org Source0: https://github.com/fabioz/Pydev/archive/%{git_tag}.tar.gz +Source1: eclipse-pydev.metainfo.xml # Remove windows specific code that manipulates the windows registry Patch0: remove-winregistry.patch @@ -176,6 +177,9 @@ QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M) # fix perms on native lib find ${RPM_BUILD_ROOT} -name attach_linux.so -exec chmod +x {} \; +# Install appdata +install -m644 -D %{SOURCE1} %{buildroot}%{_datadir}/appdata/eclipse-pydev.metainfo.xml + # Have to re-symlink embedded system jars installDir=${RPM_BUILD_ROOT}/%{_prefix}/lib/eclipse/droplets/pydev pushd $installDir/eclipse/plugins @@ -217,11 +221,15 @@ sed -i -e '/.*\.py$/s/0644/0755/' .mfiles* %files -f .mfiles %license LICENSE.txt %doc README.txt +%{_datadir}/appdata/eclipse-pydev.metainfo.xml %files mylyn -f .mfiles-mylyn %license LICENSE.txt %changelog +* Wed Mar 21 2018 Mat Booth - 1:6.3.2-2 +- Install appdata + * Wed Mar 21 2018 Mat Booth - 1:6.3.2-1 - Update to latest upstream release