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