|
 |
65abda |
%global pkg_name tycho-extras
|
|
 |
65abda |
%{?scl:%scl_package %{pkg_name}}
|
|
 |
65abda |
# If Eclipse not in buildroot, then JGit not in buildroot
|
|
 |
65abda |
# In this case set the bootstrap flag
|
|
 |
65abda |
%global bootstrap 0
|
|
 |
65abda |
# When building version under development (non-release)
|
|
 |
65abda |
# %%global snap -SNAPSHOT
|
|
 |
65abda |
%global snap %{nil}
|
|
 |
65abda |
|
|
 |
65abda |
Name: %{?scl_prefix}tycho-extras
|
|
 |
65abda |
Version: 0.23.0
|
|
 |
65abda |
Release: 2.2%{?dist}
|
|
 |
65abda |
Summary: Additional plugins for Tycho
|
|
 |
65abda |
|
|
 |
65abda |
License: EPL
|
|
 |
65abda |
URL: http://eclipse.org/tycho/
|
|
 |
65abda |
Source0: http://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/snapshot/org.eclipse.tycho.extras-tycho-extras-%{version}.tar.xz
|
|
 |
65abda |
Patch0: %{pkg_name}-fix-build.patch
|
|
 |
65abda |
Patch1: %{pkg_name}-use-custom-resolver.patch
|
|
 |
65abda |
Patch2: 0001-Update-to-JGit-4.0.patch
|
|
 |
65abda |
|
|
 |
65abda |
BuildArch: noarch
|
|
 |
65abda |
|
|
 |
65abda |
%if ! %{bootstrap}
|
|
 |
65abda |
BuildRequires: %{?scl_prefix}jgit
|
|
 |
65abda |
%endif
|
|
 |
65abda |
BuildRequires: %{?scl_prefix_java_common}maven-local
|
|
 |
65abda |
BuildRequires: %{?scl_prefix}tycho >= 0.22.0-3
|
|
 |
65abda |
|
|
 |
65abda |
%if ! %{bootstrap}
|
|
 |
65abda |
Requires: %{?scl_prefix}jgit
|
|
 |
65abda |
%endif
|
|
 |
65abda |
Requires: %{?scl_prefix}tycho >= 0.22.0-3
|
|
 |
65abda |
|
|
 |
65abda |
|
|
 |
65abda |
%description
|
|
 |
65abda |
A small set of plugins that work with Tycho to provide additional functionality
|
|
 |
65abda |
when building projects of an OSGi nature.
|
|
 |
65abda |
|
|
 |
65abda |
|
|
 |
65abda |
%package javadoc
|
|
 |
65abda |
Summary: Java docs for %{pkg_name}
|
|
 |
65abda |
Group: Documentation
|
|
 |
65abda |
|
|
 |
65abda |
%description javadoc
|
|
 |
65abda |
This package contains the API documentation for %{pkg_name}.
|
|
 |
65abda |
|
|
 |
65abda |
%prep
|
|
 |
65abda |
%setup -q -n org.eclipse.tycho.extras-tycho-extras-%{version}
|
|
 |
65abda |
%patch0 -p1
|
|
 |
65abda |
%patch1 -p1
|
|
 |
65abda |
%patch2 -p1
|
|
 |
65abda |
|
|
 |
65abda |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
65abda |
# maven-properties-plugin is only needed for tests
|
|
 |
65abda |
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping
|
|
 |
65abda |
%pom_remove_plugin org.sonatype.plugins:maven-properties-plugin tycho-p2-extras-plugin
|
|
 |
65abda |
# remove org.apache.maven:apache-maven zip
|
|
 |
65abda |
%pom_remove_dep org.apache.maven:apache-maven tycho-p2-extras-plugin
|
|
 |
65abda |
%pom_add_dep org.fedoraproject.p2:org.fedoraproject.p2 tycho-eclipserun-plugin/pom.xml
|
|
 |
65abda |
|
|
 |
65abda |
%mvn_alias :{*} org.eclipse.tycho:@1
|
|
 |
65abda |
|
|
 |
65abda |
%if %{bootstrap}
|
|
 |
65abda |
%pom_disable_module tycho-sourceref-jgit
|
|
 |
65abda |
%pom_disable_module tycho-buildtimestamp-jgit
|
|
 |
65abda |
%endif
|
|
 |
65abda |
|
|
 |
65abda |
%{?scl:EOF}
|
|
 |
65abda |
|
|
 |
65abda |
%build
|
|
 |
65abda |
# To run tests, we need :
|
|
 |
65abda |
# maven-properties-plugin (unclear licensing)
|
|
 |
65abda |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
65abda |
%mvn_build -f
|
|
 |
65abda |
%{?scl:EOF}
|
|
 |
65abda |
|
|
 |
65abda |
%install
|
|
 |
65abda |
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
|
|
 |
65abda |
%mvn_install
|
|
 |
65abda |
%{?scl:EOF}
|
|
 |
65abda |
|
|
 |
65abda |
%files -f .mfiles
|
|
 |
65abda |
%dir %{_javadir}/%{pkg_name}
|
|
 |
65abda |
%dir %{_mavenpomdir}/%{pkg_name}
|
|
 |
65abda |
|
|
 |
65abda |
%files javadoc -f .mfiles-javadoc
|
|
 |
65abda |
|
|
 |
65abda |
%changelog
|
|
 |
65abda |
* Tue Jun 30 2015 Mat Booth <mat.booth@redhat.com> - 0.23.0-2.2
|
|
 |
65abda |
- Non bootstrap build
|
|
 |
65abda |
|
|
 |
65abda |
* Sun Jun 28 2015 Roland Grunberg <rgrunber@redhat.com> - 0.23.0-2.1
|
|
 |
65abda |
- SCL-ize.
|
|
 |
65abda |
- Re-introduce a bootstrap mode to avoid jgit dependency.
|
|
 |
65abda |
|
|
 |
65abda |
* Sun Jun 28 2015 Roland Grunberg <rgrunber@redhat.com> - 0.23.0-2.1
|
|
 |
65abda |
- Initial import of tycho-extras-0.23.0-2.fc23.
|