Blame SPECS/eclipse-ecf.spec

e483c9
%{?scl:%scl_package eclipse-ecf}
e483c9
%{!?scl:%global pkg_name %{name}}
85188c
%{?java_common_find_provides_and_requires}
e483c9
85188c
# The core sub-package must be archful because it is required to be in
85188c
# libdir by the platform, but we have no natives, so suppress debuginfo
85188c
%global debug_package %{nil}
e483c9
85188c
# This exclude breaks the cyclic dependency on the platform to aide in
85188c
# bootstrapping
85188c
%global __requires_exclude osgi*
e483c9
85188c
%global git_tag R-Release_HEAD-sdk_feature-144_2014-11-16_21-26-19
e483c9
e483c9
Name:           %{?scl_prefix}eclipse-ecf
85188c
Version:        3.9.1
85188c
Release:        2.5%{?dist}
85188c
Summary:        Eclipse Communication Framework (ECF) Eclipse plug-in
e483c9
e483c9
License:        EPL
e483c9
URL:            http://www.eclipse.org/ecf/
85188c
Source0:        http://git.eclipse.org/c/ecf/org.eclipse.ecf.git/snapshot/org.eclipse.ecf-%{git_tag}.tar.bz2
e483c9
85188c
BuildRequires:  java-devel
85188c
BuildRequires:  %{?scl_prefix}eclipse-pde >= 1:4.3.0
85188c
BuildRequires:  %{?scl_prefix_java_common}httpcomponents-client
85188c
BuildRequires:  %{?scl_prefix_java_common}httpcomponents-core
85188c
BuildRequires:  %{?scl_prefix_java_common}apache-commons-codec
85188c
BuildRequires:  %{?scl_prefix_java_common}apache-commons-logging
e483c9
e483c9
%description
85188c
ECF is a set of frameworks for building communications into applications and
85188c
services. It provides a lightweight, modular, transport-independent, fully
85188c
compliant implementation of the OSGi Remote Services standard.
e483c9
85188c
%package   core
85188c
Summary:   Eclipse ECF Core
85188c
Requires:  java
85188c
Requires:  %{?scl_prefix}eclipse-filesystem
85188c
Obsoletes: %{name}-core < %{version}-%{release}
e483c9
e483c9
%description core
e483c9
ECF bundles required by eclipse-platform.
e483c9
e483c9
%prep
85188c
%setup -q -n org.eclipse.ecf-%{git_tag}
e483c9
85188c
find . -type f -name "*.jar" -exec rm {} \;
85188c
find . -type f -name "*.class" -exec rm {} \;
e483c9
e483c9
#get just the bits we need
e483c9
mkdir -p ecf/plugins
e483c9
mkdir -p ecf/features
e483c9
e483c9
cp -r releng/features/org.eclipse.ecf.core.{,ssl.}feature \
e483c9
    ecf/features
e483c9
cp -r releng/features/org.eclipse.ecf.filetransfer.httpclient4.{,ssl.}feature \
e483c9
    ecf/features
e483c9
cp -r releng/features/org.eclipse.ecf.filetransfer.{,ssl.}feature \
e483c9
    ecf/features
