Blame eclipse-tm-terminal.spec

4fee39c
%global git_tag 6b04c544d33c31b1f3da168d0e606d8d20ed541d
1f1d8a5
700b885
# Set this to avoid building CDT and remotes bundles to eliminate
700b885
# a circular dep on CDT->tm-terminal->remote->CDT
4fee39c
%bcond_with bootstrap
4fee39c
4fee39c
# RSE server locations
4fee39c
%global rseserver_install   %{_datadir}/eclipse-rse-server
4fee39c
%global rseserver_java      %{_datadir}/java/eclipse-rse-server
4fee39c
%global rseserver_config    %{_sysconfdir}/sysconfig/rseserver
4fee39c
4fee39c
Name: eclipse-tm-terminal
4fee39c
Version: 4.5.100
4fee39c
Release: 1%{?dist}
4fee39c
Summary: Terminal plug-in for Eclipse
4fee39c
4fee39c
License: EPL-2.0
4fee39c
URL: https://www.eclipse.org/tm/
4fee39c
Source0: https://git.eclipse.org/c/tm/org.eclipse.tm.git/snapshot/org.eclipse.tm-%{git_tag}.tar.xz
4fee39c
4fee39c
Patch0: 0001-Fix-feature-includes.patch
4fee39c
# Use Authen::pam to authenticate clients
4fee39c
Patch1: eclipse-rse-server-auth-pl.patch
4fee39c
# Fix classpath in daemon and server scripts to point
4fee39c
# to install locations
4fee39c
Patch2: eclipse-rse-server-scripts.patch
4fee39c
4fee39c
BuildArch: noarch
4fee39c
4fee39c
# Upstream Eclipse no longer supports non-64bit arches
4fee39c
ExcludeArch: s390 %{arm} %{ix86}
4fee39c
4fee39c
BuildRequires: tycho
4fee39c
BuildRequires: tycho-extras
4fee39c
BuildRequires: apache-commons-net
4fee39c
BuildRequires: eclipse-egit
4fee39c
BuildRequires: eclipse-license2
4fee39c
%if %{without bootstrap}
e84a3bf
# Needed for additional terminal connectors
4fee39c
BuildRequires: eclipse-cdt
4fee39c
BuildRequires: eclipse-remote
4fee39c
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
4fee39c
%package rse
4fee39c
Summary: Eclipse Remote System Explorer
4fee39c
Recommends: perl-interpreter
4fee39c
Recommends: perl-Authen-PAM
4fee39c
4fee39c
# Obsoletes/Provides added in F30
4fee39c
Obsoletes: eclipse-rse < %{version}-%{release}
4fee39c
Provides:  eclipse-rse = %{version}-%{release}
4fee39c
Obsoletes: eclipse-rse-server < %{version}-%{release}
4fee39c
Provides:  eclipse-rse-server = %{version}-%{release}
4fee39c
4fee39c
%description rse
4fee39c
Remote System Explorer (RSE) is a framework and toolkit in Eclipse Workbench
4fee39c
that allows you to connect and work with a variety of remote systems.
4fee39c
4fee39c
%if %{without bootstrap}
e84a3bf
%package connectors
4fee39c
Summary: Additional connectors for Terminal plug-in for Eclipse
1d9d8ed
e84a3bf
%description connectors
4fee39c
Additional connectors for Terminal plug-in for Eclipse.
e84a3bf
%endif
38efff9
1d9d8ed
%package sdk
4fee39c
Summary: Terminal SDK plug-in for Eclipse
4fee39c
Requires: %{name} = %{version}-%{release}
4fee39c
%if %{without bootstrap}
4fee39c
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
4fee39c
%setup -q -n org.eclipse.tm-%{git_tag}
4fee39c
%patch0 -p1
4fee39c
%patch1
4fee39c
%patch2
4fee39c
4fee39c
# Don't need to build repo for RPM builds
4fee39c
%pom_disable_module site
4fee39c
%pom_remove_plugin :target-platform-configuration
4fee39c
%pom_remove_plugin :tycho-packaging-plugin
4fee39c
4fee39c
# Fixup erroneous license info, see: https://bugs.eclipse.org/bugs/show_bug.cgi?id=538094
4fee39c
sed -i -e '/license-feature-version/s/1\.0\.1\.qualifier/0.0.0/' \
4fee39c
  $(find -name feature.xml)
