Compare commits

...

No commits in common. 'c9' and 'i8c-stream-3.5' have entirely different histories.

2
.gitignore vendored

@ -1 +1 @@
SOURCES/google-guice-4.2.3.tar.xz SOURCES/google-guice-4.1.tar.xz

@ -1 +1 @@
45e372dd2006509e7108e3c32206ae0c981cdda7 SOURCES/google-guice-4.2.3.tar.xz 960d2670c1297839c5998ea60a53d3bd5c8ce1c7 SOURCES/google-guice-4.1.tar.xz

@ -1,34 +1,52 @@
%bcond_with bootstrap %bcond_without jpa
%bcond_without spring
Name: google-guice %global short_name guice
Version: 4.2.3
Release: 9%{?dist} Name: google-%{short_name}
Version: 4.1
Release: 11%{?dist}
Summary: Lightweight dependency injection framework for Java 5 and above Summary: Lightweight dependency injection framework for Java 5 and above
License: ASL 2.0 License: ASL 2.0
URL: https://github.com/google/guice URL: https://github.com/google/%{short_name}
BuildArch: noarch BuildArch: noarch
# ./create-tarball.sh %%{version} # ./create-tarball.sh %%{version}
Source0: %{name}-%{version}.tar.xz Source0: %{name}-%{version}.tar.xz
Source1: create-tarball.sh Source1: create-tarball.sh
BuildRequires: maven-local-openjdk8 BuildRequires: maven-local
%if %{with bootstrap} BuildRequires: mvn(aopalliance:aopalliance)
BuildRequires: javapackages-bootstrap BuildRequires: mvn(cglib:cglib)
%else BuildRequires: mvn(com.google.guava:guava:19.0)
BuildRequires: mvn(com.google.code.findbugs:jsr305) BuildRequires: mvn(javax.inject:javax.inject)
BuildRequires: %{?module_prefix}mvn(com.google.guava:guava)
BuildRequires: %{?module_prefix}mvn(javax.inject:javax.inject)
BuildRequires: mvn(javax.servlet:servlet-api) BuildRequires: mvn(javax.servlet:servlet-api)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) 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-remote-resources-plugin)
BuildRequires: mvn(org.apache.maven.plugins:maven-source-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) BuildRequires: mvn(org.sonatype.plugins:munge-maven-plugin)
%endif
# xmvn-builddep misses this: # xmvn-builddep misses this:
%if %{without bootstrap}
BuildRequires: mvn(org.apache:apache-jar-resource-bundle) 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 %endif
%description %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 build general functionality which enables you to extend Guice rather
than adding every feature to the core framework. than adding every feature to the core framework.
%package -n guice-parent %package -n %{short_name}-parent
Summary: Guice parent POM Summary: Guice parent POM
%description -n guice-parent %description -n %{short_name}-parent
Guice is a lightweight dependency injection framework for Java 5 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides parent POM for Guice modules. 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 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides AssistedInject module for Guice. and above. This package provides AssistedInject module for Guice.
%package -n guice-extensions %package -n %{short_name}-extensions
Summary: Extensions for Guice Summary: Extensions for Guice
%description -n guice-extensions %description -n %{short_name}-extensions
Guice is a lightweight dependency injection framework for Java 5 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides extensions POM for Guice. and above. This package provides extensions POM for Guice.
%package -n guice-grapher %package -n %{short_name}-grapher
Summary: Grapher extension module for Guice 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Grapher module for Guice. and above. This package provides Grapher module for Guice.
%package -n guice-jmx %package -n %{short_name}-jmx
Summary: JMX extension module for Guice 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides JMX module for Guice. and above. This package provides JMX module for Guice.
%package -n guice-jndi %package -n %{short_name}-jndi
Summary: JNDI extension module for Guice 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides JNDI module for Guice. and above. This package provides JNDI module for Guice.
%package -n guice-multibindings %package -n %{short_name}-multibindings
Summary: MultiBindings extension module for Guice 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides MultiBindings module for Guice. 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 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Servlet module for Guice. 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 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides ThrowingProviders module for Guice. and above. This package provides ThrowingProviders module for Guice.
%package -n guice-bom %package -n %{short_name}-bom
Summary: Bill of Materials for Guice 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 Guice is a lightweight dependency injection framework for Java 5
and above. This package provides Bill of Materials module for Guice. 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 %prep
%setup -q %setup -q -n %{name}-%{version}
# We don't have struts2 in Fedora yet. # We don't have struts2 in Fedora yet.
%pom_disable_module struts2 extensions %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 # remove test dependency to make sure we don't produce requires
# see #1007498 # see #1007498
%pom_remove_dep :guava-testlib extensions %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_remove_parent
%pom_set_parent com.google.inject:guice-parent:%{version} jdk8-tests %pom_set_parent com.google.inject:guice-parent:%{version} jdk8-tests
%if %{without jpa}
%pom_disable_module persist extensions %pom_disable_module persist extensions
%endif
%if %{without spring}
%pom_disable_module spring extensions %pom_disable_module spring extensions
%endif
%pom_disable_module jdk8-tests %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 %build
%mvn_alias "com.google.inject.extensions:" "org.sonatype.sisu.inject:" %mvn_alias "com.google.inject.extensions:" "org.sonatype.sisu.inject:"
%mvn_package :::no_aop: guice %mvn_package :::no_aop: guice
%mvn_package :guice:jar:{}: __noinstall
%mvn_file ":guice-{*}" guice/guice-@1 %mvn_file ":guice-{*}" %{short_name}/guice-@1
%mvn_file ":guice" guice/%{name} %{name} %mvn_file ":guice" %{short_name}/%{name} %{name}
%mvn_alias ":guice" "org.sonatype.sisu:sisu-guice" %mvn_alias ":guice" "org.sonatype.sisu:sisu-guice"
# Skip tests because of missing dependency guice-testlib # Skip tests because of missing dependency guice-testlib
%mvn_build -f -s %mvn_build -f -s
@ -192,92 +227,37 @@ and above. This package provides Bill of Materials module for Guice.
%install %install
%mvn_install %mvn_install
%files -n %{?module_prefix}%{name} -f .mfiles-guice %files -f .mfiles-guice
%dir %{_javadir}/%{short_name}
%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
* Fri Sep 18 2020 Marian Koncek <mkoncek@redhat.com> - 4.2.3-1 %files -n %{short_name}-parent -f .mfiles-guice-parent
- Update to upstream version 4.2.3 %doc COPYING
* Tue Jul 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.3-3 %files -n %{short_name}-assistedinject -f .mfiles-guice-assistedinject
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild %files -n %{short_name}-extensions -f .mfiles-extensions-parent
%files -n %{short_name}-grapher -f .mfiles-guice-grapher
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 4.2.3-2 %files -n %{short_name}-jmx -f .mfiles-guice-jmx
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11 %files -n %{short_name}-jndi -f .mfiles-guice-jndi
%files -n %{short_name}-multibindings -f .mfiles-guice-multibindings
* Fri May 08 2020 Fabio Valentini <decathorpe@gmail.com> - 4.2.3-1 %if %{with jpa}
- Update to version 4.2.3. %files -n %{short_name}-persist -f .mfiles-guice-persist
%endif
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 4.2.2-2 %files -n %{short_name}-servlet -f .mfiles-guice-servlet
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild %if %{with spring}
%files -n %{short_name}-spring -f .mfiles-guice-spring
* Sat Jan 25 2020 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.2.2-4 %endif
- Build with OpenJDK 8 %files -n %{short_name}-testlib -f .mfiles-guice-testlib
%files -n %{short_name}-throwingproviders -f .mfiles-guice-throwingproviders
* 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
* Fri Apr 05 2019 Marian Koncek <mkoncek@redhat.com> - 4.2.2-1 %files -n %{short_name}-bom -f .mfiles-guice-bom
- Update to upstream version 4.2.2
- Fixes: RHBZ #1563661
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 4.1-14 %files javadoc -f .mfiles-javadoc
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild %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 %changelog
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild * 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 * Wed Apr 18 2018 Mikolaj Izdebski <mizdebsk@redhat.com> - 4.1-11
- Remove legacy Provides - Remove legacy Provides

Loading…
Cancel
Save