Blame SPECS/eclipse-emf.spec

d2e53e
%{?scl:%scl_package eclipse-emf}
d2e53e
%{!?scl:%global pkg_name %{name}}
da827b
%{?java_common_find_provides_and_requires}
d2e53e
da827b
# The core sub-package must be archful because it is required to be in
da827b
# libdir by the platform, but we have no natives, so suppress debuginfo
d2e53e
%global debug_package %{nil}
d2e53e
da827b
%global eclipse_dropin %{_datadir}/eclipse/dropins
da827b
%global git_tag R2_10_2
d2e53e
da827b
%global __requires_exclude osgi*
d2e53e
d2e53e
Name:      %{?scl_prefix}eclipse-emf
da827b
Version:   2.10.2
da827b
Release:   2%{?dist}
d2e53e
Summary:   Eclipse Modeling Framework (EMF) Eclipse plug-in
d2e53e
da827b
License:   EPL
da827b
URL:       http://www.eclipse.org/modeling/emf/
d2e53e
Source0:   http://git.eclipse.org/c/emf/org.eclipse.emf.git/snapshot/org.eclipse.emf-%{git_tag}.tar.bz2
d2e53e
d2e53e
# look inside correct directory for platform docs
da827b
Patch0:    eclipse-emf-platform-docs-location.patch
d2e53e
# Build docs correctly
da827b
Patch1:    eclipse-emf-build-docs.patch
da827b
Patch2:    eclipse-emf-fix-missing-index.patch
d2e53e
da827b
BuildRequires: java-devel
da827b
BuildRequires: %{?scl_prefix}eclipse-pde >= 1:4.4.0
d2e53e
d2e53e
%description
d2e53e
The Eclipse Modeling Framework (EMF) allows developers to build tools and
d2e53e
other applications based on a structured data model. From a model
da827b
specification described in XMI, EMF provides tools and run-time support to
d2e53e
produce a set of Java classes for the model, along with a set of adapter
d2e53e
classes that enable viewing and command-based editing of the model, and a
d2e53e
basic editor.
d2e53e
da827b
# TODO: ODA, GWT and RAP components are not packaged.
da827b
d2e53e
%package   core
d2e53e
Epoch:     1
d2e53e
Summary:   Eclipse EMF Core
da827b
Requires:  java
da827b
Requires:  %{?scl_prefix}eclipse-filesystem
da827b
Obsoletes: %{name}-core < 1:%{version}-%{release}
d2e53e
d2e53e
%description core
da827b
EMF bundles required by eclipse-platform.
da827b
da827b
%package   runtime
da827b
Summary:   Eclipse Modeling Framework (EMF) Eclipse plug-in
da827b
Requires:  %{?scl_prefix}eclipse-platform >= 1:4.4.0
da827b
da827b
# Obsoletes/provides added in F22
da827b
Obsoletes: %{name} < %{version}-%{release}
da827b
Provides:  %{name} = %{version}-%{release}
da827b
da827b
BuildArch: noarch
da827b
da827b
%description runtime
da827b
The Eclipse Modeling Framework (EMF) allows developers to build tools and
da827b
other applications based on a structured data model. From a model
da827b
specification described in XMI, EMF provides tools and run-time support to
da827b
produce a set of Java classes for the model, along with a set of adapter
da827b
classes that enable viewing and command-based editing of the model, and a
da827b
basic editor.
da827b
d2e53e
%package   sdk
d2e53e
Summary:   Eclipse EMF SDK
d2e53e
Requires:  %{?scl_prefix}eclipse-pde >= 1:4.4.0
da827b
Requires:  %{name}-runtime = %{version}-%{release}
da827b
da827b
BuildArch: noarch
d2e53e
d2e53e
%description sdk
d2e53e
Documentation and developer resources for the Eclipse Modeling Framework
d2e53e
(EMF) plug-in.
d2e53e
d2e53e
%package   examples
d2e53e
Summary:   Eclipse EMF examples
d2e53e
Requires:  %{name}-sdk = %{version}-%{release}
d2e53e
da827b
BuildArch: noarch
da827b
d2e53e
%description examples
da827b
Install-able versions of the example projects from the SDKs that demonstrate
da827b
how to use the Eclipse Modeling Framework (EMF) plug-ins.
d2e53e
d2e53e
%prep
d2e53e
%setup -q -n org.eclipse.emf-%{git_tag}
d2e53e
da827b
find . -type f -name "*.jar" -exec rm {} \;
da827b
find . -type f -name "*.class" -exec rm {} \;
d2e53e
d2e53e
%patch0
d2e53e
%patch1
d2e53e
%patch2
d2e53e
d2e53e
mv {features,plugins,doc,examples}/* .
d2e53e
rm -rf features plugins doc examples
d2e53e
da827b
# Fix spurious exec perms on license
da827b
chmod 0644 org.eclipse.emf.license-feature/rootfiles/epl-v10.html
da827b
d2e53e
%build
d2e53e
# Note: We use forceContextQualifier because the docs plugins use custom build
d2e53e
#       scripts and don't work otherwise.
da827b
OPTIONS="-DjavacTarget=1.5 -DjavacSource=1.5 -DforceContextQualifier=$(date +v%Y%m%d-%H00)"
d2e53e
d2e53e
# Work around pdebuild entering/leaving symlink it is unaware of.
d2e53e
ln -s %{_builddir}/org.eclipse.emf-%{git_tag}/org.eclipse.emf.license-feature \
d2e53e
  %{_builddir}/org.eclipse.emf-%{git_tag}/org.eclipse.emf.license
d2e53e
da827b
# Build core & runtime features, docs & source features, example features
da827b
%{?scl:scl enable %{scl} - <
da827b
eclipse-pdebuild -f org.eclipse.emf -a "$OPTIONS"
da827b
eclipse-pdebuild -f org.eclipse.emf.sdk -a "$OPTIONS"
da827b
eclipse-pdebuild -f org.eclipse.emf.examples -a "$OPTIONS"
d2e53e
%{?scl:EOF}
d2e53e
d2e53e
%install
d2e53e
install -d -m 755 %{buildroot}%{eclipse_dropin}
da827b
unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-runtime  build/rpmBuild/org.eclipse.emf.zip
d2e53e
unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-sdk      build/rpmBuild/org.eclipse.emf.sdk.zip
d2e53e
unzip -q -n -d %{buildroot}%{eclipse_dropin}/emf-examples build/rpmBuild/org.eclipse.emf.examples.zip
d2e53e
da827b
# The main features are a subset of the sdk feature, so delete duplicates from the sdk feature
da827b
(cd %{buildroot}%{eclipse_dropin}/emf-sdk/eclipse/features && ls %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/features | xargs rm -rf)
da827b
(cd %{buildroot}%{eclipse_dropin}/emf-sdk/eclipse/plugins  && ls %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/plugins  | xargs rm -rf)
da827b
da827b
# Move core features to libdir
da827b
install -d -m 755 %{buildroot}%{_libdir}/eclipse/{features,plugins}
da827b
mv %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/features/org.eclipse.emf.common_* %{buildroot}%{_libdir}/eclipse/features
da827b
mv %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/plugins/org.eclipse.emf.common_* %{buildroot}%{_libdir}/eclipse/plugins
da827b
mv %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/features/org.eclipse.emf.ecore_* %{buildroot}%{_libdir}/eclipse/features
da827b
mv %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/plugins/org.eclipse.emf.ecore_* %{buildroot}%{_libdir}/eclipse/plugins
da827b
mv %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/plugins/org.eclipse.emf.ecore.change_* %{buildroot}%{_libdir}/eclipse/plugins
da827b
mv %{buildroot}%{eclipse_dropin}/emf-runtime/eclipse/plugins/org.eclipse.emf.ecore.xmi_* %{buildroot}%{_libdir}/eclipse/plugins
d2e53e
d2e53e
%files core
da827b
%{_libdir}/eclipse/features/*
da827b
%{_libdir}/eclipse/plugins/*
da827b
%doc org.eclipse.emf.license-feature/rootfiles/*
da827b
da827b
%files runtime
da827b
%{eclipse_dropin}/emf-runtime
d2e53e
%doc org.eclipse.emf.license-feature/rootfiles/*
d2e53e
d2e53e
%files sdk
d2e53e
%{eclipse_dropin}/emf-sdk
d2e53e
d2e53e
%files examples
d2e53e
%{eclipse_dropin}/emf-examples
d2e53e
d2e53e
%changelog
da827b
* Tue Apr 07 2015 Mat Booth <mat.booth@redhat.com> - 2.10.2-2
da827b
- Resolves: rhbz#1208867 - Fix upgrade path from DTS30
d2e53e
da827b
* Wed Mar 04 2015 Mat Booth <mat.booth@redhat.com> - 2.10.2-1
da827b
- Update to Luna SR2 release
da827b
da827b
* Wed Jan 14 2015 Mat Booth <mat.booth@redhat.com> - 2.10.1-3.3
da827b
- Related: rhbz#1175105 - Rebuild to fix disttag
da827b
da827b
* Fri Jan 09 2015 Mat Booth <mat.booth@redhat.com> - 2.10.1-3.2
da827b
- Related: rhbz#1175105 - Don't use java-headless
da827b
da827b
* Wed Jan 07 2015 Mat Booth <mat.booth@redhat.com> - 2.10.1-3.1
da827b
- Resolves: rhbz#1175105 - Import into DTS 3.1
d2e53e
da827b
* Thu Nov 20 2014 Mat Booth <mat.booth@redhat.com> - 2.10.1-3
da827b
- Qualifier must be same on all arches in archful builds
d2e53e
da827b
* Wed Nov 19 2014 Mat Booth <mat.booth@redhat.com> - 2.10.1-2
da827b
- Make core package archful so it can be installed into libdir
da827b
  where eclipse-platform expects it to be
da827b
- Move eclipse-emf -> eclipse-emf-runtime, this is because we can have
da827b
  noarch sub-packages of an archful package, but cannot have archful
da827b
  sub-packages of a noarch package
da827b
- Fix some minor rpmlint errors
d2e53e
da827b
* Wed Oct 01 2014 Mat Booth <mat.booth@redhat.com> - 2.10.1-1
da827b
- Update to Luna SR1 release
da827b
- Drop ancient obsoletes on emf-sdo package
d2e53e
da827b
* Wed Jun 25 2014 Mat Booth <mat.booth@redhat.com> - 2.10.0-1
da827b
- Update to latest upstream release
da827b
- Fix obsoletes on emf-core package, rhbz #1095431
da827b
- Move edit plugin from core to main package
d2e53e
da827b
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.2-3
da827b
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
d2e53e
d2e53e
* Thu Apr 17 2014 Mat Booth <mat.booth@redhat.com> - 2.9.2-2
d2e53e
- Drop XSD packages, these are now packaged separately
d2e53e
- Drop ancient obsolete of emf-standalone.
d2e53e
d2e53e
* Wed Mar 12 2014 Mat Booth <fedora@matbooth.co.uk> - 2.9.2-1
d2e53e
- Update to latest upstream, Kepler SR2
d2e53e
- Drop requires on java, rhbz #1068039
d2e53e
- Remove unused patch
d2e53e
- Update project URL
d2e53e
d2e53e
* Mon Sep 30 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.9.1-1
d2e53e
- Update to latest upstream.  
d2e53e
d2e53e
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.9.0-2
d2e53e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
d2e53e
d2e53e
* Fri Jun 21 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.9.0-1
d2e53e
- Update to Kepler release.
d2e53e
d2e53e
* Fri Jun 21 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.9.0-0.2.git352e28
d2e53e
- 974108: Remove versions and timestamps from EMF filenames.
d2e53e
d2e53e
* Wed May 1 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.9.0-0.1.git352e28
d2e53e
- Update to latest upstream.
d2e53e
d2e53e
* Thu Mar 21 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.1-20
d2e53e
- Initial SCLization.
d2e53e
d2e53e
* Mon Jan 28 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.1-7
d2e53e
- Really fix RHBZ#894154.
d2e53e
d2e53e
* Thu Jan 17 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.1-6
d2e53e
- Move emf.edit back to eclipse-emf-core and symlink it.
d2e53e
d2e53e
* Thu Jan 17 2013 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.1-5
d2e53e
- Fix for RHBZ#894154
d2e53e
d2e53e
* Mon Dec 17 2012 Alexander Kurtakov <akurtako@redhat.com> 1:2.8.1-4
d2e53e
- Remove unneeded things.
d2e53e
d2e53e
* Mon Oct 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.1-3
d2e53e
- Avoid generating automatic OSGi dependencies (yet another attempt).
d2e53e
d2e53e
* Mon Oct 8 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.1-2
d2e53e
- Avoid generating automatic OSGi dependencies. (fix)
d2e53e
d2e53e
* Mon Oct 1 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.1-1
d2e53e
- Update to upstream 2.8.1 release
d2e53e
d2e53e
* Wed Sep 12 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.0-17
d2e53e
- Avoid generating automatic OSGi dependencies.
d2e53e
d2e53e
* Wed Aug 15 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.0-16
d2e53e
- Removed obsolete.
d2e53e
d2e53e
* Tue Aug 14 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.0-15
d2e53e
- Moved Obs emf-core to emf-core package.
d2e53e
- Removed dropins symlinks.
d2e53e
d2e53e
* Tue Aug 14 2012 Krzysztof Daniel <kdaniel@redhat.com> 1:2.8.0-14
d2e53e
- Added Epoch to eclipse-emf-core.
d2e53e
- Updated eclipse-pde dependency version to 4.2.0.
d2e53e
d2e53e
* Mon Aug 13 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-13
d2e53e
- Move emf.edit to eclipse-emf-core.
d2e53e
d2e53e
* Fri Aug 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-12
d2e53e
- Lower eclipse-platform version requirement (CBI Eclipse is not in yet).
d2e53e
d2e53e
* Fri Aug 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-11
d2e53e
- Get rid off conflicts clause.
d2e53e
d2e53e
* Thu Aug 2 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-10
d2e53e
- Moving core back to emf package (for CBI build).
d2e53e
d2e53e
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.8.0-2
d2e53e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
d2e53e
d2e53e
* Tue Jul 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-1
d2e53e
- Update to upstream Juno.
d2e53e
d2e53e
* Mon May 7 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-0.7.e674bb28ad412fc9bc786f2f9b3c157eb2cbdae0
d2e53e
- Update to M7.
d2e53e
d2e53e
* Mon Apr 16 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-0.6.postM6
d2e53e
- Bugs 812870, 812872 - fix building index for documentation.
d2e53e
d2e53e
* Tue Apr 10 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-0.5.postM6
da827b
- Remove %%clean section.
d2e53e
- Remove duplicated plugins.
d2e53e
d2e53e
* Mon Apr 2 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-0.4.postM6
da827b
- Use %%{bindir}/eclipse-pdebuild.
d2e53e
d2e53e
* Thu Mar 29 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-0.3.postM6
d2e53e
- Back noarch.
d2e53e
- Use the eclipse-emf-core from main eclipse-emf.
d2e53e
d2e53e
* Thu Mar 29 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-0.2.postM6
d2e53e
- Removed the noarch tag.
d2e53e
d2e53e
* Thu Mar 29 2012 Krzysztof Daniel <kdaniel@redhat.com> 2.8.0-0.1.postM6
d2e53e
- Update to latest upstream version.
d2e53e
- Package eclipse-emf-core created for the need of Eclipse 4.2. 
d2e53e
- Removed usage of Eclipse reconciler script.
d2e53e
d2e53e
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.7.1-2
d2e53e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
d2e53e
d2e53e
* Tue Nov 29 2011 Jeff Johnston <jjohnstn@redhat.com> 2.7.1-1
d2e53e
- Update to 2.7.1.
d2e53e
- Add rhel flags.
d2e53e
d2e53e
* Wed Oct 5 2011 Sami Wagiaalla <swagiaal@redhat.com> 2.7.0-2
d2e53e
- Use the reconciler to install/uninstall plugins during rpm
d2e53e
  post and postun respectively.
d2e53e
d2e53e
* Thu Sep 15 2011 Roland Grunberg <rgrunber@redhat.com> 2.7.0-1
d2e53e
- Update to 2.7.0.
d2e53e
- Re-apply necessary patches, content-handler error fixed upstream.
d2e53e
- licenses now exist in org.eclipse.{emf,xsd}.license-feature only.
d2e53e
d2e53e
* Wed Sep 14 2011 Roland Grunberg <rgrunber@redhat.com> 2.6.1-2
d2e53e
- Fix RHBZ #716165 using old patches.
d2e53e
- Fix ContentHandler casting issue.
d2e53e
d2e53e
* Fri Mar 18 2011 Mat Booth <fedora@matbooth.co.uk> 2.6.1-1
d2e53e
- Update to 2.6.1.
d2e53e
d2e53e
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.6.0-2
d2e53e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
d2e53e
d2e53e
* Mon Jul 19 2010 Charley Wang <chwang@redhat.com> - 2.6.0-1
d2e53e
- Update to 2.6.0
d2e53e
d2e53e
* Sat Sep 19 2009 Mat Booth <fedora@matbooth.co.uk> - 2.5.0-4
d2e53e
- Re-enable jar repacking now that RHBZ #461854 has been resolved.
d2e53e
d2e53e
* Fri Jul 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.5.0-3
d2e53e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild
d2e53e
d2e53e
* Thu Jul 02 2009 Mat Booth <fedora@matbooth.co.uk> 2.5.0-2
d2e53e
- SDK requires PDE for example plug-in projects.
d2e53e
d2e53e
* Sun Jun 28 2009 Mat Booth <fedora@matbooth.co.uk> 2.5.0-1
d2e53e
- Update to 2.5.0 final release (Galileo).
d2e53e
- Build the features seperately to allow for a saner %%files section.
d2e53e
d2e53e
* Fri May 22 2009 Alexander Kurtakov <akurtako@redhat.com> 2.5.0-0.2.RC1
d2e53e
- Update to 2.5.0 RC1.
d2e53e
- Use %%global instead of %%define. 
d2e53e
d2e53e
* Sat Apr 18 2009 Mat Booth <fedora@matbooth.co.uk> 2.5.0-0.1.M6
d2e53e
- Update to Milestone 6 release of 2.5.0.
d2e53e
- Require Eclipse 3.5.0.
d2e53e
d2e53e
* Tue Apr 7 2009 Alexander Kurtakov <akurtako@redhat.com> 2.4.2-3
d2e53e
- Fix directory ownership.
d2e53e
d2e53e
* Mon Mar 23 2009 Alexander Kurtakov <akurtako@redhat.com> 2.4.2-2
d2e53e
- Rebuild to not ship p2 context.xml.
d2e53e
- Remove context.xml from %%files section.
d2e53e
d2e53e
* Sat Feb 28 2009 Mat Booth <fedora@matbooth.co.uk> 2.4.2-1
d2e53e
- Update for Ganymede SR2.
d2e53e
d2e53e
* Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.4.1-5
d2e53e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
d2e53e
d2e53e
* Tue Feb 03 2009 Mat Booth <fedora@matbooth.co.uk> 2.4.1-4
d2e53e
- Make context qualifier the same as upstream.
d2e53e
d2e53e
* Sat Jan 10 2009 Mat Booth <fedora@matbooth.co.uk> 2.4.1-3
d2e53e
- Removed AOT bits and change package names to what they used to be.
d2e53e
- Obsolete standalone package.
d2e53e
d2e53e
* Tue Dec 23 2008 Mat Booth <fedora@matbooth.co.uk> 2.4.1-2
d2e53e
- Build example installer plugins using the source from the tarball instead of
d2e53e
  trying to get the examples from source control a second time.
d2e53e
d2e53e
* Fri Dec 12 2008 Mat Booth <fedora@matbooth.co.uk> 2.4.1-1
d2e53e
- Initial release, based on eclipse-gef spec file, but with disabled AOT
d2e53e
  compiled bits because of RHBZ #477707.