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