4fee39c
4fee39c
# Don't ship tests, examples, etc
4fee39c
%pom_disable_module tests rse
4fee39c
%pom_disable_module org.eclipse.tm.terminal.test terminal/plugins
4fee39c
%pom_disable_module examples rse
4fee39c
%pom_disable_module org.eclipse.rse.ui.capabilities rse/plugins
e84a3bf
e84a3bf
# When bootstrapping, disable the plugins and features that
e84a3bf
# create cyclical dependencies
4fee39c
%if %{with bootstrap}
4fee39c
%pom_disable_module org.eclipse.tm.terminal.connector.process terminal/plugins
4fee39c
%pom_disable_module org.eclipse.tm.terminal.connector.local terminal/plugins
4fee39c
%pom_disable_module org.eclipse.tm.terminal.connector.local.feature terminal/features
4fee39c
%pom_disable_module org.eclipse.tm.terminal.connector.local.sdk.feature terminal/features
4fee39c
%pom_disable_module org.eclipse.tm.terminal.connector.remote terminal/plugins
4fee39c
%pom_disable_module org.eclipse.tm.terminal.connector.remote.feature terminal/features
4fee39c
%pom_disable_module org.eclipse.tm.terminal.connector.remote.sdk.feature terminal/features
e84a3bf
%pom_xpath_remove "import[@feature='org.eclipse.tm.terminal.connector.local.sdk.feature']" \
4fee39c
  terminal/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']" \
4fee39c
  terminal/features/org.eclipse.tm.terminal.feature/feature.xml
