%global eclipse_base %{_libdir}/eclipse
%global install_loc %{_datadir}/eclipse/dropins/packagekit
%global debug_package %{nil}
Name: eclipse-packagekit
Version: 0.0.2
Release: 1%{?dist}
Summary: PackageKit integration tools for Eclipse (Incubation)
Group: Development/Tools
License: EPL
URL: http://fedorapeople.org/gitweb?p=akurtakov/public_git/eclipse-pkgkit.git;a=summary
# Fetched from http://fedorapeople.org/gitweb?p=akurtakov/public_git/eclipse-pkgkit.git;a=snapshot;h=4da4a97539ab2397abe0f745fa7eb8536d22d832;sf=tgz
Source0: eclipse-pkgkit-%{version}.tar.gz
BuildRequires: eclipse-pde >= 1:3.4.0
BuildRequires: dbus-java
Requires: eclipse-platform >= 3.4.0
Requires: dbus-java
%description
PackageKit integration plugin. It also contains autotools and rpm
plugins integration code.
%prep
%setup -q -n eclipse-pkgkit-4da4a97
mkdir orbitDeps
pushd orbitDeps
ln -s %{_javadir}/dbus-java/dbus.jar dbus.jar
ln -s %{_libdir}/libmatthew-java/unix.jar unix.jar
ln -s %{_libdir}/libmatthew-java/hexdump.jar hexdump.jar
popd
%build
%{eclipse_base}/buildscripts/pdebuild -o `pwd`/orbitDeps
%install
install -d -m 755 %{buildroot}%{install_loc}
unzip -q -d %{buildroot}%{install_loc} \
build/rpmBuild/org.eclipse.linuxtools.packagekit.zip
pushd %{buildroot}%{install_loc}/eclipse/plugins
ln -s %{_javadir}/dbus-java/dbus.jar dbus.jar
ln -s %{_libdir}/libmatthew-java/unix.jar unix.jar
ln -s %{_libdir}/libmatthew-java/hexdump.jar hexdump.jar
popd
%files
%{install_loc}
%doc org.eclipse.linuxtools.packagekit.feature/license.html
%doc org.eclipse.linuxtools.packagekit.feature/epl-v10.html
%changelog
* Fri Jul 8 2011 Alexander Kurtakov <akurtako@redhat.com> 0.0.2-1
- Update to upstream 0.0.2.
- Review fixes.
* Tue Jul 5 2011 Alexander Kurtakov <akurtako@redhat.com> 0.0.1-1
- Initial package.