Projects
Mega:24.09
eclipse-emf
_service:tar_scm:eclipse-emf.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:eclipse-emf.spec of Package eclipse-emf
%global _eclipsedir %{_prefix}/lib/eclipse %global emf_tag R2_32_0 %global xsd_tag XSD_R2_32_0 %bcond_with bootstrap Name: eclipse-emf Version: 2.32.0 Release: 1 Summary: EMF and XSD Eclipse plug-ins License: EPL-2.0 URL: http://www.eclipse.org/modeling/emf/ Source0: http://git.eclipse.org/c/emf/org.eclipse.emf.git/snapshot/org.eclipse.emf-%{emf_tag}.tar.gz Source1: http://git.eclipse.org/c/xsd/org.eclipse.xsd.git/snapshot/org.eclipse.emf-%{xsd_tag}.tar.gz Patch0: 0001-Remove-dependency-on-nebula.patch Patch1: 0002-Remove-test-that-requires-talking-to-the-internet.patch BuildRequires: tycho tycho-extras %if %{without bootstrap} BuildRequires: eclipse-pde %endif BuildArch: noarch %description The Eclipse Modeling Framework (EMF) and XML Schema Definition (XSD) plug-ins. %package core Epoch: 1 Summary: Eclipse EMF Core Bundles %description core Core EMF bundles required by the Eclipse platform. %if %{without bootstrap} %package runtime Summary: Eclipse Modeling Framework (EMF) Eclipse plug-in %description runtime The Eclipse Modeling Framework (EMF) allows developers to build tools and other applications based on a structured data model. From a model specification described in XMI, EMF provides tools and run-time support to produce a set of Java classes for the model, along with a set of adapter classes that enable viewing and command-based editing of the model, and a basic editor. %package xsd Summary: XML Schema Definition (XSD) Eclipse plug-in Obsoletes: eclipse-xsd < %{version}-%{release} Provides: eclipse-xsd = %{version}-%{release} %description xsd The XML Schema Definition (XSD) plug-in is a library that provides an API for manipulating the components of an XML Schema as described by the W3C XML Schema specifications, as well as an API for manipulating the DOM-accessible representation of XML Schema as a series of XML documents. %package sdk Summary: Eclipse EMF and XSD SDK Obsoletes: %{name}-tests < %{version}-%{release} Obsoletes: %{name}-examples < %{version}-%{release} Obsoletes: eclipse-xsd-examples < %{version}-%{release} Obsoletes: eclipse-xsd-sdk < %{version}-%{release} Provides: eclipse-xsd-sdk = %{version}-%{release} %description sdk Documentation and developer resources for the Eclipse Modeling Framework (EMF) plug-in and XML Schema Definition (XSD) plug-in. %endif %prep %setup -c -T -q -a 0 -a 1 mv org.eclipse.emf-%{emf_tag}/ org.eclipse.emf/ mv org.eclipse.emf-%{xsd_tag}/ org.eclipse.xsd/ %patch0 -p1 %patch1 -p1 pushd org.eclipse.emf %pom_remove_plugin ":maven-toolchains-plugin" releng/org.eclipse.emf.parent sed -i -e '/org.eclipse.emf.gwt/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml sed -i -e '/org.eclipse.emf.oda/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml sed -i -e '/org.eclipse.emf.rap/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml sed -i -e '/codegen.ecore.xtext/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml sed -i -e '/ecore.xcore/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml sed -i -e '/test.edit.ui.rap/d' releng/org.eclipse.emf.parent/{plugins,features}/pom.xml %pom_xpath_remove "plugin[@id='org.eclipse.emf.test.edit.ui.rap']" tests/org.eclipse.emf.tests-feature/feature.xml %pom_disable_module "../../../examples/org.eclipse.emf.examples-feature" releng/org.eclipse.emf.parent/features %pom_disable_module "../../../../org.eclipse.xsd/features/org.eclipse.xsd.example-feature" releng/org.eclipse.emf.parent/features sed -i -e '/<module>.*examples/d' releng/org.eclipse.emf.parent/plugins/pom.xml %pom_xpath_remove "plugin[@id='org.eclipse.emf.test.examples']" tests/org.eclipse.emf.tests-feature/feature.xml %pom_disable_module "tp" releng/org.eclipse.emf.parent %pom_disable_module "../org.eclipse.emf.site" releng/org.eclipse.emf.parent %pom_disable_module '../../../features/org.eclipse.emf.all-feature' releng/org.eclipse.emf.parent/features %pom_remove_plugin :target-platform-configuration releng/org.eclipse.emf.parent %pom_remove_dep :tycho-sourceref-jgit releng/org.eclipse.emf.parent %pom_remove_dep :tycho-buildtimestamp-jgit releng/org.eclipse.emf.parent %pom_xpath_remove 'pom:configuration/pom:timestampProvider' releng/org.eclipse.emf.parent %pom_xpath_remove 'pom:configuration/pom:jgit.ignore' releng/org.eclipse.emf.parent %pom_xpath_remove 'pom:configuration/pom:jgit.dirtyWorkingTree' releng/org.eclipse.emf.parent %pom_xpath_remove 'pom:configuration/pom:sourceReferences' releng/org.eclipse.emf.parent %if %{with bootstrap} %pom_xpath_replace "pom:modules" "<modules> <module>../../../features/org.eclipse.emf.base-feature</module> <module>../../../features/org.eclipse.emf.license-feature</module> <module>../../../features/org.eclipse.emf.common-feature</module> <module>../../../features/org.eclipse.emf.ecore-feature</module> </modules>" releng/org.eclipse.emf.parent/features %pom_xpath_replace "pom:modules" "<modules> <module>../../../plugins/org.eclipse.emf.common</module> <module>../../../plugins/org.eclipse.emf.ecore.change</module> <module>../../../plugins/org.eclipse.emf.ecore.xmi</module> <module>../../../plugins/org.eclipse.emf.ecore</module> </modules>" releng/org.eclipse.emf.parent/plugins %endif popd %mvn_package "::pom::" __noinstall %mvn_package ":org.eclipse.{emf,xsd}.license" __noinstall %mvn_package ":org.eclipse.emf.tests" __noinstall %mvn_package ":org.eclipse.emf.test.*" __noinstall %if %{with bootstrap} %mvn_package ":::{sources,sources-feature}:" __noinstall %else %mvn_package ":::{sources,sources-feature}:" sdk %endif %mvn_package ":org.eclipse.emf.{sdk,doc,cheatsheets,example.installer}" sdk %mvn_package ":org.eclipse.xsd.{sdk,doc,cheatsheets,example.installer}" sdk %mvn_package "org.eclipse.emf.features:org.eclipse.emf.{base,common,ecore}" %mvn_package "org.eclipse.emf:org.eclipse.emf.{common,ecore,ecore.change,ecore.xmi}" %mvn_package ":org.eclipse.xsd*" xsd %mvn_package ":org.eclipse.emf.mapping.xsd**" xsd %mvn_package ":" runtime %build QUALIFIER=$(date -u -d"$(stat --format=%y %{SOURCE0})" +v%Y%m%d-%H%M) %mvn_build -j -- -f org.eclipse.emf/pom.xml -DforceContextQualifier=$QUALIFIER -Dtarget-platform=2021-03 -Dmaven.test.failure.ignore=true %install %mvn_install install -d -m 755 %{buildroot}%{_eclipsedir} mv %{buildroot}%{_datadir}/eclipse/droplets/emf/{plugins,features} %{buildroot}%{_eclipsedir} rm -r %{buildroot}%{_datadir}/eclipse/droplets/emf sed -i -e 's|%{_datadir}/eclipse/droplets/emf|%{_eclipsedir}|' %{buildroot}%{_datadir}/maven-metadata/eclipse-emf.xml sed -i -e 's|%{_datadir}/eclipse/droplets/emf/features/|%{_eclipsedir}/features/|' \ -e 's|%{_datadir}/eclipse/droplets/emf/plugins/|%{_eclipsedir}/plugins/|' .mfiles sed -i -e '/droplets/d' .mfiles for del in $( (cd %{buildroot}%{_eclipsedir}/plugins && ls | grep -v -e '^org\.eclipse\.emf' ) ) ; do rm %{buildroot}%{_eclipsedir}/plugins/$del sed -i -e "/$del/d" .mfiles done %files core -f .mfiles %license org.eclipse.emf/features/org.eclipse.emf.license-feature/*.html %if %{without bootstrap} %files runtime -f .mfiles-runtime %files xsd -f .mfiles-xsd %files sdk -f .mfiles-sdk %endif %changelog * Fri Jun 28 2024 yaoxin <yao_xin001@hoperun.com> - 2.32.0-1 - Upgrade to 2.32.0 * Thu Aug 27 2020 yanan li <liyanan032@huawei.com> - 2.16.0-1 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2