82b3e31
%global commit af764de00d95e5af9e7778c5f19ba547b11392ee
9665daf
%global shortcommit %(c=%{commit}; echo ${c:0:7})
9665daf
9665daf
Name:           eclipse-m2e-egit
9665daf
Version:        0.14.0
6ca98a3
Release:        0.9.git%{shortcommit}%{?dist}
9665daf
Summary:        M2E SCM Handler for EGit
9665daf
License:        EPL
9665daf
URL:            https://github.com/tesla/m2eclipse-egit/
9665daf
BuildArch:      noarch
9665daf
9665daf
Source0:        https://github.com/tesla/m2eclipse-egit/archive/%{commit}/%{name}-%{version}-%{shortcommit}.tar.gz
9665daf
9665daf
BuildRequires:  maven-local
9665daf
BuildRequires:  mvn(io.tesla.tycho:tycho-support:pom:)
9665daf
BuildRequires:  osgi(org.eclipse.core.runtime)
9665daf
BuildRequires:  osgi(org.eclipse.egit.core)
9665daf
BuildRequires:  osgi(org.eclipse.egit.ui)
9665daf
BuildRequires:  osgi(org.eclipse.jface)
9665daf
BuildRequires:  osgi(org.eclipse.jgit)
9665daf
BuildRequires:  osgi(org.eclipse.m2e.core)
9665daf
BuildRequires:  osgi(org.eclipse.m2e.core.ui)
9665daf
BuildRequires:  osgi(org.eclipse.m2e.scm)
9665daf
BuildRequires:  osgi(org.eclipse.swt)
9665daf
BuildRequires:  osgi(org.eclipse.ui)
9665daf
BuildRequires:  osgi(slf4j.api)
dbb2cba
BuildRequires:  osgi(org.eclipse.equinox.p2.ui.discovery)
82b3e31
BuildRequires:  eclipse-jgit
9665daf
1d24868
Enhances:       eclipse-m2e-core
1d24868
9665daf
%description
9665daf
This package provides M2E SCM Handler for EGit which adds support for
9665daf
git repositories to M2E.
9665daf
9665daf
%prep
9665daf
%setup -q -n m2eclipse-egit-%{commit}
9665daf
find -name *.jar -delete
9665daf
9665daf
# Tests are skipped because of missing dependencies:
9665daf
# osgi(org.eclipse.m2e.tests.common)
9665daf
%pom_disable_module org.sonatype.m2e.egit.tests
9665daf
9665daf
# SLF4J in Fedora uses a different BSN
9665daf
sed -i s/org.slf4j.api/slf4j.api/ $(find -name *.MF)
9665daf
9665daf
%build
41d99db
%mvn_build -j
9665daf
9665daf
%install
41d99db
%mvn_install
9665daf
41d99db
%files -f .mfiles
9665daf
%doc org.sonatype.m2e.egit.feature/license.html
9665daf
9665daf
%changelog
6ca98a3
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.14.0-0.9.gitaf764de
6ca98a3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
6ca98a3
1d24868
* Mon Oct 19 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.14.0-0.8.gitaf764de
1d24868
- Add Enhances: eclipse-m2e-core
1d24868
4cf7b9a
* Mon Sep 14 2015 Roland Grunberg <rgrunber@redhat.com> - 0.14.0-0.7.gitaf764de
4cf7b9a
- Rebuild as an Eclipse p2 Droplet.
4cf7b9a
49a0f27
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-0.6.gitaf764de
49a0f27
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
49a0f27
82b3e31
* Mon Jun 1 2015 Alexander Kurtakov <akurtako@redhat.com> 0.14.0-0.5.gitaf764de
82b3e31
- Update to newer snapshot that works with Egit 4.0.
82b3e31
dbb2cba
* Tue Dec 9 2014 Alexander Kurtakov <akurtako@redhat.com> 0.14.0-0.4.git571dc0a
dbb2cba
- Fix FTBFS.
dbb2cba
41d99db
* Wed Sep 10 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.14.0-0.3.git571dc0a
41d99db
- Install with XMvn
41d99db
492ab0f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-0.2.git571dc0a
492ab0f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
492ab0f
9665daf
* Wed Jan 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.14.0-0.1.git571dc0a
9665daf
- Initial packaging