2012-11-09 14:20:23 +00:00
|
|
|
%if 0%{?fedora}
|
|
|
|
%bcond_without extensions
|
|
|
|
%endif
|
|
|
|
|
2010-10-13 15:25:09 +00:00
|
|
|
%global short_name guice
|
|
|
|
|
|
|
|
Name: google-%{short_name}
|
2013-04-24 08:22:41 +00:00
|
|
|
Version: 3.1.3
|
2013-09-25 16:04:37 +00:00
|
|
|
Release: 8%{?dist}
|
2012-10-09 10:44:58 +00:00
|
|
|
Summary: Lightweight dependency injection framework for Java 5 and above
|
|
|
|
Group: Development/Libraries
|
2010-10-13 15:25:09 +00:00
|
|
|
License: ASL 2.0
|
2012-10-09 10:44:58 +00:00
|
|
|
URL: https://github.com/sonatype/sisu-%{short_name}
|
2013-08-07 06:56:11 +00:00
|
|
|
# ./create-tarball.sh %%{version}
|
2013-03-15 07:35:33 +00:00
|
|
|
Source0: %{name}-%{version}.tar.xz
|
2013-08-07 06:56:11 +00:00
|
|
|
Source1: create-tarball.sh
|
2010-10-13 15:25:09 +00:00
|
|
|
BuildArch: noarch
|
|
|
|
|
2013-09-25 16:04:37 +00:00
|
|
|
BuildRequires: maven-local >= 3.2.4-2
|
2012-10-09 10:44:58 +00:00
|
|
|
BuildRequires: maven-remote-resources-plugin
|
2013-09-10 17:31:15 +00:00
|
|
|
BuildRequires: munge-maven-plugin
|
2012-10-09 10:44:58 +00:00
|
|
|
BuildRequires: apache-resource-bundles
|
|
|
|
BuildRequires: aopalliance
|
2010-10-13 15:25:09 +00:00
|
|
|
BuildRequires: atinject
|
2012-10-09 10:44:58 +00:00
|
|
|
BuildRequires: cglib
|
|
|
|
BuildRequires: guava
|
2011-03-01 08:10:00 +00:00
|
|
|
BuildRequires: slf4j
|
2012-11-09 15:04:14 +00:00
|
|
|
|
|
|
|
%if %{with extensions}
|
|
|
|
BuildRequires: hibernate-jpa-2.0-api
|
2012-10-09 10:44:58 +00:00
|
|
|
BuildRequires: springframework-beans
|
|
|
|
BuildRequires: tomcat-servlet-3.0-api
|
2012-11-09 15:04:14 +00:00
|
|
|
%endif
|
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
# 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
|
|
|
|
|
|
|
|
Provides: %{short_name} = %{version}-%{release}
|
2012-02-09 15:23:50 +00:00
|
|
|
|
2010-10-13 15:25:09 +00:00
|
|
|
%description
|
|
|
|
Put simply, Guice alleviates the need for factories and the use of new
|
|
|
|
in your Java code. Think of Guice's @Inject as the new new. You will
|
|
|
|
still need to write factories in some cases, but your code will not
|
|
|
|
depend directly on them. Your code will be easier to change, unit test
|
|
|
|
and reuse in other contexts.
|
|
|
|
|
|
|
|
Guice embraces Java's type safe nature, especially when it comes to
|
|
|
|
features introduced in Java 5 such as generics and annotations. You
|
|
|
|
might think of Guice as filling in missing features for core
|
|
|
|
Java. Ideally, the language itself would provide most of the same
|
|
|
|
features, but until such a language comes along, we have Guice.
|
|
|
|
|
|
|
|
Guice helps you design better APIs, and the Guice API itself sets a
|
|
|
|
good example. Guice is not a kitchen sink. We justify each feature
|
|
|
|
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.
|
|
|
|
|
2012-11-09 14:20:23 +00:00
|
|
|
%package -n %{short_name}-parent
|
|
|
|
Summary: Guice parent POM
|
|
|
|
|
|
|
|
%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.
|
|
|
|
|
|
|
|
%if %{with extensions}
|
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
%package -n %{short_name}-assistedinject
|
|
|
|
Summary: AssistedInject extension module for Guice
|
|
|
|
|
|
|
|
%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 %{short_name}-extensions
|
|
|
|
Summary: Extensions for Guice
|
|
|
|
|
|
|
|
%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 %{short_name}-grapher
|
|
|
|
Summary: Grapher extension module for Guice
|
|
|
|
|
|
|
|
%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 %{short_name}-jmx
|
|
|
|
Summary: JMX extension module for Guice
|
|
|
|
|
|
|
|
%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 %{short_name}-jndi
|
|
|
|
Summary: JNDI extension module for Guice
|
|
|
|
|
|
|
|
%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 %{short_name}-multibindings
|
|
|
|
Summary: MultiBindings extension module for Guice
|
|
|
|
|
|
|
|
%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 %{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.
|
|
|
|
|
|
|
|
%package -n %{short_name}-servlet
|
|
|
|
Summary: Servlet extension module for Guice
|
|
|
|
|
|
|
|
%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 %{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.
|
|
|
|
|
|
|
|
%package -n %{short_name}-throwingproviders
|
|
|
|
Summary: ThrowingProviders extension module for Guice
|
|
|
|
|
|
|
|
%description -n %{short_name}-throwingproviders
|
|
|
|
Guice is a lightweight dependency injection framework for Java 5
|
|
|
|
and above. This package provides ThrowingProviders module for Guice.
|
|
|
|
|
2012-11-09 14:20:23 +00:00
|
|
|
%endif # with extensions
|
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
%package javadoc
|
|
|
|
Summary: API documentation for Guice
|
2010-10-13 15:25:09 +00:00
|
|
|
Group: Documentation
|
2012-10-09 10:44:58 +00:00
|
|
|
Provides: %{short_name}-javadoc = %{version}-%{release}
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
%description javadoc
|
|
|
|
This package provides %{summary}.
|
2010-10-13 15:25:09 +00:00
|
|
|
|
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
%prep
|
2013-03-15 07:35:33 +00:00
|
|
|
%setup -q -n %{name}-%{version}
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
# We don't have struts2 in Fedora yet.
|
|
|
|
%pom_disable_module struts2 extensions
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
# Remove additional build profiles, which we don't use anyways
|
|
|
|
# and which are only pulling additional dependencies.
|
2013-09-10 17:31:15 +00:00
|
|
|
%pom_xpath_remove "pom:profile[pom:id='guice.with.jarjar']" core
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
# Animal sniffer is only causing problems. Disable it for now.
|
|
|
|
%pom_remove_plugin :animal-sniffer-maven-plugin core
|
|
|
|
%pom_remove_plugin :animal-sniffer-maven-plugin extensions
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
# We don't have the custom doclet used by upstream. Remove
|
|
|
|
# maven-javadoc-plugin to generate javadocs with default style.
|
|
|
|
%pom_remove_plugin :maven-javadoc-plugin
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2013-03-15 07:35:33 +00:00
|
|
|
%pom_remove_dep javax.persistence:persistence-api extensions/persist
|
|
|
|
%pom_add_dep org.hibernate.javax.persistence:hibernate-jpa-2.0-api extensions/persist
|
|
|
|
|
2013-09-12 16:21:06 +00:00
|
|
|
# remove test dependency to make sure we don't produce requires
|
|
|
|
# see #1007498
|
|
|
|
%pom_xpath_remove "pom:dependency[pom:classifier[text()='tests']]" extensions
|
|
|
|
|
2012-11-09 15:04:14 +00:00
|
|
|
# Don't try to build extension modules unless they are needed
|
|
|
|
%if %{without extensions}
|
|
|
|
%pom_disable_module extensions
|
|
|
|
%endif
|
|
|
|
|
2013-09-04 13:39:11 +00:00
|
|
|
# Upstream doesn't generate pom.properties, but we need it.
|
|
|
|
sed -i "/<addMavenDescriptor>/d" pom.xml
|
|
|
|
|
2013-01-29 08:09:07 +00:00
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
%build
|
2013-01-29 08:09:07 +00:00
|
|
|
%if %{with extensions}
|
2013-01-31 09:23:08 +00:00
|
|
|
%mvn_alias ":guice-{assistedinject,grapher,jmx,jndi,multibindings,persist,\
|
|
|
|
servlet,spring,throwingproviders}" "com.google.inject.extensions:guice-@1"
|
2013-01-29 08:09:07 +00:00
|
|
|
%endif # with extensions
|
|
|
|
|
2013-09-25 16:04:37 +00:00
|
|
|
%mvn_package :::no_aop: sisu-guice
|
|
|
|
|
2013-01-29 08:09:07 +00:00
|
|
|
%mvn_file ":guice-{*}" %{short_name}/guice-@1
|
2013-01-31 09:23:08 +00:00
|
|
|
%mvn_file ":sisu-guice" %{short_name}/%{name} %{name}
|
2013-01-29 08:09:07 +00:00
|
|
|
%mvn_alias ":sisu-guice" "com.google.inject:guice"
|
2012-10-09 10:44:58 +00:00
|
|
|
# Skip tests because of missing dependency (hsqldb-j5).
|
2013-01-29 08:09:07 +00:00
|
|
|
%mvn_build -f -s
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
%install
|
2013-01-29 08:09:07 +00:00
|
|
|
%mvn_install
|
2010-10-13 15:25:09 +00:00
|
|
|
|
2013-01-29 08:09:07 +00:00
|
|
|
%files -f .mfiles-sisu-guice
|
2012-10-31 15:59:56 +00:00
|
|
|
|
2013-01-29 08:09:07 +00:00
|
|
|
%files -n %{short_name}-parent -f .mfiles-guice-parent
|
2012-11-09 14:20:23 +00:00
|
|
|
%doc COPYING
|
2012-10-31 15:59:56 +00:00
|
|
|
|
2012-11-09 14:20:23 +00:00
|
|
|
%if %{with extensions}
|
2013-01-29 08:09:07 +00:00
|
|
|
%files -n %{short_name}-assistedinject -f .mfiles-guice-assistedinject
|
|
|
|
%files -n %{short_name}-extensions -f .mfiles-guice-extensions
|
|
|
|
%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
|
|
|
|
%files -n %{short_name}-persist -f .mfiles-guice-persist
|
|
|
|
%files -n %{short_name}-servlet -f .mfiles-guice-servlet
|
|
|
|
%files -n %{short_name}-spring -f .mfiles-guice-spring
|
|
|
|
%files -n %{short_name}-throwingproviders -f .mfiles-guice-throwingproviders
|
2012-11-09 14:20:23 +00:00
|
|
|
%endif # with extensions
|
2012-10-09 10:44:58 +00:00
|
|
|
|
2013-01-29 08:09:07 +00:00
|
|
|
%files javadoc -f .mfiles-javadoc
|
2012-10-09 10:44:58 +00:00
|
|
|
%doc COPYING
|
2010-10-13 15:25:09 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2013-09-25 16:04:37 +00:00
|
|
|
* Wed Sep 25 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.3-8
|
|
|
|
- Install no_aop artifact after javapackages update
|
|
|
|
|
2013-09-12 16:21:06 +00:00
|
|
|
* Thu Sep 12 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1.3-7
|
|
|
|
- Remove dependency on tests from runtime
|
|
|
|
- Related: rhbz#1007498
|
|
|
|
|
2013-09-10 17:31:15 +00:00
|
|
|
* Tue Sep 10 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.3-6
|
|
|
|
- Install no_aop artifact
|
|
|
|
- Resolves: rhbz#1006491
|
|
|
|
|
2013-09-04 13:39:11 +00:00
|
|
|
* Wed Sep 4 2013 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.3-5
|
|
|
|
- Enable pom.properties
|
|
|
|
- Resolves: rhbz#1004360
|
|
|
|
|
2013-08-07 06:56:11 +00:00
|
|
|
* Wed Aug 07 2013 Michal Srb <msrb@redhat.com> - 3.1.3-4
|
|
|
|
- Add create-tarball.sh script to SRPM
|
|
|
|
|
2013-08-03 16:15:45 +00:00
|
|
|
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.1.3-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
|
|
2013-04-24 08:22:41 +00:00
|
|
|
* Wed Apr 24 2013 Michal Srb <msrb@redhat.com> - 3.1.3-2
|
|
|
|
- Revert update to 3.1.4 (uses asm4)
|
2013-04-24 06:29:45 +00:00
|
|
|
|
2013-03-15 07:35:33 +00:00
|
|
|
* Thu Mar 14 2013 Michal Srb <msrb@redhat.com> - 3.1.3-1
|
|
|
|
- Update to upstream version 3.1.3
|
|
|
|
- Remove bundled JARs from tarball
|
|
|
|
|
2013-02-06 18:50:25 +00:00
|
|
|
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 3.1.2-11
|
|
|
|
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
|
|
|
|
- Replace maven BuildRequires with maven-local
|
|
|
|
|
2013-01-31 09:23:08 +00:00
|
|
|
* Thu Jan 31 2013 Michal Srb <msrb@redhat.com> - 3.1.2-10
|
|
|
|
- Remove all requires
|
|
|
|
- Correct usage of xmvn's macros
|
|
|
|
|
2013-01-29 08:09:07 +00:00
|
|
|
* Mon Jan 28 2013 Michal Srb <msrb@redhat.com> - 3.1.2-9
|
|
|
|
- Build with xmvn
|
|
|
|
|
2012-11-16 13:15:58 +00:00
|
|
|
* Fri Nov 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-8
|
|
|
|
- Remove README
|
|
|
|
|
2012-11-16 12:57:37 +00:00
|
|
|
* Fri Nov 16 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-7
|
|
|
|
- Repackage tarball
|
|
|
|
|
2012-11-09 15:04:14 +00:00
|
|
|
* Fri Nov 9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-6
|
|
|
|
- Don't try to build extension modules unless they are needed
|
|
|
|
|
2012-11-09 14:29:05 +00:00
|
|
|
* Fri Nov 9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-5
|
|
|
|
- Conditionalize %%install section too
|
|
|
|
|
2012-11-09 14:20:23 +00:00
|
|
|
* Fri Nov 9 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-4
|
|
|
|
- Conditionally disable extensions
|
|
|
|
|
2012-11-01 12:35:22 +00:00
|
|
|
* Thu Nov 1 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-3
|
|
|
|
- Update to new add_maven_depmap macro
|
|
|
|
|
2012-10-31 15:59:56 +00:00
|
|
|
* Wed Oct 31 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.1.2-2
|
|
|
|
- Use new generated maven filelist feature from javapackages-tools
|
|
|
|
|
2012-10-09 10:44:58 +00:00
|
|
|
* Fri Oct 5 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 3.1.2-1
|
|
|
|
- Complete rewrite of the spec file
|
|
|
|
- New upstream, to ease future maintenance
|
|
|
|
- Build with maven instead of ant
|
|
|
|
- Split into multiple subpackages
|
|
|
|
|
2012-07-19 09:12:17 +00:00
|
|
|
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.7.rc2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
|
|
2012-02-09 15:23:50 +00:00
|
|
|
* Thu Feb 9 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0-0.6.rc2
|
|
|
|
- Temporary fix for maven buildroots
|
|
|
|
|
2012-01-13 04:11:07 +00:00
|
|
|
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 3.0-0.5.rc2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
|
|
|
|
|
2011-10-12 13:06:33 +00:00
|
|
|
* Wed Oct 12 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0-0.4.rc2
|
|
|
|
- Build with aqute-bnd (#745176)
|
|
|
|
- Use new maven macros
|
|
|
|
- Few packaging tweaks
|
|
|
|
|
2011-05-24 09:34:02 +00:00
|
|
|
* Tue May 24 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0-0.3.rc2
|
|
|
|
- Add cglib and atinject to R
|
|
|
|
|
2011-05-12 13:52:20 +00:00
|
|
|
* Thu May 12 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0-0.2.rc2
|
|
|
|
- Remove test and missing deps from pom.xml
|
|
|
|
|
2011-03-01 08:10:00 +00:00
|
|
|
* Tue Mar 1 2011 Stanislav Ochotnicky <sochotnicky@redhat.com> - 3.0-0.1.rc2
|
|
|
|
- Update to 3.0rc2
|
|
|
|
- Changes according to new guidelines (versionless jars & javadocs)
|
|
|
|
|
2011-02-09 05:34:03 +00:00
|
|
|
* Tue Feb 08 2011 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 2.0-4.1219svn
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_15_Mass_Rebuild
|
|
|
|
|
2010-10-14 07:44:34 +00:00
|
|
|
* Thu Oct 14 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-3.1219svn
|
|
|
|
- Add java-devel >= 1:1.6.0 to BR
|
|
|
|
|
2010-10-13 15:25:09 +00:00
|
|
|
* Wed Oct 13 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-2.1219svn
|
|
|
|
- Moved munge repacking to prep
|
|
|
|
- Added -Dversion to change generated manifest version
|
|
|
|
- Removed http part of URL
|
|
|
|
|
|
|
|
* Thu Oct 7 2010 Stanislav Ochotnicky <sochotnicky@redhat.com> - 2.0-1.1219svn
|
|
|
|
- Initial version of the package
|