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