|
|
|
@ -1,34 +1,52 @@
|
|
|
|
|
%bcond_with bootstrap
|
|
|
|
|
%bcond_without jpa
|
|
|
|
|
%bcond_without spring
|
|
|
|
|
|
|
|
|
|
Name: google-guice
|
|
|
|
|
Version: 4.2.3
|
|
|
|
|
Release: 9%{?dist}
|
|
|
|
|
%global short_name guice
|
|
|
|
|
|
|
|
|
|
Name: google-%{short_name}
|
|
|
|
|
Version: 4.1
|
|
|
|
|
Release: 11%{?dist}
|
|
|
|
|
Summary: Lightweight dependency injection framework for Java 5 and above
|
|
|
|
|
License: ASL 2.0
|
|
|
|
|
URL: https://github.com/google/guice
|
|
|
|
|
URL: https://github.com/google/%{short_name}
|
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
|
|
# ./create-tarball.sh %%{version}
|
|
|
|
|
Source0: %{name}-%{version}.tar.xz
|
|
|
|
|
Source1: create-tarball.sh
|
|
|
|
|
|
|
|
|
|
BuildRequires: maven-local-openjdk8
|
|
|
|
|
%if %{with bootstrap}
|
|
|
|
|
BuildRequires: javapackages-bootstrap
|
|
|
|
|
%else
|
|
|
|
|
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
|
|
|
|
BuildRequires: %{?module_prefix}mvn(com.google.guava:guava)
|
|
|
|
|
BuildRequires: %{?module_prefix}mvn(javax.inject:javax.inject)
|
|
|
|
|
BuildRequires: maven-local
|
|
|
|
|
BuildRequires: mvn(aopalliance:aopalliance)
|
|
|
|
|
BuildRequires: mvn(cglib:cglib)
|
|
|
|
|
BuildRequires: mvn(com.google.guava:guava:19.0)
|
|
|
|
|
BuildRequires: mvn(javax.inject:javax.inject)
|
|
|
|
|
BuildRequires: mvn(javax.servlet:servlet-api)
|
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-remote-resources-plugin)
|
|
|
|
|
BuildRequires: mvn(org.apache.maven.plugins:maven-source-plugin)
|
|
|
|
|
BuildRequires: mvn(org.codehaus.mojo:build-helper-maven-plugin)
|
|
|
|
|
BuildRequires: mvn(org.ow2.asm:asm)
|
|
|
|
|
BuildRequires: mvn(org.slf4j:slf4j-api)
|
|
|
|
|
BuildRequires: mvn(org.sonatype.plugins:munge-maven-plugin)
|
|
|
|
|
%endif
|
|
|
|
|
# xmvn-builddep misses this:
|
|
|
|
|
%if %{without bootstrap}
|
|
|
|
|
BuildRequires: mvn(org.apache:apache-jar-resource-bundle)
|
|
|
|
|
|
|
|
|
|
%if %{with jpa}
|
|
|
|
|
BuildRequires: hibernate-jpa-2.0-api
|
|
|
|
|
%endif
|
|
|
|
|
%if %{with spring}
|
|
|
|
|
BuildRequires: springframework-beans
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
# Test dependencies:
|
|
|
|
|
%if 0
|
|
|
|
|
BuildRequires: maven-surefire-provider-testng
|
|
|
|
|
BuildRequires: aqute-bnd
|
|
|
|
|
BuildRequires: atinject-tck
|
|
|
|
|
BuildRequires: easymock2
|
|
|
|
|
BuildRequires: felix-framework
|
|
|
|
|
BuildRequires: hibernate3-entitymanager
|
|
|
|
|
BuildRequires: mvn(org.hsqldb:hsqldb-j5)
|
|
|
|
|
BuildRequires: testng
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
@ -50,80 +68,110 @@ with at least three use cases. When in doubt, we leave it out. We
|
|
|
|
|
build general functionality which enables you to extend Guice rather
|
|
|
|
|
than adding every feature to the core framework.
|
|
|
|
|
|
|
|
|
|
%package -n guice-parent
|
|
|
|
|
%package -n %{short_name}-parent
|
|
|
|
|
Summary: Guice parent POM
|
|
|
|
|
|
|
|
|
|
%description -n guice-parent
|
|
|
|
|
%description -n %{short_name}-parent
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides parent POM for Guice modules.
|
|
|
|
|
|
|
|
|
|
%package -n guice-assistedinject
|
|
|
|
|
%package -n %{short_name}-assistedinject
|
|
|
|
|
Summary: AssistedInject extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-assistedinject
|
|
|
|
|
%description -n %{short_name}-assistedinject
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides AssistedInject module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-extensions
|
|
|
|
|
%package -n %{short_name}-extensions
|
|
|
|
|
Summary: Extensions for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-extensions
|
|
|
|
|
%description -n %{short_name}-extensions
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides extensions POM for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-grapher
|
|
|
|
|
%package -n %{short_name}-grapher
|
|
|
|
|
Summary: Grapher extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-grapher
|
|
|
|
|
%description -n %{short_name}-grapher
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides Grapher module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-jmx
|
|
|
|
|
%package -n %{short_name}-jmx
|
|
|
|
|
Summary: JMX extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-jmx
|
|
|
|
|
%description -n %{short_name}-jmx
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides JMX module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-jndi
|
|
|
|
|
%package -n %{short_name}-jndi
|
|
|
|
|
Summary: JNDI extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-jndi
|
|
|
|
|
%description -n %{short_name}-jndi
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides JNDI module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-multibindings
|
|
|
|
|
%package -n %{short_name}-multibindings
|
|
|
|
|
Summary: MultiBindings extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-multibindings
|
|
|
|
|
%description -n %{short_name}-multibindings
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides MultiBindings module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-servlet
|
|
|
|
|
%if %{with jpa}
|
|
|
|
|
%package -n %{short_name}-persist
|
|
|
|
|
Summary: Persist extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n %{short_name}-persist
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides Persist module for Guice.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package -n %{short_name}-servlet
|
|
|
|
|
Summary: Servlet extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-servlet
|
|
|
|
|
%description -n %{short_name}-servlet
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides Servlet module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-throwingproviders
|
|
|
|
|
%if %{with spring}
|
|
|
|
|
%package -n %{short_name}-spring
|
|
|
|
|
Summary: Spring extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n %{short_name}-spring
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides Spring module for Guice.
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%package -n %{short_name}-testlib
|
|
|
|
|
Summary: TestLib extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n %{short_name}-testlib
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides TestLib module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n %{short_name}-throwingproviders
|
|
|
|
|
Summary: ThrowingProviders extension module for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-throwingproviders
|
|
|
|
|
%description -n %{short_name}-throwingproviders
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides ThrowingProviders module for Guice.
|
|
|
|
|
|
|
|
|
|
%package -n guice-bom
|
|
|
|
|
%package -n %{short_name}-bom
|
|
|
|
|
Summary: Bill of Materials for Guice
|
|
|
|
|
|
|
|
|
|
%description -n guice-bom
|
|
|
|
|
%description -n %{short_name}-bom
|
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
|
and above. This package provides Bill of Materials module for Guice.
|
|
|
|
|
|
|
|
|
|
%{?javadoc_package}
|
|
|
|
|
%package javadoc
|
|
|
|
|
Summary: API documentation for Guice
|
|
|
|
|
|
|
|
|
|
%description javadoc
|
|
|
|
|
This package provides %{summary}.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q
|
|
|
|
|
%setup -q -n %{name}-%{version}
|
|
|
|
|
|
|
|
|
|
# We don't have struts2 in Fedora yet.
|
|
|
|
|
%pom_disable_module struts2 extensions
|
|
|
|
@ -151,40 +199,27 @@ and above. This package provides Bill of Materials module for Guice.
|
|
|
|
|
# remove test dependency to make sure we don't produce requires
|
|
|
|
|
# see #1007498
|
|
|
|
|
%pom_remove_dep :guava-testlib extensions
|
|
|
|
|
%pom_xpath_remove "pom:dependency[pom:classifier='tests']" extensions
|
|
|
|
|
%pom_xpath_remove "pom:dependency[pom:classifier[text()='tests']]" extensions
|
|
|
|
|
|
|
|
|
|
%pom_remove_parent
|
|
|
|
|
%pom_set_parent com.google.inject:guice-parent:%{version} jdk8-tests
|
|
|
|
|
|
|
|
|
|
%if %{without jpa}
|
|
|
|
|
%pom_disable_module persist extensions
|
|
|
|
|
%endif
|
|
|
|
|
%if %{without spring}
|
|
|
|
|
%pom_disable_module spring extensions
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
%pom_disable_module jdk8-tests
|
|
|
|
|
|
|
|
|
|
# Require a newer compiler
|
|
|
|
|
%pom_xpath_set "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:source" "1.8"
|
|
|
|
|
%pom_xpath_set "pom:build/pom:pluginManagement/pom:plugins/pom:plugin[pom:artifactId='maven-compiler-plugin']/pom:configuration/pom:target" "1.8"
|
|
|
|
|
|
|
|
|
|
%pom_disable_module testlib extensions
|
|
|
|
|
|
|
|
|
|
%pom_remove_dep :aopalliance core
|
|
|
|
|
%pom_remove_dep :asm core
|
|
|
|
|
%pom_remove_dep :cglib core
|
|
|
|
|
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:configuration"
|
|
|
|
|
%pom_xpath_remove "pom:plugin[pom:artifactId='maven-jar-plugin']/pom:executions"
|
|
|
|
|
%pom_xpath_set "pom:plugin[pom:artifactId='munge-maven-plugin']/pom:executions/pom:execution/pom:phase" generate-sources core
|
|
|
|
|
%pom_xpath_set "pom:plugin[pom:artifactId='munge-maven-plugin']/pom:executions/pom:execution/pom:goals/pom:goal" munge core
|
|
|
|
|
|
|
|
|
|
%pom_xpath_inject "pom:dependency[pom:artifactId='guice']" "<scope>provided</scope>" extensions
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%mvn_alias "com.google.inject.extensions:" "org.sonatype.sisu.inject:"
|
|
|
|
|
|
|
|
|
|
%mvn_package :::no_aop: guice
|
|
|
|
|
%mvn_package :guice:jar:{}: __noinstall
|
|
|
|
|
|
|
|
|
|
%mvn_file ":guice-{*}" guice/guice-@1
|
|
|
|
|
%mvn_file ":guice" guice/%{name} %{name}
|
|
|
|
|
%mvn_file ":guice-{*}" %{short_name}/guice-@1
|
|
|
|
|
%mvn_file ":guice" %{short_name}/%{name} %{name}
|
|
|
|
|
%mvn_alias ":guice" "org.sonatype.sisu:sisu-guice"
|
|
|
|
|
# Skip tests because of missing dependency guice-testlib
|
|
|
|
|
%mvn_build -f -s
|
|
|
|
@ -192,92 +227,37 @@ and above. This package provides Bill of Materials module for Guice.
|
|
|
|
|
%install
|
|
|
|
|
%mvn_install
|
|
|
|
|
|
|
|
|
|
%files -n %{?module_prefix}%{name} -f .mfiles-guice
|
|
|
|
|
|
|
|
|
|
%files -n guice-parent -f .mfiles-guice-parent
|
|
|
|
|
%license COPYING
|
|
|
|
|
|
|
|
|
|
%files -n guice-assistedinject -f .mfiles-guice-assistedinject
|
|
|
|
|
%files -n guice-extensions -f .mfiles-extensions-parent
|
|
|
|
|
%files -n guice-grapher -f .mfiles-guice-grapher
|
|
|
|
|
%files -n guice-jmx -f .mfiles-guice-jmx
|
|
|
|
|
%files -n guice-jndi -f .mfiles-guice-jndi
|
|
|
|
|
%files -n guice-multibindings -f .mfiles-guice-multibindings
|
|
|
|
|
%files -n guice-servlet -f .mfiles-guice-servlet
|
|
|
|
|
%files -n guice-throwingproviders -f .mfiles-guice-throwingproviders
|
|
|
|
|
|
|
|
|
|
%files -n guice-bom -f .mfiles-guice-bom
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Mon Jan 30 2023 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-9
|
|
|
|
|
- Rebuild to regenerate auto-requires
|
|
|
|
|
|
|
|
|
|
* Mon Aug 09 2021 Mohan Boddu <mboddu@redhat.com> - 4.2.3-8
|
|
|
|
|
- Rebuilt for IMA sigs, glibc 2.34, aarch64 flags
|
|
|
|
|
Related: rhbz#1991688
|
|
|
|
|
|
|
|
|
|
* Wed Jun 09 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-7
|
|
|
|
|
- Rebuild to workaround DistroBaker issue
|
|
|
|
|
|
|
|
|
|
* Tue Jun 08 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-6
|
|
|
|
|
- Bootstrap Maven for CentOS Stream 9
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-5
|
|
|
|
|
- Bump release
|
|
|
|
|
|
|
|
|
|
* Mon May 17 2021 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.3-2
|
|
|
|
|
- Bootstrap build
|
|
|
|
|
- Non-bootstrap build
|
|
|
|
|
|
|
|
|
|
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-4
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
|
|
|
|
|
%files -f .mfiles-guice
|
|
|
|
|
%dir %{_javadir}/%{short_name}
|
|
|
|
|
|
|
|
|
|
* Fri Sep 18 2020 Marian Koncek <mkoncek@redhat.com> - 4.2.3-1
|
|
|
|
|
- Update to upstream version 4.2.3
|
|
|
|
|
%files -n %{short_name}-parent -f .mfiles-guice-parent
|
|
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
|
|
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-3
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 4.2.3-2
|
|
|
|
|
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
|
|
|
|
|
|
|
|
|
|
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 4.2.3-1
|
|
|
|
|
- Update to version 4.2.3.
|
|
|
|
|
|
|
|
|
|
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-4
|
|
|
|
|
- Build with OpenJDK 8
|
|
|
|
|
|
|
|
|
|
* Tue Nov 05 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-3
|
|
|
|
|
- Mass rebuild for javapackages-tools 201902
|
|
|
|
|
|
|
|
|
|
* Mon Jul 29 2019 Fabio Valentini <decathorpe@gmail.com> - 4.2.2-1
|
|
|
|
|
- Update to version 4.2.2.
|
|
|
|
|
- Obsolete guice-testlib.
|
|
|
|
|
|
|
|
|
|
* Fri Jul 26 2019 Fabio Valentini <decathorpe@gmail.com> - 4.1-16
|
|
|
|
|
- Disable support for spring and JPA.
|
|
|
|
|
|
|
|
|
|
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-15
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|
* Fri May 24 2019 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-2
|
|
|
|
|
- Mass rebuild for javapackages-tools 201901
|
|
|
|
|
%files -n %{short_name}-assistedinject -f .mfiles-guice-assistedinject
|
|
|
|
|
%files -n %{short_name}-extensions -f .mfiles-extensions-parent
|
|
|
|
|
%files -n %{short_name}-grapher -f .mfiles-guice-grapher
|
|
|
|
|
%files -n %{short_name}-jmx -f .mfiles-guice-jmx
|
|
|
|
|
%files -n %{short_name}-jndi -f .mfiles-guice-jndi
|
|
|
|
|
%files -n %{short_name}-multibindings -f .mfiles-guice-multibindings
|
|
|
|
|
%if %{with jpa}
|
|
|
|
|
%files -n %{short_name}-persist -f .mfiles-guice-persist
|
|
|
|
|
%endif
|
|
|
|
|
%files -n %{short_name}-servlet -f .mfiles-guice-servlet
|
|
|
|
|
%if %{with spring}
|
|
|
|
|
%files -n %{short_name}-spring -f .mfiles-guice-spring
|
|
|
|
|
%endif
|
|
|
|
|
%files -n %{short_name}-testlib -f .mfiles-guice-testlib
|
|
|
|
|
%files -n %{short_name}-throwingproviders -f .mfiles-guice-throwingproviders
|
|
|
|
|
|
|
|
|
|
* Fri Apr 05 2019 Marian Koncek <mkoncek@redhat.com> - 4.2.2-1
|
|
|
|
|
- Update to upstream version 4.2.2
|
|
|
|
|
- Fixes: RHBZ #1563661
|
|
|
|
|
%files -n %{short_name}-bom -f .mfiles-guice-bom
|
|
|
|
|
|
|
|
|
|
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-14
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
|
%doc COPYING
|
|
|
|
|
|
|
|
|
|
* Thu Dec 13 2018 Mat Booth <mat.booth@redhat.com> - 4.1-13
|
|
|
|
|
- Regenerate OSGi metadata due to ASM 7
|
|
|
|
|
|
|
|
|
|
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-12
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
|
|
%changelog
|
|
|
|
|
* Sun Dec 10 2023 MSVSphere Packaging Team <packager@msvsphere-os.ru> - 4.1-11
|
|
|
|
|
- Rebuilt for MSVSphere 8.8
|
|
|
|
|
|
|
|
|
|
* Wed Apr 18 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1-11
|
|
|
|
|
- Remove legacy Provides
|
|
|
|
|