Blame SPECS/eclipse-license.spec

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