Blame SPECS/eclipse-rse.spec

c242d6
%{?scl:%scl_package eclipse-rse}
c242d6
%{!?scl:%global pkg_name %{name}}
c242d6
%{!?maven_scl:%global maven_scl_prefix %{nil}}
c242d6
c242d6
%global install_loc         %{_datadir}/eclipse/dropins/rse
c242d6
%global rseserver_install   %{_datadir}/eclipse-rse-server
c242d6
%global rseserver_java      %{_datadir}/java/eclipse-rse-server
c242d6
%global rseserver_config    %{_sysconfdir}/sysconfig/rseserver
c242d6
%global rse_snapshot        org.eclipse.tm
c242d6
%global rse_tag             R3_6
c242d6
c242d6
Name: %{?scl_prefix}eclipse-rse
c242d6
Summary: Eclipse Remote System Explorer
c242d6
Version: 3.6
c242d6
Release: 4%{?dist}
c242d6
License: EPL
c242d6
URL: http://www.eclipse.org/dsdp/tm/
c242d6
c242d6
Source0: http://git.eclipse.org/c/tm/org.eclipse.tm.git/snapshot/org.eclipse.tm-%{rse_tag}.tar.bz2
c242d6
Source4: notice.html
c242d6
Source5: epl-v10.html
c242d6
c242d6
# Use Authen::pam to authenticate clients
c242d6
Patch1: eclipse-rse-server-auth-pl.patch
c242d6
# Fix classpath in daemon and server scripts to point
c242d6
# to install locations
c242d6
Patch2: eclipse-rse-server-scripts.patch
c242d6
# Patch to remove eclipse-parent pom reference and multiple environments
c242d6
Patch3: eclipse-rse-top-pom.patch
c242d6
# Patch to remove dependency on org.apache.commons.net.source
c242d6
Patch4: eclipse-rse-commons-net-source.patch
c242d6
# Patch to allow junit4 to be used for building tests
c242d6
Patch5: eclipse-rse-junit.patch
c242d6
# Patch to remove tests from tm repo
c242d6
Patch6: eclipse-rse-tm-repo.patch
c242d6
c242d6
BuildRequires:    java-1.7.0-openjdk-devel 
c242d6
# All arches line up except i386 -> x86
c242d6
%ifarch %{ix86}
c242d6
%define eclipse_arch    x86
c242d6
%else
c242d6
%ifarch %{arm}
c242d6
%define eclipse_arch    arm
c242d6
%else
c242d6
%define eclipse_arch   %{_arch}
c242d6
%endif
c242d6
%endif
c242d6
c242d6
BuildArch: noarch
c242d6
c242d6
BuildRequires: tycho
c242d6
BuildRequires: tycho-extras
c242d6
BuildRequires: %{maven_scl_prefix}maven-clean-plugin
c242d6
BuildRequires: %{?scl_prefix}objectweb-asm
c242d6
BuildRequires: %{?scl_prefix}feclipse-maven-plugin
c242d6
BuildRequires: junit
c242d6
c242d6
BuildRequires: %{?scl_prefix}eclipse-pde >= 1:3.8.0-0.21
c242d6
BuildRequires: %{?scl_prefix}eclipse-emf-core >= 0:2.4.1
c242d6
BuildRequires: %{?scl_prefix}eclipse-license
c242d6
BuildRequires: apache-commons-net
c242d6
Requires: %{?scl_prefix}eclipse-platform >= 1:3.8.0-0.21
c242d6
Requires: %{?scl_prefix}eclipse-emf-core >= 0:2.4.1
c242d6
Requires: apache-commons-net >= 0:2.0
c242d6
c242d6
Group: Development/Tools
c242d6
c242d6
%description
c242d6
Remote System Explorer (RSE) is a framework and toolkit in Eclipse Workbench
c242d6
that allows you to connect and work with a variety of remote systems.
c242d6
c242d6
%package server
c242d6
Summary: Eclipse Remote System Explorer Server
c242d6
Group: Development/Tools
c242d6
Requires: perl
c242d6
Requires: %{?scl_prefix}perl-Authen-PAM
c242d6
Requires: java
c242d6
c242d6
%description server
c242d6
The Remote System Explorer (RSE) framework server that can be used so clients can connect to this machine via RSE.
c242d6
c242d6
%prep
c242d6
%setup -q -n org.eclipse.tm-%{rse_tag}
c242d6
c242d6
%patch3
c242d6
%patch4
c242d6
%patch5
c242d6
%patch6
c242d6
c242d6
sed -i -e 's/<arch>x86<\/arch>/<arch>%{eclipse_arch}<\/arch>/g' pom.xml
c242d6
c242d6
pushd rse/plugins/org.eclipse.rse.services.dstore
c242d6
%patch1
c242d6
%patch2
c242d6
popd
c242d6
sed -i -e 's|3.2,3.3|3.2,3.9|g' pom.xml
c242d6
c242d6
%build
c242d6
c242d6
export MAVEN_OPTS="-XX:CompileCommand=exclude,org/eclipse/tycho/core/osgitools/EquinoxResolver,newState ${MAVEN_OPTS}"
c242d6
scl enable %{scl} - <<"EOF"
c242d6
xmvn -o -DskipTychoVersionCheck -Dmaven.test.skip=true clean install
c242d6
EOF
c242d6
c242d6
cp %{SOURCE4} .
c242d6
cp %{SOURCE5} .
c242d6
c242d6
%install
c242d6
scl enable %{scl} - <<"EOF"
c242d6
install -d -m 755 %{buildroot}%{_datadir}/eclipse
c242d6
install -d -m 755 %{buildroot}%{install_loc}/eclipse
c242d6
install -d -m 755 %{buildroot}%{rseserver_install}
c242d6
install -d -m 755 %{buildroot}%{rseserver_java}
c242d6
install -d -m 755 %{buildroot}%{rseserver_config}
c242d6
c242d6
xmvn -o org.fedoraproject:feclipse-maven-plugin:install -DsourceRepo=releng/org.eclipse.tm.repo/target/repository -DtargetLocation=%{buildroot}%{install_loc}/eclipse
c242d6
c242d6
pushd %{buildroot}%{install_loc}/eclipse/plugins
c242d6
rm org.apache.commons.net_*.jar
c242d6
ln -s %{_root_datadir}/java/commons-net.jar org.apache.commons.net.jar
c242d6
popd
c242d6
c242d6
pushd %{buildroot}%{install_loc}/eclipse/plugins
c242d6
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.rse.services.dstore_*.jar dstore_miners.jar
c242d6
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.dstore.core_*.jar dstore_core.jar
c242d6
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.dstore.extra_*.jar dstore_extra_server.jar
c242d6
unzip -q -o -d %{buildroot}%{rseserver_java} org.eclipse.rse.services_*.jar clientserver.jar
c242d6
# Remove server-specific jar files from plug-ins
c242d6
jarname=`ls org.eclipse.rse.services.dstore_*.jar`
c242d6
zip -d $jarname dstore_miners.jar
c242d6
jarname=`ls org.eclipse.dstore.core_*.jar`
c242d6
zip -d $jarname dstore_core.jar
c242d6
jarname=`ls org.eclipse.dstore.extra_*.jar`
c242d6
zip -d $jarname dstore_extra_server.jar
c242d6
jarname=`ls org.eclipse.rse.services_*.jar`
c242d6
zip -d $jarname clientserver.jar
c242d6
popd
c242d6
c242d6
pushd rse/plugins/org.eclipse.rse.services.dstore
c242d6
pushd serverruntime/scripts/linux
c242d6
cp *.pl %{buildroot}%{rseserver_install}
c242d6
popd
c242d6
pushd serverruntime/data
c242d6
cp *.properties %{buildroot}%{rseserver_config}
c242d6
cp *.dat %{buildroot}%{rseserver_install}
c242d6
popd
c242d6
EOF
c242d6
c242d6
%files
c242d6
%{install_loc}
c242d6
%doc releng/rootfiles/epl-v10.html
c242d6
%doc releng/rootfiles/notice.html
c242d6
c242d6
%files server
c242d6
%{rseserver_install}
c242d6
%{rseserver_java}
c242d6
%dir %{rseserver_config}
c242d6
%config(noreplace) %{rseserver_config}/ssl.properties
c242d6
%config(noreplace) %{rseserver_config}/rsecomm.properties
c242d6
%doc notice.html
c242d6
%doc epl-v10.html
c242d6
c242d6
%changelog
c242d6
* Wed Jul 16 2014 Sami Wagiaalla <swagiaal@redhat.com> 3.6-4
c242d6
- Remove R on devtoolset-3-apache-commons-net which does not exist.
c242d6
c242d6
* Tue Jul 15 2014 Sami Wagiaalla <swagiaal@redhat.com> 3.6-2
c242d6
- Rebuild with apache-commons-net fix.
c242d6
c242d6
* Mon Jul 14 2014 Jeff Johnston <jjohnstn@redhat.com> 3.6-1
c242d6
- Update to Luna SR0 (RSE 3.6)
c242d6
c242d6
* Tue Jun 3 2014 Alexander Kurtakov <akurtako@redhat.com> 3.6-0.4.RC1
c242d6
- Use feclipse-maven-plugin to install.
c242d6
c242d6
* Wed May 28 2014 Jeff Johnston <jjohnstn@redhat.com> 3.6-0.3.RC1
c242d6
- Fix link to commons-net.jar
c242d6
c242d6
* Wed May 21 2014 Jeff Johnston <jjohnstn@redhat.com> 3.6-0.2.RC1
c242d6
- Fix Requires for apache-commons-net
c242d6
c242d6
* Wed May 21 2014 Jeff Johnston <jjohnstn@redhat.com> 3.6-0.1.RC1
c242d6
- Update to 3.6 RC1
c242d6
c242d6
* Mon May 19 2014 Jeff Johnston <jjohnstn@redhat.com> 3.5.1-0.2.RC4
c242d6
- Use maven_scl_prefix for maven BuildRequires
c242d6
c242d6
* Thu Oct 10 2013 Jeff Johnston <jjohnstn@redhat.com> 3.5.1-0.1.RC4
c242d6
- Update to 3.5.1 RC4 used for Kepler SR1
c242d6
c242d6
* Wed Oct 9 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.5-2
c242d6
- Update to Kepler SR1
c242d6
c242d6
* Mon Jul 1 2013 Alexander Kurtakov <akurtako@redhat.com> 3.5-1
c242d6
- Update to Kepler final.
c242d6
c242d6
* Fri Jun 7 2013 Alexander Kurtakov <akurtako@redhat.com> 3.5-0.4.rc3
c242d6
- Update to Kepler RC3.
c242d6
c242d6
* Wed Apr 10 2013 Alexander Kurtakov <akurtako@redhat.com> 3.5-0.3.m6
c242d6
- Dependency on auth pam needs to be scl-ized too.
c242d6
c242d6
* Wed Apr 10 2013 Alexander Kurtakov <akurtako@redhat.com> 3.5-0.2.m6
c242d6
- Build against sclized apache-commons-net.
c242d6
- Fix features to install in features folder.
c242d6
c242d6
* Fri Apr 05 2013 Jeff Johnston <jjohnstn@redhat.com> 3.5-0.1.m6
c242d6
- Update rse to 3.5M6 which is what was shipped for Kepler M6.
c242d6
- Need to use full git tree and tycho to build.
c242d6
c242d6
* Tue Jan 8 2013 Krzysztof Daniel <kdaniel@redhat.com>  3.4-7
c242d6
- Require sclized perl auth.
c242d6
c242d6
* Wed Dec 12 2012 Roland Grunberg <rgrunber@redhat.com> 3.4-6
c242d6
- Change from ExclusiveArch to BuildArch noarch.
c242d6
c242d6
* Wed Dec 12 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.4-5
c242d6
- Depend on SCLized apache-commons-net.
c242d6
c242d6
* Thu Nov 29 2012 Alexander Kurtakov <akurtako@redhat.com> 3.4-4
c242d6
- SCL-ize.
c242d6
c242d6
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.4-3
c242d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
c242d6
c242d6
* Fri Jul 6 2012 Alexander Kurtakov <akurtako@redhat.com> 3.4-2
c242d6
- Fix the commons-net link for rawhide.
c242d6
c242d6
* Thu Jul 05 2012 Jeff Johnston <jjohnstn@redhat.com> - 3.4-1
c242d6
- Update to RSE 3.4
c242d6
c242d6
* Wed May 2 2012 Alexander Kurtakov <akurtako@redhat.com> 3.3.1-2
c242d6
- Use apache-commons-net instead of jakarta-commons-net.
c242d6
- Drop old stuff.
c242d6
c242d6
* Mon Apr 02 2012 Jeff Johnston <jjohnstn@redhat.com> - 3.3.1-1
c242d6
- Update to RSE 3.3.1
c242d6
c242d6
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.3-5
c242d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
c242d6
c242d6
* Wed Dec 28 2011 Orion Poplawski <orion@cora.nwra.com> 3.3-4
c242d6
- Build org.eclipse.rse.useractions feature
c242d6
c242d6
* Wed Dec 14 2011 Jeff Johnston <jjohnstn@redhat.com> 3.3-3
c242d6
- Create server sub-package
c242d6
- Remove nested jars from plug-ins
c242d6
- Remove reconciler %%post and %%postun sections
c242d6
- Bump release
c242d6
c242d6
* Mon Nov 28 2011 Jeff Johnston <swagiaal@redhat.com> 3.3-1
c242d6
- Upgrade to RSE 3.3
c242d6
c242d6
* Wed Oct 5 2011 Sami Wagiaalla <swagiaal@redhat.com> 3.2-4
c242d6
- Use the reconciler to install/uninstall plugins during rpm
c242d6
  post and postun respectively.
