Blame SPECS/tycho-extras.spec

4a48ad
# The location of the xmvn dir into which we need to install the xmvn plugin
4a48ad
%global xmvn_libdir %(realpath $(dirname $(readlink -f $(which xmvn)))/../lib)
4a48ad
4a48ad
Name:           tycho-extras
4a48ad
Version:        1.4.0
4a48ad
Release:        1%{?dist}
4a48ad
Summary:        Additional plugins for Tycho
4a48ad
4a48ad
License:        EPL-1.0
4a48ad
URL:            http://eclipse.org/tycho/
4a48ad
Source0:        http://git.eclipse.org/c/tycho/org.eclipse.tycho.extras.git/snapshot/org.eclipse.tycho.extras-tycho-extras-%{version}.tar.xz
4a48ad
Patch0:         %{name}-fix-build.patch
4a48ad
Patch1:         %{name}-use-custom-resolver.patch
4a48ad
#https://git.eclipse.org/r/#/c/75453/
4a48ad
Patch2:         fix-xmvn-pomless-builddep.patch
4a48ad
4a48ad
BuildArch: noarch
4a48ad
4a48ad
ExclusiveArch:  x86_64
4a48ad
4a48ad
BuildRequires:  maven-local
4a48ad
BuildRequires:  mvn(io.takari.polyglot:polyglot-common)
4a48ad
BuildRequires:  mvn(org.apache.commons:commons-lang3)
4a48ad
BuildRequires:  mvn(org.apache.maven:maven-archiver)
4a48ad
BuildRequires:  mvn(org.apache.maven:maven-core)
4a48ad
BuildRequires:  mvn(org.apache.maven:maven-model)
4a48ad
BuildRequires:  mvn(org.apache.maven:maven-model-builder)
4a48ad
BuildRequires:  mvn(org.apache.maven:maven-plugin-api)
4a48ad
BuildRequires:  mvn(org.apache.maven.plugins:maven-plugin-plugin)
4a48ad
BuildRequires:  mvn(org.apache.maven.plugins:maven-source-plugin)
4a48ad
BuildRequires:  mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
4a48ad
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-metadata)
4a48ad
BuildRequires:  mvn(org.eclipse.sisu:org.eclipse.sisu.plexus)
4a48ad
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.tycho.core.shared)
4a48ad
BuildRequires:  mvn(org.eclipse.tycho:org.eclipse.tycho.p2.resolver.shared)
4a48ad
BuildRequires:  mvn(org.eclipse.tycho:sisu-equinox-launching)
4a48ad
BuildRequires:  mvn(org.eclipse.tycho:tycho-artifactcomparator)
4a48ad
BuildRequires:  mvn(org.eclipse.tycho:tycho-core)
4a48ad
BuildRequires:  mvn(org.eclipse.tycho:tycho-p2-facade)
4a48ad
BuildRequires:  mvn(org.eclipse.tycho:tycho-packaging-plugin)
4a48ad
BuildRequires:  mvn(org.fedoraproject.p2:org.fedoraproject.p2)
4a48ad
4a48ad
%description
4a48ad
A small set of plugins that work with Tycho to provide additional functionality
4a48ad
when building projects of an OSGi nature.
4a48ad
4a48ad
4a48ad
%package javadoc
4a48ad
Summary:        Java docs for %{name}
4a48ad
4a48ad
%description javadoc
4a48ad
This package contains the API documentation for %{name}.
4a48ad
4a48ad
%prep
4a48ad
%setup -q -n org.eclipse.tycho.extras-tycho-extras-%{version}
4a48ad
%patch0 -p1
4a48ad
%patch1 -p1
4a48ad
%patch2 -p1
4a48ad
4a48ad
# Plugins not needed for RPM builds
4a48ad
%pom_remove_plugin :maven-site-plugin
4a48ad
4a48ad
# maven-properties-plugin is only needed for tests
4a48ad
%pom_remove_plugin org.eclipse.m2e:lifecycle-mapping
4a48ad
%pom_remove_plugin org.sonatype.plugins:maven-properties-plugin tycho-p2-extras-plugin
4a48ad
# remove org.apache.maven:apache-maven zip
4a48ad
%pom_remove_dep org.apache.maven:apache-maven tycho-p2-extras-plugin
4a48ad
%pom_add_dep org.fedoraproject.p2:org.fedoraproject.p2 tycho-eclipserun-plugin/pom.xml
4a48ad
4a48ad
# Tycho plug-ins not needed for RPM builds of Eclipse plug-ins
4a48ad
%pom_disable_module tycho-buildtimestamp-jgit
4a48ad
%pom_disable_module tycho-sourceref-jgit
4a48ad
4a48ad
%mvn_alias :{*} org.eclipse.tycho:@1
4a48ad
4a48ad
%build
4a48ad
# To run tests, we need :
4a48ad
# maven-properties-plugin (unclear licensing)
4a48ad
%mvn_build -f
4a48ad
4a48ad
%install
4a48ad
%mvn_install
4a48ad
4a48ad
# Install extension JAR with deps into XMvn ext directory
4a48ad
install -d -m 755 %{buildroot}%{xmvn_libdir}/ext/
4a48ad
ln -s %{_javadir}/%{name}/tycho-pomless.jar %{buildroot}%{xmvn_libdir}/ext/
4a48ad
ln -s %{_javadir}/tesla-polyglot/polyglot-common.jar %{buildroot}%{xmvn_libdir}/ext/
4a48ad
4a48ad
%files -f .mfiles
4a48ad
%{xmvn_libdir}/ext/*
4a48ad
4a48ad
%files javadoc -f .mfiles-javadoc
4a48ad
4a48ad
%changelog
4a48ad
* Thu May 30 2019 Mat Booth <mat.booth@redhat.com> - 1.4.0-1
4a48ad
- Update to latest upstream release
4a48ad
4a48ad
* Thu May 23 2019 Mat Booth <mat.booth@redhat.com> - 1.3.0-4
4a48ad
- Don't build plug-ins we can't use during RPM builds
4a48ad
4a48ad
* Tue Mar 19 2019 Mat Booth <mat.booth@redhat.com> - 1.3.0-3
4a48ad
- Restrict to same architectures as Eclipse itself
4a48ad
4a48ad
* Tue Mar 12 2019 Mat Booth <mat.booth@redhat.com> - 1.3.0-2
4a48ad
- Make installation more portable
4a48ad
4a48ad
* Tue Feb 19 2019 Mat Booth <mat.booth@redhat.com> - 1.3.0-1
4a48ad
- Update to latest upstream release
4a48ad
4a48ad
* Sun Feb 03 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-4
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
4a48ad
4a48ad
* Fri Aug 17 2018 Mat Booth <mat.booth@redhat.com> - 1.2.0-3
4a48ad
- License correction
4a48ad
4a48ad
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.2.0-2
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
4a48ad
4a48ad
* Tue Jun 05 2018 Mat Booth <mat.booth@redhat.com> - 1.2.0-1
4a48ad
- Update to latest release
4a48ad
4a48ad
* Wed May 02 2018 Mat Booth <mat.booth@redhat.com> - 1.1.0-1
4a48ad
- Update to latest upstream release
4a48ad
4a48ad
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
4a48ad
4a48ad
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
4a48ad
4a48ad
* Thu Apr 20 2017 Mat Booth <mat.booth@redhat.com> - 1.0.0-1
4a48ad
- Update to 1.0.0
4a48ad
4a48ad
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.26.0-2
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
4a48ad
4a48ad
* Wed Nov 02 2016 Mat Booth <mat.booth@redhat.com> - 0.26.0-1
4a48ad
- Update to latest upstream release
4a48ad
4a48ad
* Mon Jul 4 2016 Alexander Kurtakov <akurtako@redhat.com> 0.25.0-4
4a48ad
- Add patch to fix NPE in xmvn builddep.
4a48ad
4a48ad
* Wed Jun 15 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.25.0-3
4a48ad
- Add missing build-requires
4a48ad
4a48ad
* Thu Apr 28 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.25.0-2
4a48ad
- Obsolete tycho-pomless
4a48ad
4a48ad
* Thu Apr 21 2016 Mat Booth <mat.booth@redhat.com> - 0.25.0-1
4a48ad
- Update to latest upstream release
4a48ad
4a48ad
* Thu Apr 14 2016 Mat Booth <mat.booth@redhat.com> - 0.23.0-4
4a48ad
- Fix build against new maven-archiver, which removed some deprecated methods
4a48ad
  that tycho was using
4a48ad
4a48ad
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.23.0-3
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
4a48ad
4a48ad
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.23.0-2
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
4a48ad
4a48ad
* Tue Jun 9 2015 Alexander Kurtakov <akurtako@redhat.com> 0.23.0-1
4a48ad
- Update to upstream 0.23.
4a48ad
4a48ad
* Fri Dec  5 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.22.0-2
4a48ad
- Port to latest fedoraproject-p2
4a48ad
4a48ad
* Mon Dec 01 2014 Mat Booth <mat.booth@redhat.com> - 0.22.0-1
4a48ad
- Update to tagged release
4a48ad
- Fix directory ownership problem
4a48ad
4a48ad
* Tue Nov 25 2014 Roland Grunberg <rgrunber@redhat.com> - 0.22.0-0.1.gitef068a
4a48ad
- Update to 0.22.0 pre-release.
4a48ad
4a48ad
* Wed Sep 03 2014 Roland Grunberg <rgrunber@redhat.com> - 0.21.0-3
4a48ad
- Use fedoraproject-p2 to do OSGi bundle discovery.
4a48ad
4a48ad
* Thu Aug 21 2014 Roland Grunberg <rgrunber@redhat.com> - 0.21.0-2
4a48ad
- Integrate fedoraproject-p2 functionality.
4a48ad
4a48ad
* Fri Jul 25 2014 Roland Grunberg <rgrunber@redhat.com> - 0.21.0-1
4a48ad
- Update to 0.21.0 Release.
4a48ad
4a48ad
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20.0-2
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
4a48ad
4a48ad
* Tue Mar 25 2014 Roland Grunberg <rgrunber@redhat.com> - 0.20.0-1
4a48ad
- Update to 0.20.0 Release.
4a48ad
4a48ad
* Tue Mar 11 2014 Michael Simacek <msimacek@redhat.com> - 0.19.0-3
4a48ad
- Use mvn_build and mvn_install.
4a48ad
- Drop manual requires.
4a48ad
4a48ad
* Thu Feb 27 2014 Roland Grunberg <rgrunber@redhat.com> - 0.19.0-2
4a48ad
- Change R:java to R:java-headless (Bug 1068575).
4a48ad
4a48ad
* Fri Oct 25 2013 Roland Grunberg <rgrunber@redhat.com> - 0.19.0-1
4a48ad
- Update to 0.19.0 Release.
4a48ad
4a48ad
* Mon Jul 29 2013 Roland Grunberg <rgrunber@redhat.com> 0.18.1-1
4a48ad
- Update to 0.18.1 Release.
4a48ad
4a48ad
* Thu May 30 2013 Roland Grunberg <rgrunber@redhat.com> 0.18.0-1
4a48ad
- Update to 0.18.0 Release.
4a48ad
4a48ad
* Tue May 7 2013 Roland Grunberg <rgrunber@redhat.com> 0.17.0-2
4a48ad
- tycho-eclipserun-plugin should use the system local p2 repo.
4a48ad
4a48ad
* Tue Apr 2 2013 Roland Grunberg <rgrunber@redhat.com> 0.17.0-1
4a48ad
- Update to 0.17.0 Release.
4a48ad
4a48ad
* Mon Feb 25 2013 Roland Grunberg <rgrunber@redhat.com> 0.17.0-0.1.git0a9370
4a48ad
- Update to latest 0.17.0-SNAPSHOT.
4a48ad
4a48ad
* Thu Feb 21 2013 Roland Grunberg <rgrunber@redhat.com> - 0.16.0-5
4a48ad
- Fix PlexusConfiguration class issues identically across branches.
4a48ad
4a48ad
* Wed Feb 20 2013 Roland Grunberg <rgrunber@redhat.com> - 0.16.0-4
4a48ad
- Fix build issues relating to PlexusConfiguration.
4a48ad
4a48ad
* Fri Feb 15 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16.0-4
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
4a48ad
4a48ad
* Thu Dec 13 2012 Roland Grunberg <rgrunber@redhat.com> 0.16.0-3
4a48ad
- Fix upstream Bug 393686.
4a48ad
4a48ad
* Fri Oct 19 2012 Roland Grunberg <rgrunber@redhat.com> 0.16.0-2
4a48ad
- Update to 0.16.0 Release.
4a48ad
4a48ad
* Mon Jul 30 2012 Roland Grunberg <rgrunber@redhat.com> 0.16.0-1.e58861
4a48ad
- Update to 0.16.0 SNAPSHOT.
4a48ad
4a48ad
* Fri Jul 27 2012 Roland Grunberg <rgrunber@redhat.com> 0.15.0-1
4a48ad
- Update to 0.15.0.
4a48ad
4a48ad
* Sun Jul 22 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.14.0-2
4a48ad
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
4a48ad
4a48ad
* Mon Apr 16 2012 Roland Grunberg <rgrunber@redhat.com> - 0.14.0-1
4a48ad
- Initial packaging of tycho extras.