Blame eclipse-tm-terminal.spec

1f1d8a5
# Set to 1 to build for the first time.  There is a cyclical
1f1d8a5
# dependency between eclipse-remote and eclipse-tm-terminal.
1f1d8a5
%global _bootstrap 0
1d9d8ed
b33e9b8
%global git_tag 4.2_neon.2
1f1d8a5
38efff9
Name:           eclipse-tm-terminal
b33e9b8
Version:        4.2.0
bd9b08d
Release:        2%{?dist}
e84a3bf
Summary:        Terminal plug-in for Eclipse
38efff9
38efff9
License:        EPL
38efff9
URL:            https://www.eclipse.org/tm/
a545c0d
Source0:        http://git.eclipse.org/c/tm/org.eclipse.tm.terminal.git/snapshot/org.eclipse.tm.terminal-%{git_tag}.tar.xz
38efff9
BuildArch:      noarch
38efff9
38efff9
BuildRequires:  maven-local
38efff9
BuildRequires:  tycho-extras
38efff9
BuildRequires:  eclipse-license
a545c0d
BuildRequires: 	eclipse-egit
1f1d8a5
%if ! %{_bootstrap}
e84a3bf
# Needed for additional terminal connectors
e84a3bf
BuildRequires:  eclipse-cdt
1d9d8ed
BuildRequires:  eclipse-rse
1f1d8a5
BuildRequires:  eclipse-remote
bd9b08d
BuildRequires:  rxtx >= 2.2-0.15
1f1d8a5
%endif
38efff9
38efff9
%description
1d9d8ed
An integrated Eclipse View for the local command prompt (console) or
1d9d8ed
remote hosts (SSH, Telnet, Serial).
1d9d8ed
e84a3bf
%if ! %{_bootstrap}
e84a3bf
%package connectors
e84a3bf
Summary:        Additional connectors for Terminal plug-in for Eclipse
1d9d8ed
e84a3bf
%description connectors
1d9d8ed
An integrated Eclipse View for the local command prompt (console) or
38efff9
remote hosts (SSH, Telnet, Serial).
e84a3bf
%endif
38efff9
1d9d8ed
%package sdk
1d9d8ed
Summary:        Terminal SDK plug-in for Eclipse
1d9d8ed
Requires:       %{name} = %{version}-%{release}
e84a3bf
%if ! %{_bootstrap}
e84a3bf
Requires:       %{name}-connectors = %{version}-%{release}
e84a3bf
%endif
1d9d8ed
1d9d8ed
%description sdk
1d9d8ed
Sources and developer resources for the Terminal plug-in for Eclipse.
1d9d8ed
38efff9
%prep
a545c0d
%setup -q -n org.eclipse.tm.terminal-%{git_tag}
38efff9
e84a3bf
# Don't need to build repo
e84a3bf
%pom_disable_module repos/org.eclipse.tm.terminal.repo
e84a3bf
e84a3bf
# When bootstrapping, disable the plugins and features that
e84a3bf
# create cyclical dependencies
1f1d8a5
%if %{_bootstrap}
e84a3bf
%pom_disable_module plugins/org.eclipse.tm.terminal.connector.process
e84a3bf
%pom_disable_module plugins/org.eclipse.tm.terminal.connector.local
e84a3bf
%pom_disable_module features/org.eclipse.tm.terminal.connector.local.feature
e84a3bf
%pom_disable_module features/org.eclipse.tm.terminal.connector.local.sdk.feature
1f1d8a5
%pom_disable_module plugins/org.eclipse.tm.terminal.connector.remote
1f1d8a5
%pom_disable_module features/org.eclipse.tm.terminal.connector.remote.feature
1f1d8a5
%pom_disable_module features/org.eclipse.tm.terminal.connector.remote.sdk.feature
bd9b08d
%pom_disable_module plugins/org.eclipse.tm.terminal.connector.serial
bd9b08d
%pom_disable_module features/org.eclipse.tm.terminal.connector.serial.feature
bd9b08d
%pom_disable_module features/org.eclipse.tm.terminal.connector.serial.sdk.feature
1d9d8ed
%pom_disable_module plugins/org.eclipse.tm.terminal.view.ui.rse
1d9d8ed
%pom_disable_module features/org.eclipse.tm.terminal.view.rse.feature
1d9d8ed
%pom_disable_module features/org.eclipse.tm.terminal.view.rse.sdk.feature
e84a3bf
%pom_xpath_remove "import[@feature='org.eclipse.tm.terminal.connector.local.sdk.feature']" \
e84a3bf
  features/org.eclipse.tm.terminal.sdk.feature/feature.xml
bd9b08d
%pom_xpath_remove "import[@feature='org.eclipse.tm.terminal.connector.serial.sdk.feature']" \
bd9b08d
  features/org.eclipse.tm.terminal.sdk.feature/feature.xml
1f1d8a5
%endif
1f1d8a5
bd9b08d
# Remove cycles between subpackages
bd9b08d
%pom_xpath_remove "import[@feature='org.eclipse.tm.terminal.connector.local.feature']" \
bd9b08d
  features/org.eclipse.tm.terminal.feature/feature.xml
