From bb53ce9a15bacce0366d8f660f801f19b49e7d68 Mon Sep 17 00:00:00 2001 From: Tomas Hrcka Date: Aug 18 2020 09:49:53 +0000 Subject: Revert "Superceded by modularity package" This reverts commit b786f02f995decda1043c1eb5d2e2cd62d35b92b. Unretirement request: https://pagure.io/releng/issue/9691 Signed-off-by: Tomas Hrcka --- diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..568f8c0 --- /dev/null +++ b/.gitignore @@ -0,0 +1,5 @@ +/*.src.rpm +/*.tar.xz +/.build-*.log +/noarch/ +/.project diff --git a/dead.package b/dead.package deleted file mode 100644 index d1a4af0..0000000 --- a/dead.package +++ /dev/null @@ -1 +0,0 @@ -Superceded by modularity package diff --git a/eclipse-usage.spec b/eclipse-usage.spec new file mode 100644 index 0000000..6a771ad --- /dev/null +++ b/eclipse-usage.spec @@ -0,0 +1,126 @@ +%global gittag %{version}.AM1 + +Name: eclipse-usage +Version: 4.11.0 +Release: 2%{?dist} +Summary: Usage reporting plug-ins for Eclipse +License: EPL-1.0 and ASL 2.0 +URL: http://tools.jboss.org/ + +# Generate tarball with: ./get-jbosstools.sh +Source0: jbosstools-%{gittag}.tar.xz +Source1: get-jbosstools.sh + +BuildArch: noarch + +# Upstream Eclipse no longer supports non-64bit arches +ExcludeArch: s390 %{arm} %{ix86} + +BuildRequires: tycho +BuildRequires: tycho-extras +BuildRequires: eclipse-epp-logging +BuildRequires: maven-install-plugin +BuildRequires: maven-plugin-build-helper + +%description +Usage reporting plug-ins for Eclipse. + +%prep +%setup -q -n jbosstools-%{gittag} + +# Fix whitespace error in xml declaration +sed -i -e '1s/\t//' jbosstools-build/parent/pom.xml + +# Fix perms on license +chmod -x jbosstools-base/foundation/features/org.jboss.tools.foundation.license.feature/license.html + +# Remove unnecessary plugins from parent pom +%pom_remove_plugin org.jboss.tools.tycho-plugins:repository-utils jbosstools-build/parent +%pom_remove_plugin org.jacoco:jacoco-maven-plugin jbosstools-build/parent +%pom_remove_plugin org.apache.maven.plugins:maven-enforcer-plugin jbosstools-build/parent +%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin jbosstools-build/parent +# need BOTH permutations here because we have 1.1 (maven-download-plugin) and 1.2 (download-maven-plugin) in parent pom +%pom_remove_plugin com.googlecode.maven-download-plugin:maven-download-plugin jbosstools-build/parent +%pom_remove_plugin com.googlecode.maven-download-plugin:download-maven-plugin jbosstools-build/parent + +# Remove dep on jgit +%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:dependencies" jbosstools-build/parent +%pom_xpath_remove "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:configuration/pom:sourceReferences" jbosstools-build/parent +%pom_xpath_set "pom:plugin[pom:artifactId='tycho-packaging-plugin']/pom:configuration/pom:timestampProvider" "default" jbosstools-build/parent + +# Disable everything except for usage plugin +%pom_disable_module org.jboss.tools.foundation.feature jbosstools-base/foundation/features +%pom_disable_module org.jboss.tools.foundation.security.linux.feature jbosstools-base/foundation/features +%pom_disable_module org.jboss.tools.foundation.test.feature jbosstools-base/foundation/features +%pom_disable_module plugins jbosstools-base/foundation +%pom_disable_module tests jbosstools-base/foundation +%pom_disable_module org.jboss.tools.usage.test.feature jbosstools-base/usage/features +%pom_disable_module org.jboss.tools.usage.test jbosstools-base/usage/tests + +# No need to install poms or license feature +%mvn_package "::pom::" __noinstall +%mvn_package ":org.jboss.tools.foundation.license.feature" __noinstall + +%build +pushd jbosstools-build +%mvn_build -j -- install -f parent/pom.xml +popd + +%mvn_build -j -- -Dno-target-platform -f jbosstools-base/pom.xml -e + +%install +%mvn_install + +%files -f .mfiles +%license jbosstools-base/usage/plugins/org.jboss.tools.usage/about.html + +%changelog +* Wed Jul 24 2019 Fedora Release Engineering - 4.11.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Fri Mar 15 2019 Mat Booth - 4.11.0-1 +- Update to latest release +- Update license tag +- Restrict to same architectures as Eclipse itself + +* Thu Jan 31 2019 Fedora Release Engineering - 4.9.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Mon Sep 10 2018 Mat Booth - 4.9.0-1 +- Update to latest upstream release + +* Thu Jul 12 2018 Fedora Release Engineering - 4.6.0-0.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Tue Jun 12 2018 Mat Booth - 4.6.0-0.1 +- Update to AM2 release of 4.6.0 + +* Wed Mar 21 2018 Mat Booth - 4.5.3-0.1 +- Update to AM2 release of 4.5.3 + +* Wed Feb 07 2018 Fedora Release Engineering - 4.5.2-0.2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Mon Dec 18 2017 Mat Booth - 4.5.2-0.1 +- Update to latest release + +* Wed Aug 02 2017 Nick Boldt - 4.5.0-1 +- Update to latest release + +* Wed Jul 26 2017 Fedora Release Engineering - 4.4.4-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild + +* Tue Jul 04 2017 Nick Boldt - 4.4.4-1 +- Update to latest release + +* Tue Jan 17 2017 Mat Booth - 4.4.3-1 +- Update to latest release + +* Wed Oct 26 2016 Mat Booth - 4.4.1-3 +- Augment the product ID instead of the distro name + +* Fri Oct 21 2016 Mat Booth - 4.4.1-2 +- Trim down the source tarball and fix the license tag + +* Tue Sep 27 2016 Mat Booth - 4.4.1-1 +- Initial package diff --git a/get-jbosstools.sh b/get-jbosstools.sh new file mode 100755 index 0000000..384318b --- /dev/null +++ b/get-jbosstools.sh @@ -0,0 +1,32 @@ +#!/usr/bin/bash + +gittag="jbosstools-4.11.0.AM1" + +MODULES="jbosstools-base \ + jbosstools-build" + +mkdir $gittag +pushd $gittag + +# JBoss Tools is split across many repositories +for module in $MODULES; do + wget https://github.com/jbosstools/$module/archive/$gittag.tar.gz + mkdir $module + tar --strip-components=1 --directory=$module -xf $gittag.tar.gz + rm $gittag.tar.gz +done + +# Delete pre-built artifacts +for ext in jar war zip class; do + find -type f -name *.$ext -delete +done + +# Delete modules we are not currently interested in building +for m in jbosstools-base/{site,tests,common,stacks,runtime} ; do + rm -rf $m && sed -i -e "/$(basename $m)/d" $(dirname $m)/pom.xml +done + +popd +tar cJf $gittag.tar.xz $gittag/ +rm -r $gittag/ + diff --git a/sources b/sources new file mode 100644 index 0000000..b27ff99 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (jbosstools-4.11.0.AM1.tar.xz) = dd4410392124defbeadb1b76e7206e76a0671d6cb1e216ba9f8120ffa7abd6b47c5f8e4437430ea5fe2661c5c4f5dce620df97dc97f92e36c0fe57fd4d8f4218