Blame SPECS/eclipse-license.spec

999e8f
# We need to ship both versions of the EPL
999e8f
# Some plug-ins are moving to EPL 2, but some plug-ins might stay with EPL 1
999e8f
%global eplv2_ver 2.0.1
999e8f
%global eplv2_tag org.eclipse.license-license-%{eplv2_ver}.v20180423-1114
999e8f
%global eplv1_ver 1.0.1
999e8f
%global eplv1_tag org.eclipse.license-license-%{eplv1_ver}.v20140414-1359
999e8f
999e8f
Name:      eclipse-license
999e8f
Version:   %{eplv2_ver}
999e8f
Release:   7%{?dist}
999e8f
Summary:   Shared license features for Eclipse
999e8f
License:   EPL-1.0 and EPL-2.0
999e8f
URL:       http://wiki.eclipse.org/CBI
999e8f
Source1:   http://git.eclipse.org/c/cbi/org.eclipse.license.git/snapshot/%{eplv1_tag}.tar.bz2
999e8f
Source2:   http://git.eclipse.org/c/cbi/org.eclipse.license.git/snapshot/%{eplv2_tag}.tar.bz2
999e8f
999e8f
BuildArch: noarch
999e8f
999e8f
ExclusiveArch:  x86_64
999e8f
999e8f
BuildRequires: tycho
999e8f
999e8f
%description
999e8f
Shared license features for Eclipse. Other features may consume these
999e8f
features to avoid unnecessary duplication of license boiler plate.
999e8f
999e8f
%package -n %{name}1
999e8f
Version:   %{eplv1_ver}
999e8f
Summary:   Shared EPL v1.0 license feature for Eclipse
999e8f
License:   EPL-1.0
999e8f
# Provides/Obsoletes added in F28
999e8f
Provides:  eclipse-license = %{eplv1_ver}-20
999e8f
Obsoletes: eclipse-license < %{eplv2_ver}-%{release}
999e8f
999e8f
%description -n %{name}1
999e8f
Shared license feature for Eclipse. Other features may consume this
999e8f
feature to avoid unnecessary duplication of license boiler plate.
999e8f
999e8f
%package -n %{name}2
999e8f
Version:   %{eplv2_ver}
999e8f
Summary:   Shared EPL v2.0 license feature for Eclipse
999e8f
License:   EPL-2.0
999e8f
999e8f
%description -n %{name}2
999e8f
Shared license feature for Eclipse. Other features may consume this
999e8f
feature to avoid unnecessary duplication of license boiler plate.
999e8f
999e8f
%prep
999e8f
%setup -q -c -T
999e8f
999e8f
tar xf %{SOURCE1}
999e8f
tar xf %{SOURCE2}
999e8f
999e8f
%pom_remove_plugin ":tycho-packaging-plugin" */pom.xml
999e8f
999e8f
%build
999e8f
pushd %{eplv1_tag}
999e8f
%mvn_build -j
999e8f
popd
999e8f
999e8f
pushd %{eplv2_tag}
999e8f
sed -i -e 's/\(-SNAPSHOT\|\.qualifier\)/.v20180423-1114/' pom.xml */*.xml
999e8f
%mvn_build -j
999e8f
popd
999e8f
999e8f
%install
999e8f
pushd %{eplv1_tag}
999e8f
%mvn_package "::pom::" __noinstall
999e8f
%mvn_package ":" 1
999e8f
%mvn_install
999e8f
popd
999e8f
999e8f
# Remove exploded tycho external bundles zipfile in case we are operating
999e8f
# in bootstrap mode
999e8f
rm -rf /tmp/tycho-bundles-external*
999e8f
999e8f
pushd %{eplv2_tag}
999e8f
%mvn_package "::pom::" __noinstall
999e8f
%mvn_package ":" 2
999e8f
%mvn_install
999e8f
popd
999e8f
999e8f
%files -n %{name}1 -f %{eplv1_tag}/.mfiles-1
999e8f
%license %{eplv1_tag}/org.eclipse.license/*.html
999e8f
999e8f
%files -n %{name}2 -f %{eplv2_tag}/.mfiles-2
999e8f
%license %{eplv2_tag}/org.eclipse.license/*.html
999e8f
999e8f
%changelog
999e8f
* Wed Mar 13 2019 Mat Booth <mat.booth@redhat.com> - 2.0.1-7
999e8f
- Restrict to same architectures as Eclipse itself
999e8f
999e8f
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-6
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
999e8f
999e8f
* Thu Aug 16 2018 Mat Booth <mat.booth@redhat.com> - 2.0.1-5
999e8f
- Allow building when tycho is bootstrapped
999e8f
999e8f
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.1-4
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
999e8f
999e8f
* Thu Jul 05 2018 Mat Booth <mat.booth@redhat.com> - 2.0.1-3
999e8f
- Use actual release tag
999e8f
999e8f
* Mon Jun 11 2018 Mat Booth <mat.booth@redhat.com> - 2.0.1-2
999e8f
- Avoid reliance on tycho-extras
999e8f
999e8f
* Wed May 30 2018 Mat Booth <mat.booth@redhat.com> - 2.0.1-1
999e8f
- Ship both EPL v1.0 and EPL v2.0 features
999e8f
999e8f
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-12
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
999e8f
999e8f
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-11
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
999e8f
999e8f
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-10
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
999e8f
999e8f
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.1-9
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
999e8f
999e8f
* Tue Aug 25 2015 Mat Booth <mat.booth@redhat.com> - 1.0.1-8
999e8f
- No need to package pom file
999e8f
999e8f
* Tue Jun 30 2015 Mat Booth <mat.booth@redhat.com> - 1.0.1-7
999e8f
- BR on eclipse-filesystem
999e8f
999e8f
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-6
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
999e8f
999e8f
* Tue Aug 26 2014 Mat Booth <mat.booth@redhat.com> - 1.0.1-5
999e8f
- Build/install with xmvn
999e8f
- Require eclipse-filesystem
999e8f
999e8f
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.0.1-4
999e8f
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
999e8f
999e8f
* Fri May 09 2014 Mat Booth <mat.booth@redhat.com> - 1.0.1-3
999e8f
- Update to latest upstream.
999e8f
999e8f
* Thu Mar 13 2014 Mat Booth <mat.booth@redhat.com> - 1.0.0-2
999e8f
- Use Xmvn.
999e8f
999e8f
* Thu Mar 13 2014 Mat Booth <mat.booth@redhat.com> - 1.0.0-1
999e8f
- Initial version of license shared feature.
999e8f