e483c9
e483c9
cp -r framework/bundles/org.eclipse.ecf ecf/plugins
e483c9
cp -r framework/bundles/org.eclipse.ecf.identity ecf/plugins
e483c9
cp -r framework/bundles/org.eclipse.ecf.ssl ecf/plugins
e483c9
cp -r framework/bundles/org.eclipse.ecf.filetransfer ecf/plugins
e483c9
cp -r providers/bundles/org.eclipse.ecf.provider.filetransfer ecf/plugins
e483c9
cp -r providers/bundles/org.eclipse.ecf.provider.filetransfer.ssl ecf/plugins
e483c9
cp -r providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient4 ecf/plugins
e483c9
cp -r providers/bundles/org.eclipse.ecf.provider.filetransfer.httpclient4.ssl ecf/plugins
e483c9
e483c9
rm -rf `ls | grep -v "ecf"`
e483c9
85188c
# Orbit deps for PDE build
85188c
%{?scl:scl enable %{scl_maven} %{scl} - <
e483c9
mkdir -p deps
85188c
build-jar-repository -s -p deps \
85188c
  httpcomponents/httpclient httpcomponents/httpcore commons-codec commons-logging
85188c
%{?scl:EOF}
e483c9
85188c
# Allow building on java > 1.4
e483c9
sed -i -e 's#(Object) ((URIID) o)#((URIID) o)#g' ecf/plugins/org.eclipse.ecf.identity/src/org/eclipse/ecf/core/identity/URIID.java
e483c9
e483c9
%build
85188c
OPTIONS="-DforceContextQualifier=$(date +v%Y%m%d-%H00)"
85188c
85188c
%{?scl:scl enable %{scl_maven} %{scl} - <
85188c
eclipse-pdebuild -f org.eclipse.ecf.core.feature -j "$OPTIONS" -o `pwd`/deps
85188c
eclipse-pdebuild -f org.eclipse.ecf.core.ssl.feature -j "$OPTIONS" -o `pwd`/deps
85188c
eclipse-pdebuild -f org.eclipse.ecf.filetransfer.feature -j "$OPTIONS" -o `pwd`/deps
85188c
eclipse-pdebuild -f org.eclipse.ecf.filetransfer.ssl.feature -j "$OPTIONS" -o `pwd`/deps
85188c
eclipse-pdebuild -f org.eclipse.ecf.filetransfer.httpclient4.feature -j "$OPTIONS" -o `pwd`/deps
85188c
eclipse-pdebuild -f org.eclipse.ecf.filetransfer.httpclient4.ssl.feature -j "$OPTIONS" -o `pwd`/deps
e483c9
%{?scl:EOF}
e483c9
e483c9
%install
85188c
install -d -m 755 %{buildroot}%{_libdir}/eclipse/{features,plugins}
85188c
85188c
unzip -q -n -d %{buildroot}%{_libdir} build/rpmBuild/org.eclipse.ecf.core.feature.zip
85188c
unzip -q -n -d %{buildroot}%{_libdir} build/rpmBuild/org.eclipse.ecf.core.ssl.feature.zip
85188c
unzip -q -n -d %{buildroot}%{_libdir} build/rpmBuild/org.eclipse.ecf.filetransfer.feature.zip
85188c
unzip -q -n -d %{buildroot}%{_libdir} build/rpmBuild/org.eclipse.ecf.filetransfer.ssl.feature.zip
85188c
unzip -q -n -d %{buildroot}%{_libdir} build/rpmBuild/org.eclipse.ecf.filetransfer.httpclient4.feature.zip
85188c
unzip -q -n -d %{buildroot}%{_libdir} build/rpmBuild/org.eclipse.ecf.filetransfer.httpclient4.ssl.feature.zip
85188c
85188c
mkdir -p %{buildroot}%{_javadir}/eclipse
85188c
85188c
# Symlink jars into javadir
85188c
pushd %{buildroot}%{_javadir}/eclipse
85188c
for J in ecf{,.identity,.ssl,.filetransfer,.provider.filetransfer{,.ssl,.httpclient4{,.ssl}}}  ; do
85188c
    DIR=%{?scl:../../../../}../../../..%{_libdir}/eclipse
85188c
    [ -e "`ls $DIR/plugins/org.eclipse.${J}_*.jar`" ] && ln -s $DIR/plugins/org.eclipse.${J}_*.jar ${J}.jar
e483c9
done
e483c9
popd
e483c9
85188c
# Remove stuff that will be symlinked by the platform
85188c
rm %{buildroot}%{_libdir}/eclipse/plugins/org.apache*
85188c
e483c9
%files core
85188c
%{_libdir}/eclipse/features/*
85188c
%{_libdir}/eclipse/plugins/*
85188c
%{_javadir}/eclipse/*
e483c9
%doc ecf/features/org.eclipse.ecf.core.feature/*.html
e483c9
e483c9
%changelog
85188c
* Tue Apr 07 2015 Mat Booth <mat.booth@redhat.com> - 3.9.1-2.5
85188c
- Resolves: rhbz#1208867 - Fix upgrade path from DTS30
85188c
85188c
* Tue Jan 13 2015 Mat Booth <mat.booth@redhat.com> - 3.9.1-2.4
85188c
- Related: rhbz#1175105 - Rebuild for latest httpcomponents
85188c
- Also remove temp versions fix, fix disttag
e483c9
85188c
* Mon Jan 12 2015 Mat Booth <mat.booth@redhat.com> - 3.9.1-2.3
85188c
- Related: rhbz#1175105 - Temporarily fix dep versions so we can use
85188c
  java-common collection deps in the future
85188c
85188c
* Fri Jan 09 2015 Mat Booth <mat.booth@redhat.com> - 3.9.1-2.2
85188c
- Related: rhbz#1175105 - Don't use java-headless
85188c
85188c
* Wed Jan 07 2015 Mat Booth <mat.booth@redhat.com> - 3.9.1-2.1
85188c
- Resolves: rhbz#1175105 - Import into DTS 3.1
85188c
85188c
* Tue Dec 09 2014 Roland Grunberg <rgrunber@redhat.com> - 3.9.1-2
85188c
- Symlink ECF bundles into javadir.
85188c
85188c
* Thu Nov 27 2014 Mat Booth <mat.booth@redhat.com> - 3.9.1-1
e483c9
- Update to latest upstream release
e483c9
85188c
* Thu Nov 27 2014 Mat Booth <mat.booth@redhat.com> - 3.9.0-3
85188c
- Make core package archful so it can be installed into libdir
85188c
  where eclipse-platform expects it to be
e483c9
85188c
* Tue Nov 18 2014 Mat Booth <mat.booth@redhat.com> - 3.9.0-2
85188c
- Rebuild for new commons-codec
e483c9
85188c
* Tue Aug 19 2014 Mat Booth <mat.booth@redhat.com> - 3.9.0-1
85188c
- Update to latest upstream release
85188c
- Drop unneeded patch
e483c9
85188c
* Wed Aug 6 2014 Alexander Kurtakov <akurtako@redhat.com> 3.8.1-3
85188c
- Rebuild against latest httpcomponents.
e483c9
85188c
* Mon Jul 21 2014 Alexander Kurtakov <akurtako@redhat.com> 3.8.1-2
85188c
- Rebuild for apache-commons-logging 1.2.
85188c
85188c
* Wed Jun 25 2014 Mat Booth <mat.booth@redhat.com> - 3.8.1-1
85188c
- Update to latest upstream release
85188c
85188c
* Wed Jun 11 2014 Roland Grunberg <rgrunber@redhat.com> - 3.8.0-4
85188c
- Remove problematic manifest alterations from specfile.
85188c
85188c
* Fri Jun 06 2014 Mat Booth <mat.booth@redhat.com> - 3.8.0-3
85188c
- Rebuild against latest httpcomponents.
e483c9
e483c9
* Mon May 12 2014 Alexander Kurtakov <akurtako@redhat.com> 3.8.0-2
e483c9
- Rebuild against latest httpcomponents.
e483c9
e483c9
* Wed Mar 19 2014 Mat Booth <fedora@matbooth.co.uk> - 3.8.0-1
e483c9
- Update to latest upstream.
e483c9
- Now necessary to explicitly build more fine-grained features.
e483c9
- Drop unneeded dep on jakarta-commons-httpclient.
e483c9
- Fixed mixed use of tabs and spaces.
e483c9
- Switch core package to R: java-headless, rhbz #1068037
e483c9
e483c9
* Tue Sep 3 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.6.1-1
e483c9
- Update to latest upstream.
e483c9
e483c9
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.6.0-3
e483c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
e483c9
e483c9
* Fri Jun 21 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.6.0-2
e483c9
- 974112: Remove versions and timestamps from ECF.
e483c9
e483c9
* Wed May 1 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.6.0-1
e483c9
- Update to latest upstream.
e483c9
e483c9
* Mon Apr 8 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.5.7-0.6
e483c9
- Rebuild with old commons logging.
e483c9
e483c9
* Mon Apr 8 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.5.7-0.5
e483c9
- Drop v3 httpclient.
e483c9
- Make dependency to commons loggigng less strict.
e483c9
e483c9
* Wed Mar 20 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.5.7-0.4
e483c9
- Add direct dependency to jakarta-commons-httpclient.
e483c9
e483c9
* Wed Mar 20 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.5.7-0.3
e483c9
- Symlink deps against /usr/share/java/.
e483c9
e483c9
* Fri Mar 15 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.5.7-0.2
e483c9
- Explicitly build httpclient4 feature.
e483c9
e483c9
* Thu Mar 14 2013 Krzysztof Daniel <kdaniel@redhat.com> 3.5.7-0.1
e483c9
- Update to latest upstream.
e483c9
- Initial SCLization.
e483c9
e483c9
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.5.6-8
e483c9
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
e483c9
e483c9
* Mon Oct 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.5.6-7
e483c9
- Use __requires_exclude instead of __provides_exclude.
e483c9
e483c9
* Mon Oct 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.5.6-6
e483c9
- Try out __provides_exclude
e483c9
e483c9
* Mon Oct 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.5.6-5
e483c9
- Use new way of changing auto required dependencies.
e483c9
e483c9
* Fri Oct 5 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.5.6-4
e483c9
- Don't generate autorreuquire.
e483c9
e483c9
* Mon Aug 27 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.5.6-3
e483c9
- Don't duplicate org.apache* plugins
e483c9
- Use context qualifier to avoid constant feature version changes.
e483c9
e483c9
* Wed Aug 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.5.6-2
e483c9
- Review issues fixed.
e483c9
e483c9
* Wed Aug 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 3.5.6-1
e483c9
- Initial packaging.