572cd1
%bcond_with bootstrap
572cd1
572cd1
Name:           sisu
572cd1
Epoch:          1
572cd1
Version:        0.3.5
572cd1
Release:        2%{?dist}
572cd1
Summary:        Eclipse dependency injection framework
572cd1
# sisu is EPL-1.0, the bundled asm is BSD
572cd1
License:        EPL-1.0 and BSD
572cd1
URL:            https://eclipse.org/sisu/
572cd1
BuildArch:      noarch
572cd1
ExclusiveArch:  %{java_arches} noarch
572cd1
572cd1
Source0:        https://github.com/eclipse/sisu.inject/archive/refs/tags/releases/%{version}.tar.gz#/org.eclipse.sisu.inject-%{version}.tar.gz
572cd1
Source1:        https://github.com/eclipse/sisu.plexus/archive/refs/tags/releases/%{version}.tar.gz#/org.eclipse.sisu.plexus-%{version}.tar.gz
572cd1
572cd1
Source100:      sisu-parent.pom
572cd1
Source101:      sisu-inject.pom
572cd1
Source102:      sisu-plexus.pom
572cd1
572cd1
Patch0:         sisu-OSGi-import-guava.patch
572cd1
Patch2:         sisu-ignored-tests.patch
572cd1
Patch3:         sisu-osgi-api.patch
572cd1
Patch4:         0001-Remove-dependency-on-glassfish-servlet-api.patch
572cd1
572cd1
%if %{with bootstrap}
572cd1
BuildRequires:  javapackages-bootstrap-openjdk8
572cd1
%else
572cd1
BuildRequires:  maven-local-openjdk8
572cd1
BuildRequires:  mvn(com.google.inject.extensions:guice-servlet)
572cd1
BuildRequires:  mvn(com.google.inject:guice::no_aop:)
572cd1
BuildRequires:  mvn(javax.annotation:javax.annotation-api)
572cd1
BuildRequires:  mvn(javax.enterprise:cdi-api)
572cd1
BuildRequires:  mvn(javax.inject:javax.inject)
572cd1
BuildRequires:  mvn(junit:junit)
572cd1
BuildRequires:  mvn(org.codehaus.plexus:plexus-classworlds)
572cd1
BuildRequires:  mvn(org.codehaus.plexus:plexus-component-annotations)
572cd1
BuildRequires:  mvn(org.codehaus.plexus:plexus-utils)
572cd1
BuildRequires:  mvn(org.osgi:osgi.core)
572cd1
BuildRequires:  mvn(org.slf4j:slf4j-api)
572cd1
BuildRequires:  mvn(org.testng:testng)
572cd1
%endif
572cd1
572cd1
Provides:       %{name}-inject = %{epoch}:%{version}-%{release}
572cd1
Provides:       %{name}-plexus = %{epoch}:%{version}-%{release}
572cd1
Provides:       bundled(objectweb-asm)
572cd1
572cd1
%description
572cd1
Java dependency injection framework with backward support for plexus and bean
572cd1
style dependency injection.
572cd1
572cd1
%{?javadoc_package}
572cd1
572cd1
%prep
572cd1
%setup -q -c -T
572cd1
tar xf %{SOURCE0} && mv sisu.inject-releases-* sisu-inject
572cd1
tar xf %{SOURCE1} && mv sisu.plexus-releases-* sisu-plexus
572cd1
572cd1
cp %{SOURCE100} pom.xml
572cd1
cp %{SOURCE101} sisu-inject/pom.xml
572cd1
cp %{SOURCE102} sisu-plexus/pom.xml
572cd1
572cd1
%patch0
572cd1
%patch2
572cd1
%patch3
572cd1
%patch4 -p1
572cd1
572cd1
%pom_remove_dep :servlet-api sisu-inject
572cd1
572cd1
%pom_xpath_set -r /pom:project/pom:version %{version}
572cd1
572cd1
%mvn_file ":{*}" @1
572cd1
%mvn_package ":*{inject,plexus}"
572cd1
%mvn_package : __noinstall
572cd1
%mvn_alias :org.eclipse.sisu.plexus org.sonatype.sisu:sisu-inject-plexus
572cd1
572cd1
%build
572cd1
%mvn_build
572cd1
572cd1
%install
572cd1
%mvn_install
572cd1
572cd1
%files -f .mfiles
572cd1
%license sisu-inject/LICENSE.txt
572cd1
572cd1
%changelog
572cd1
* Sat Jul 23 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.5-2
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_37_Mass_Rebuild
572cd1
572cd1
* Mon May 09 2022 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.5-1
572cd1
- Update to upstream version 0.3.5
572cd1
572cd1
* Sat Feb 05 2022 Jiri Vanek <jvanek@redhat.com> - 1:0.3.4-9
572cd1
- Rebuilt for java-17-openjdk as system jdk
572cd1
572cd1
* Sat Jan 22 2022 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.4-8
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_36_Mass_Rebuild
572cd1
572cd1
* Fri Jul 23 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.4-7
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_35_Mass_Rebuild
572cd1
572cd1
* Tue Jun 01 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.4-6
572cd1
- Fix obsoletes on removed subpackages
572cd1
572cd1
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.4-5
572cd1
- Bootstrap build
572cd1
- Non-bootstrap build
572cd1
572cd1
* Wed Jan 27 2021 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.4-4
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
572cd1
572cd1
* Wed Jul 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.4-3
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
572cd1
572cd1
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 1:0.3.4-2
572cd1
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
572cd1
572cd1
* Thu Feb 13 2020 Fabio Valentini <decathorpe@gmail.com> - 1:0.3.4-1
572cd1
- Update to version 0.3.4.
572cd1
572cd1
* Thu Jan 30 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.3-9
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
572cd1
572cd1
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.3.4-2
572cd1
- Build with OpenJDK 8
572cd1
572cd1
* Wed Nov 06 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.3.4-1
572cd1
- Update to upstream version 0.3.4
572cd1
572cd1
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 0.3.3-9
572cd1
- Mass rebuild for javapackages-tools 201902
572cd1
572cd1
* Fri Jul 26 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.3-8
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
572cd1
572cd1
* Fri Jun 28 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.3-8
572cd1
- Merge inject and plexus subpackages
572cd1
572cd1
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.3-7
572cd1
- Mass rebuild for javapackages-tools 201901
572cd1
572cd1
* Sat Feb 02 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.3-7
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
572cd1
572cd1
* Tue Jul 24 2018 Michael Simacek <msimacek@redhat.com> - 1:0.3.3-6
572cd1
- Declare bundled objectweb-asm
572cd1
- Fix license tag to include BSD for asm
572cd1
572cd1
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.3-5
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
572cd1
572cd1
* Mon Jul  2 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.3-4
572cd1
- Update license tag
572cd1
572cd1
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.3-3
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
572cd1
572cd1
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.3-2
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
572cd1
572cd1
* Tue Apr 11 2017 Michael Simacek <msimacek@redhat.com> - 1:0.3.3-1
572cd1
- Update to upstream version 0.3.3
572cd1
572cd1
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.2-7
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
572cd1
572cd1
* Sun Jan 29 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.2-6
572cd1
- Restore alias for org.sonatype.sisu:sisu-inject-plexus
572cd1
572cd1
* Sun Jan 29 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.2-5
572cd1
- Build without Tycho
572cd1
- Remove sisu-tests subpackage
572cd1
- Drop old obsoletes
572cd1
572cd1
* Mon Feb 22 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.2-4
572cd1
- Add alias for org.sonatype.sisu:sisu-inject-plexus
572cd1
572cd1
* Fri Feb 05 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1:0.3.2-3
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
572cd1
572cd1
* Thu Jan  7 2016 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.2-2
572cd1
- Remove unneeded patch
572cd1
572cd1
* Wed Sep 16 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.2-1
572cd1
- Update to upstream version 0.3.2
572cd1
572cd1
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.3.1-2
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
572cd1
572cd1
* Mon May 18 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.1-1
572cd1
- Update to upstream version 0.3.1
572cd1
572cd1
* Thu Apr 23 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.0-2
572cd1
- Install test artifacts
572cd1
572cd1
* Mon Feb 23 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.0-1
572cd1
- Update to upstream version 0.3.0
572cd1
572cd1
* Wed Feb 18 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.0-0.2.M1
572cd1
- Unbundle ASM
572cd1
- Resolves: rhbz#1085903
572cd1
572cd1
* Wed Feb  4 2015 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.3.0-0.1.M1
572cd1
- Update to upstream milestone 0.3.0.M1
572cd1
572cd1
* Tue Sep 30 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.1-10
572cd1
- Port to plexus-utils 3.0.18
572cd1
572cd1
* Thu Sep 18 2014 Michal Srb <msrb@redhat.com> - 1:0.2.1-9
572cd1
- Rebuild to fix metadata
572cd1
- Remove explicit Requires
572cd1
572cd1
* Fri Sep 12 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.1-8
572cd1
- Update to latest XMvn version
572cd1
- Enable tests
572cd1
572cd1
* Mon Aug  4 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.1-7
572cd1
- Fix build-requires on sonatype-oss-parent
572cd1
572cd1
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1:0.2.1-6
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
572cd1
572cd1
* Fri May 30 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.1-5
572cd1
- Install JARs and POMs only
572cd1
572cd1
* Thu May 29 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.1-4
572cd1
- Build with XMvn 2.0.0
572cd1
572cd1
* Wed May 07 2014 Michael Simacek <msimacek@redhat.com> - 1:0.2.1-3
572cd1
- Build with Java 8
572cd1
572cd1
* Wed Apr 23 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.1-2
572cd1
- Import guava in OSGi manifest
572cd1
572cd1
* Tue Apr 22 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.1-1
572cd1
- Update to upstream version 0.2.1
572cd1
- Remove patch for Eclipse bug 429369
572cd1
572cd1
* Wed Apr 16 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.0-5
572cd1
- Update upstream patch for bug 429369
572cd1
- Force usage of Java 1.7
572cd1
572cd1
* Mon Mar  3 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.0-4
572cd1
- Revert upstream feature which introduced a regression
572cd1
- Resolves: rhbz#1070915
572cd1
572cd1
* Thu Feb 20 2014 Michal Srb <msrb@redhat.com> - 1:0.2.0-3
572cd1
- Remove R on cdi-api
572cd1
572cd1
* Thu Feb 20 2014 Michal Srb <msrb@redhat.com> - 1:0.2.0-2
572cd1
- Update BR/R for version 0.2.0
572cd1
- Enable tests
572cd1
572cd1
* Mon Feb 17 2014 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.2.0-1
572cd1
- Update to upstream version 0.2.0
572cd1
572cd1
* Wed Dec  4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.1.1-1
572cd1
- Update to upstream version 0.1.1
572cd1
572cd1
* Wed Nov 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.1.0-1
572cd1
- Update to upstream version 0.1.0
572cd1
572cd1
* Wed Oct 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.0.0-0.7.M5
572cd1
- Rebuild to regenerate broken POMs
572cd1
- Related: rhbz#1021484
572cd1
572cd1
* Fri Oct 18 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.0.0-0.6.M5
572cd1
- Don't inject pom.properties
572cd1
572cd1
* Wed Sep 25 2013 Michal Srb <msrb@redhat.com> - 1:0.0.0-0.5.M5
572cd1
- Update to upstream version 0.0.0.M5
572cd1
- Install EPL license file
572cd1
- Inject pom.properties
572cd1
- Regenerate BR
572cd1
- Add R
572cd1
572cd1
* Fri Sep 20 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.0.0-0.4.M4
572cd1
- Update to XMvn 1.0.0
572cd1
572cd1
* Tue Aug 13 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.0.0-0.3.M4
572cd1
- Obsolete sisu main package, resolves: rhbz#996288
572cd1
572cd1
* Tue Jul 23 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.0.0-0.2.M4
572cd1
- Remove unneeded provides and compat symlinks
572cd1
572cd1
* Mon Jul 22 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 1:0.0.0-0.1.M4
572cd1
- Update to upstream version 0.0.0.M4
572cd1
572cd1
* Wed Mar 27 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.3.0-8
572cd1
- Remove unneeded animal-sniffer BuildRequires
572cd1
- Add forge-parent to BuildRequires to ensure it's present
572cd1
572cd1
* Thu Mar 14 2013 Michal Srb <msrb@redhat.com> - 2.3.0-7
572cd1
- sisu-inject-bean: add dependency on asm
572cd1
- Fix dependencies on javax.inject and javax.enterprise.inject
572cd1
- Remove bundled JARs and .class files from tarball
572cd1
572cd1
* Thu Feb  7 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-6
572cd1
- Add ASM dependency only to a single module, not all of them
572cd1
- Disable animal-sniffer plugin
572cd1
- Don't generate auto-requires for optional dependencies
572cd1
572cd1
* Wed Feb 06 2013 Tomas Radej <tradej@redhat.com> - 2.3.0-5
572cd1
- Added BR on animal-sniffer
572cd1
572cd1
* Tue Feb 05 2013 Tomas Radej <tradej@redhat.com> - 2.3.0-4
572cd1
- Split into subpackages
572cd1
- Build with new macros
572cd1
- Unbundled objectweb-asm
572cd1
572cd1
* Wed Dec  5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-3
572cd1
- Fix OSGi __requires_exclude
572cd1
572cd1
* Wed Dec  5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-2
572cd1
- Disable OSGi auto-requires: org.sonatype.sisu.guava
572cd1
572cd1
* Mon Dec  3 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.3.0-1
572cd1
- Update to upstream version 2.3.0
572cd1
572cd1
* Tue Jul 24 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.3-6
572cd1
- Convert patches to POM macros
572cd1
572cd1
* Mon Jul 23 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 2.2.3-5
572cd1
- Fix license tag
572cd1
572cd1
* Sat Jul 21 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-4
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
572cd1
572cd1
* Sat Jan 14 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.2.3-3
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
572cd1
572cd1
* Fri Aug 19 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.3-2
572cd1
- Add backward compatible package path for lifecycles
572cd1
- Remove temporary BRs/Rs
572cd1
572cd1
* Thu Jun 23 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.2.3-1
572cd1
- Update to latest upstream 2.2.3 (#683795)
572cd1
- Add forge-parent to Requires
572cd1
- Rework spec to be more simple, update patches
572cd1
572cd1
* Tue Mar  1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1.1-2
572cd1
- Add atinject into poms as dependency
572cd1
572cd1
* Mon Feb 28 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.1.1-1
572cd1
- Update to 2.1.1
572cd1
- Update patch
572cd1
- Disable guice-eclipse for now
572cd1
572cd1
* Wed Feb 09 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.4.3.2-2
572cd1
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
572cd1
572cd1
* Wed Feb  2 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.3.2-1
572cd1
- Update to latest upstream version
572cd1
- Versionless jars & javadocs
572cd1
572cd1
* Mon Oct 18 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.2-2
572cd1
- Add felix-framework BR
572cd1
572cd1
* Thu Oct 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.4.2-1
572cd1
- Initial version of the package