38efff9
4fee39c
# Fix trying to include non-existent files
4fee39c
sed -i -e "s|feature.properties,\\\|feature.properties|g" terminal/features/org.eclipse.tm.terminal.view.feature/build.properties
4fee39c
sed -i -e "s|p2.inf||g" terminal/features/org.eclipse.tm.terminal.view.feature/build.properties
4fee39c
sed -i -e '/index/d' rse/doc/*/build.properties
38efff9
4fee39c
# Enable serial connector
4fee39c
sed -i -e '/<modules>/s///' \
4fee39c
  terminal/{plugins,features}/pom.xml
38efff9
1f1d8a5
# No need to install poms
1f1d8a5
%mvn_package "::pom::" __noinstall
0759158
%mvn_package "::jar:sources{,-feature}:" sdk
1d9d8ed
%mvn_package ":*.sdk.feature" sdk
4fee39c
%mvn_package ":*.sdk" sdk
4fee39c
%mvn_package ":*.rse*" rse
4fee39c
%mvn_package ":*.dstore*" rse
0759158
%mvn_package ":org.eclipse.tm.terminal.connector.{local,process,remote,cdtserial,serial}*" connectors
1d9d8ed
%mvn_package ":"
1f1d8a5
38efff9
%build
4fee39c
%if %{without bootstrap}
4fee39c
%mvn_build -j -- -Pcdtserial,rxtxserial
4fee39c
%else
4fee39c
%mvn_build -j -- -P"!cdtserial,!rxtxserial"
4fee39c
%endif
38efff9
38efff9
%install
38efff9
%mvn_install
38efff9
4fee39c
install -d -m 755 %{buildroot}%{rseserver_install}
4fee39c
install -d -m 755 %{buildroot}%{rseserver_java}
4fee39c
install -d -m 755 %{buildroot}%{rseserver_config}
4fee39c
4fee39c
pushd %{buildroot}%{_datadir}/eclipse/droplets/tm-terminal-rse/plugins
4fee39c
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.rse.services.dstore_*.jar dstore_miners.jar
4fee39c
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.dstore.core_*.jar dstore_core.jar
4fee39c
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.dstore.extra_*.jar dstore_extra_server.jar
4fee39c
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.rse.services_*.jar clientserver.jar
4fee39c
# Remove server-specific jar files from plug-ins
4fee39c
jarname=`ls org.eclipse.rse.services.dstore_*.jar`
4fee39c
zip -d $jarname dstore_miners.jar
4fee39c
jarname=`ls org.eclipse.dstore.core_*.jar`
4fee39c
zip -d $jarname dstore_core.jar
4fee39c
jarname=`ls org.eclipse.dstore.extra_*.jar`
4fee39c
zip -d $jarname dstore_extra_server.jar
4fee39c
jarname=`ls org.eclipse.rse.services_*.jar`
4fee39c
zip -d $jarname clientserver.jar
4fee39c
popd
4fee39c
4fee39c
pushd rse/plugins/org.eclipse.rse.services.dstore
4fee39c
pushd serverruntime/scripts/linux
4fee39c
cp *.pl %{buildroot}%{rseserver_install}
4fee39c
popd
4fee39c
pushd serverruntime/data
4fee39c
cp *.properties %{buildroot}%{rseserver_config}
4fee39c
cp *.dat %{buildroot}%{rseserver_install}
4fee39c
popd
4fee39c
38efff9
%files -f .mfiles
38efff9
4fee39c
%files rse -f .mfiles-rse
4fee39c
%{rseserver_install}
4fee39c
%{rseserver_java}
4fee39c
%dir %{rseserver_config}
4fee39c
%config(noreplace) %{rseserver_config}/ssl.properties
4fee39c
%config(noreplace) %{rseserver_config}/rsecomm.properties
4fee39c
4fee39c
%if %{without bootstrap}
e84a3bf
%files connectors -f .mfiles-connectors
e84a3bf
%endif
1d9d8ed
1d9d8ed
%files sdk -f .mfiles-sdk
1d9d8ed
38efff9
%changelog
4fee39c
* Thu Mar 14 2019 Mat Booth <mat.booth@redhat.com> - 4.5.100-1
4fee39c
- Update to 2019-03 release
4fee39c
- Update license tag
4fee39c
- Add RSE subpackage and obsolete the old one since the projects
4fee39c
  were merged
4fee39c
- Restrict to same architectures as Eclipse itself
4fee39c
f0b4847
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-5
f0b4847
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
f0b4847
66e7d5e
* Wed Aug 22 2018 Mat Booth <mat.booth@redhat.com> - 4.4.0-4
66e7d5e
- Actually update license tag
66e7d5e
b570d31
* Wed Aug 22 2018 Mat Booth <mat.booth@redhat.com> - 4.4.0-3
b570d31
- Update license tag
b570d31
dbf400f
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.4.0-2
dbf400f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
dbf400f
07e141e
* Mon Jun 11 2018 Mat Booth <mat.booth@redhat.com> - 4.4.0-1
07e141e
- Update to photon release
07e141e
a8d37ea
* Wed Mar 21 2018 Mat Booth <mat.booth@redhat.com> - 4.3.0-1
a8d37ea
- Add patch to add API to read TextCanvas content
a8d37ea
9b3d4e9
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-0.4.gitfa298da
9b3d4e9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
9b3d4e9
2df07c3
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 4.3.0-0.3.gitfa298da
2df07c3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2df07c3
700b885
* Mon Jun 19 2017 Mat Booth <mat.booth@redhat.com> - 4.3.0-0.2.gitfa298da
700b885
- Allow conditionally building against cdt and remote
700b885
0759158
* Sun Jun 18 2017 Mat Booth <mat.booth@redhat.com> - 4.3.0-0.1.gitfa298da
0759158
- Update to Oxygen snapshot
0759158
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