e84a3bf
%pom_xpath_remove "import[@feature='org.eclipse.tm.terminal.connector.serial.feature']" \
e84a3bf
  features/org.eclipse.tm.terminal.feature/feature.xml
38efff9
38efff9
%pom_xpath_remove "pom:plugin[pom:artifactId[text()='tycho-packaging-plugin']]/pom:configuration" admin/pom-config.xml
38efff9
38efff9
sed -i -e "s|feature.properties,\\\|feature.properties|g" features/org.eclipse.tm.terminal.view.feature/build.properties
38efff9
sed -i -e "s|p2.inf||g" features/org.eclipse.tm.terminal.view.feature/build.properties
38efff9
1f1d8a5
# No need to install poms
1f1d8a5
%mvn_package "::pom::" __noinstall
1d9d8ed
%mvn_package "::jar:sources:" sdk
1d9d8ed
%mvn_package ":*.sdk.feature" sdk
bd9b08d
%mvn_package ":org.eclipse.tm.terminal.connector.{local,process,remote,serial}*" connectors
e84a3bf
%mvn_package ":org.eclipse.tm.terminal.view.{rse,ui.rse}*" connectors
1d9d8ed
%mvn_package ":"
1f1d8a5
38efff9
%build
38efff9
%mvn_build -j
38efff9
38efff9
%install
38efff9
%mvn_install
38efff9
38efff9
%files -f .mfiles
38efff9
e84a3bf
%if ! %{_bootstrap}
e84a3bf
%files connectors -f .mfiles-connectors
e84a3bf
%endif
1d9d8ed
1d9d8ed
%files sdk -f .mfiles-sdk
1d9d8ed
38efff9
%changelog
bd9b08d
* Fri Mar 31 2017 Mat Booth <mat.booth@redhat.com> - 4.2.0-2
bd9b08d
- Build serial port bundles, resolves rhbz#1272785
bd9b08d
b33e9b8
* Wed Mar 29 2017 Mat Booth <mat.booth@redhat.com> - 4.2.0-1
b33e9b8
- Update to latest upstream release
b33e9b8
5c834e3
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.1.0-4
5c834e3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
5c834e3
e84a3bf
* Fri Aug 12 2016 Mat Booth <mat.booth@redhat.com> - 4.1.0-3
e84a3bf
- Split out remote connecter, which requires CDT via PTP Remote
e84a3bf
1d9d8ed
* Fri Aug 12 2016 Mat Booth <mat.booth@redhat.com> - 4.1.0-2
1d9d8ed
- Improve bootstrapping mode
1d9d8ed
- Split out local connecter, which requires CDT
1d9d8ed
- Add a SDK package for source bundles
1d9d8ed
1c999d6
* Fri Jul 01 2016 Mat Booth <mat.booth@redhat.com> - 4.1.0-1
1c999d6
- Update to Neon release
1c999d6
a545c0d
* Thu Mar 03 2016 Sopot Cela <scela@redhat.com> - 4.0.0-6.gitcf7ef3f
a545c0d
- Update for Mars.2 release
a545c0d
9c4e04b
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 4.0.0-5
9c4e04b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
9c4e04b
741a81c
* Mon Sep 14 2015 Roland Grunberg <rgrunber@redhat.com> - 4.0.0-4
741a81c
- Rebuild as an Eclipse p2 Droplet.
741a81c
1f1d8a5
* Thu Aug 27 2015 Mat Booth <mat.booth@redhat.com> - 4.0.0-3
1f1d8a5
- Add bootstrap mode to allow breaking of cyclic dependencies
1f1d8a5
e283607
* Thu Jun 25 2015 Roland Grunberg <rgrunber@redhat.com> - 4.0.0-2
e283607
- Rebuild to correct auto-generated requires.
e283607
fa96008
* Wed Jun 24 2015 Alexander Kurtakov <akurtako@redhat.com> 4.0.0-1
fa96008
- Update to 4.0 final.
fa96008
e21aebf
* Wed Jun 17 2015 Alexander Kurtakov <akurtako@redhat.com> 4.0.0-0.5.gite58c5d3
e21aebf
- Fix FTBFS - pom/manifest/feature qualifier misalignments.
e21aebf
faae31d
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 4.0.0-0.4.gite58c5d3
faae31d
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
faae31d
fe6d6ef
* Wed Jun 3 2015 Alexander Kurtakov <akurtako@redhat.com> 4.0.0-0.3.gite58c5d3
fe6d6ef
- New git snapshot.
fe6d6ef
38efff9
* Tue Jun 2 2015 Alexander Kurtakov <akurtako@redhat.com> 4.0.0-0.2.git4ea71eb
38efff9
- Fix review comments.
38efff9
38efff9
* Tue Jun 2 2015 Alexander Kurtakov <akurtako@redhat.com> 4.0.0-0.1.git4ea71eb
38efff9
- Initial packaging