c242d6
c242d6
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.2-3
c242d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
c242d6
c242d6
* Wed Jan 5 2011 Alexander Kurtakov <akurtako@redhat.com> 3.2-2
c242d6
- Fix broken symlink.
c242d6
c242d6
* Fri Jul 9 2010 Alexander Kurtakov <akurtako@redhat.com> 3.2-1
c242d6
- Update to 3.2 (Helios).
c242d6
c242d6
* Fri Mar 19 2010 Jeff Johnston <jjohnstn@redhat.com> 3.1.2-1
c242d6
- Rebase to 3.1.2 (Galileo SR2 version).
c242d6
c242d6
* Thu Feb 25 2010 Jeff Johnston <jjohnstn@redhat.com> 3.1.1-3
c242d6
- Resolves: #567874
c242d6
- Remove oro requirement as it is not needed.
c242d6
c242d6
* Tue Oct 27 2009 Jeff Johnston <jjohnstn@redhat.com> 3.1.1-2
c242d6
- Update plugin and feature version property files.
c242d6
c242d6
* Tue Oct 20 2009 Jeff Johnston <jjohnstn@redhat.com> 3.1.1-1
c242d6
- Move to 3.1.1 tarball.
c242d6
c242d6
* Fri Aug 21 2009 Jeff Johnston <jjohnstn@redhat.com> 3.1-2
c242d6
- Add BuildArch noarch.
c242d6
c242d6
* Mon Aug 17 2009 Jeff Johnston <jjohnstn@redhat.com> 3.1-1
c242d6
- Move to 3.1 tarball.
c242d6
c242d6
* Wed Jul 29 2009 Jeff Johnston <jjohnstn@redhat.com> 3.0.3-4
c242d6
- Resolves #514630
c242d6
c242d6
* Tue Jul 28 2009 Jeff Johnston <jjohnstn@redhat.com> 3.0.3-3
c242d6
- Restrict arch support to those supported by prereq CDT.
c242d6
c242d6
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0.3-2
c242d6
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
c242d6
c242d6
* Thu Jul 23 2009 Jeff Johnston <jjohnstn@redhat.com> 3.0.3-1
c242d6
- Initial release.