From 10864a5c0e1be560b534ff17fd8a5394f15ef7eb Mon Sep 17 00:00:00 2001 From: Sopot Cela Date: Jul 15 2015 12:27:01 +0000 Subject: Patched launchbar to add javax.annotation --- diff --git a/eclipse-launchbar-annotation.patch b/eclipse-launchbar-annotation.patch new file mode 100644 index 0000000..24d6286 --- /dev/null +++ b/eclipse-launchbar-annotation.patch @@ -0,0 +1,30 @@ +diff --git a/bundles/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF b/bundles/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF +index db5c174..483b450 100644 +--- a/bundles/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF ++++ b/bundles/org.eclipse.launchbar.ui/META-INF/MANIFEST.MF +@@ -6,7 +6,6 @@ + Bundle-Activator: org.eclipse.launchbar.ui.internal.Activator + Bundle-Vendor: Eclipse CDT + Require-Bundle: org.eclipse.ui, +- org.eclipse.core.runtime, + org.eclipse.e4.ui.workbench, + org.eclipse.e4.ui.model.workbench, + org.eclipse.e4.core.di, +@@ -20,7 +19,8 @@ + org.eclipse.ui.navigator, + org.eclipse.remote.core;bundle-version="2.0.0", + org.eclipse.remote.ui;bundle-version="1.1.0", +- org.eclipse.e4.core.contexts ++ org.eclipse.e4.core.contexts, ++ org.eclipse.core.runtime;bundle-version="3.11.0" + Bundle-RequiredExecutionEnvironment: JavaSE-1.7 + Bundle-ActivationPolicy: lazy + Bundle-Localization: plugin +@@ -29,4 +29,5 @@ + org.eclipse.launchbar.ui.internal.commands;x-internal:=true, + org.eclipse.launchbar.ui.internal.controls;x-internal:=true, + org.eclipse.launchbar.ui.internal.dialogs;x-internal:=true +-Import-Package: javax.inject ++Import-Package: javax.annotation;version="1.1.0", ++ javax.inject + diff --git a/eclipse-launchbar.spec b/eclipse-launchbar.spec index 9380f3e..42080c4 100644 --- a/eclipse-launchbar.spec +++ b/eclipse-launchbar.spec @@ -1,5 +1,6 @@ %global git_tag 01bfa62a4d3c7d36b7af1662ab0c421e1be3db04 -Name: eclipse-launchbar +%global pkg_name eclipse-launchbar +Name: %{pkg_name} Version: 1.0.0 Release: 0.2.git01bfa62%{?dist} Summary: Eclipse Launchbar plug-in @@ -8,6 +9,8 @@ URL: https://wiki.eclipse.org/CDT/LaunchBar Source0: http://git.eclipse.org/c/cdt/org.eclipse.launchbar.git/snapshot/org.eclipse.launchbar-%{git_tag}.tar.gz +Patch0: %{pkg_name}-annotation.patch + BuildArch: noarch BuildRequires: tycho @@ -21,7 +24,7 @@ An alternative to the default launcher toolbar in Eclipse %prep %setup -q -n org.eclipse.launchbar-%{git_tag} - +%patch0 -p1 find -name *.jar -exec rm -rf {} \; find -name *.class -exec rm -rf {} \;