Skip to content

Instantly share code, notes, and snippets.

@caniszczyk
Created January 26, 2011 20:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save caniszczyk/797414 to your computer and use it in GitHub Desktop.
Save caniszczyk/797414 to your computer and use it in GitHub Desktop.
A hcaked up eclipse-egit.spec file to play with the p2 director
%global eclipse_base %{_libdir}/eclipse
%global install_loc %{_datadir}/eclipse/
Summary: Eclipse Git plug-in
Name: eclipse-egit
Version: 0.11.1
Release: 1%{?dist}
License: EPL
URL: http://www.eclipse.org/egit/
Group: Development/Tools
# retrieved from http://egit.eclipse.org/w/?p=egit.git;a=snapshot;h=v0.10.1;sf=tbz2
Source0: egit-v0.11.1.zip
BuildRequires: java-devel >= 1.6.0
BuildRequires: eclipse-pde
#BuildRequires: eclipse-jgit >= 0.10.1
BuildRequires: jpackage-utils >= 0:1.5
Requires: eclipse-platform >= 1:3.5.0
#Requires: eclipse-jgit >= 0.10.1
BuildArch: noarch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
%description
The eclipse-egit package contains Eclipse plugins for
interacting with Git repositories.
%prep
#unzip egit-v0.11.1.zip
%setup -n eclipse-egit -q -c
%build
# do nothing for now, later we would run pde build and generate metadata
# %{eclipse_base}/buildscripts/pdebuild -f org.eclipse.egit -d "jgit"
%install
# do nothing
# rm -rf $RPM_BUILD_ROOT
# install -d -m 755 $RPM_BUILD_ROOT%{install_loc}
# egit main feature
# unzip -q -d $RPM_BUILD_ROOT%{install_loc}/ build/rpmBuild/org.eclipse.egit.zip
%clean
rm -rf $RPM_BUILD_ROOT
%post
/usr/bin/eclipse -nosplash \
-consolelog -clean \
-application org.eclipse.equinox.p2.director \
-metadataRepository file://%{_builddir}/%{name},file://%{eclipse_base}/p2/org.eclipse.equinox.p2.engine/profileRegistry/PlatformProfile.profile \
-artifactRepository file://%{_builddir}/%{name},file://%{eclipse_base} \
-installIU org.eclipse.egit.feature.group/0.11.0.201101261204 \
-destination %{eclipse_base} \
-bundlepool %{eclipse_base} \
-profile PlatformProfile \
-profileProperties org.eclipse.update.install.features=true \
-p2.os linux -p2.ws gtk -p2.arch x86 \
-vmargs \
-Declipse.p2.data.area=%{eclipse_base}/p2 \
-Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M
%postun
/usr/bin/eclipse -nosplash \
-consolelog -clean \
-application org.eclipse.equinox.p2.director \
-metadataRepository file://%{_builddir}/%{name},file://%{eclipse_base}/p2/org.eclipse.equinox.p2.engine/profileRegistry/PlatformProfile.profile \
-artifactRepository file://%{_builddir}/%{name},file://%{eclipse_base} \
-uninstallIU org.eclipse.egit.feature.group/0.11.0.201101261204 \
-destination %{eclipse_base} \
-bundlepool %{eclipse_base} \
-profile PlatformProfile \
-profileProperties org.eclipse.update.install.features=true \
-p2.os linux -p2.ws gtk -p2.arch x86 \
-vmargs \
-Declipse.p2.data.area=%{eclipse_base}/p2 \
-Xms128M -Xmx256M -XX:PermSize=128M -XX:MaxPermSize=256M
%files
#%defattr(-,root,root,-)
#%{install_loc}
#%doc egit/LICENSE
#%doc egit/README
%changelog
* Wed Jan 26 2011 Chris Aniszczyk <zx@redhat.com> 0.11.1-1
- calling the p2 director
* Wed Dec 22 2010 Chris Aniszczyk <zx@redhat.com> 0.10.1-1
- Update to upstream release 0.10.1.
* Thu Oct 7 2010 Chris Aniszczyk <zx@redhat.com> 0.9.3-1
- Update to upstream release 0.9.3.
* Wed Sep 15 2010 Severin Gehwolf <sgehwolf@redhat.com> 0.9.1-1
- Update to upstream release 0.9.1.
- Remove git-core dependency.
* Thu Aug 26 2010 Severin Gehwolf <sgehwolf at, redhat.com> 0.9.0-0.1.20100825git
- Make release tag more readable (separate "0.1" and pre-release tag by ".").
* Wed Aug 25 2010 Severin Gehwolf <sgehwolf at, redhat.com> 0.9.0-0.120100825git
- Pre-release of EGit 0.9.0
* Thu Jun 24 2010 Severin Gehwolf <sgehwolf at, redhat.com> 0.8.4-1
- Rebase to 0.8.4 release.
* Tue Apr 13 2010 Jeff Johnston <jjohnstn@redhat.com> 0.7.1-2
- Bump up release.
* Tue Apr 13 2010 Jeff Johnston <jjohnstn@redhat.com> 0.7.1-1
- Rebase to 0.7.1.
* Fri Mar 19 2010 Alexander Kurtakov <akurtako@redhat.com> 0.7.0-1
- Update to 0.7.0.
- License is only EPL now.
* Tue Feb 9 2010 Alexander Kurtakov <akurtako@redhat.com> 0.6.0-0.1.git20100208
- New git snapshot.
* Tue Nov 10 2009 Alexander Kurtakov <akurtako@redhat.com> 0.6.0-0.1.git20091029
- Update to 0.6 git.
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.5.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
* Fri Jul 17 2009 Alexander Kurtakov <akurtako@redhat.com> 0.5.0-1
- Update to 0.5.0.
* Mon Mar 23 2009 Alexander Kurtakov <akurtako@redhat.com> 0.4.0-3.20090323
- Update to latest snapshot.
* Mon Mar 23 2009 Alexander Kurtakov <akurtako@redhat.com> 0.4.0-3.20090217
- Rebuild to not ship p2 context.xml.
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.4.0-2.20090217
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
* Tue Feb 17 2009 Alexander Kurtakov <akurtako@redhat.com> 0.4.0-1.20090217
- New snapshot.
* Wed Dec 10 2008 Alexander Kurtakov <akurtako@redhat.com> 0.4.0-1
- Update to 0.4.0.
* Wed Oct 22 2008 Alexander Kurtakov <akurtako@redhat.com> 0.3.1.20081022-3
- New git version.
* Wed Jul 30 2008 Andrew Overholt <overholt@redhat.com> 0.3.1-2
- Move files and update build for Eclipse SDK 3.4
- Use pdebuild
* Thu Jul 17 2008 Tom "spot" Callaway <tcallawa@redhat.com> - 0.3.1-1
- fix license tag
* Tue Apr 08 2008 Jesse Keating <jkeating@redhat.com> - 0.3.1-0
- New upstream release 0.3.1, makes committing / diffing actually work
* Tue Feb 19 2008 Fedora Release Engineering <rel-eng@fedoraproject.org> - 0.3.0-3
- Autorebuild for GCC 4.3
* Mon Oct 04 2007 Ben Konrath <bkonrath@redhat.com> 0.3.0-2.fc8
- Require git-core instead of git.
- Resolves: #319321
* Mon Sep 24 2007 Ben Konrath <bkonrath@redhat.com> 0.3.0-1.fc8
- 0.3.0
* Wed Sep 19 2007 Ben Konrath <bkonrath@redhat.com> 0.2.99-0.git20070919.fc8
- 0.2.99 git20070919
* Mon Sep 17 2007 Ben Konrath <bkonrath@redhat.com> 0.2.2-2.git20070911.fc8
- Update add feature and plugin patch.
* Mon Sep 17 2007 Ben Konrath <bkonrath@redhat.com> 0.2.2-1.git20070911.fc8
- Require eclipse-platform >= 3.2.1
* Fri Sep 14 2007 Ben Konrath <bkonrath@redhat.com> 0.2.2-0.git20070911.fc8
- Update to git20070911.
- Update feature and accosicated branding plugin.
* Wed Aug 29 2007 Ben Konrath <bkonrath@redhat.com> 0.2.2-0.git20070826.fc8
- Initial version
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment