Package google-guice: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 | Epoch: 0 Group: Development/Java AutoReq: yes,noosgi BuildRequires: rpm-build-java-osgi BuildRequires: /proc rpm-build-java BuildRequires: jpackage-default # fedora bcond_with macro %define bcond_with() %{expand:%%{?_with_%{1}:%%global with_%{1} 1}} %define bcond_without() %{expand:%%{!?_without_%{1}:%%global with_%{1} 1}} # redefine altlinux specific with and without %define with() %{expand:%%{?with_%{1}:1}%%{!?with_%{1}:0}} %define without() %{expand:%%{?with_%{1}:0}%%{!?with_%{1}:1}} # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} %bcond_with bootstrap Name: google-guice Version: 4.2.3 Release: alt1_6jpp11 Summary: Lightweight dependency injection framework for Java 5 and above License: ASL 2.0 URL: https://github.com/google/guice BuildArch: noarch # ./create-tarball.sh %%{version} Source0: %{name}-%{version}.tar.xz Source1: create-tarball.sh BuildRequires: maven-local %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: 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.sonatype.plugins:munge-maven-plugin) %endif # xmvn-builddep misses this: %if %{without bootstrap} BuildRequires: mvn(org.apache:apache-jar-resource-bundle) %endif Source44: import.info %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. %package -n guice-parent Group: Development/Java Summary: Guice parent POM %description -n guice-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 Group: Development/Java Summary: AssistedInject extension module for Guice %description -n guice-assistedinject Guice is a lightweight dependency injection framework for Java 5 and above. This package provides AssistedInject module for Guice. %package -n guice-extensions Group: Development/Java Summary: Extensions for Guice %description -n guice-extensions Guice is a lightweight dependency injection framework for Java 5 and above. This package provides extensions POM for Guice. %package -n guice-grapher Group: Development/Java Summary: Grapher extension module for Guice %description -n guice-grapher Guice is a lightweight dependency injection framework for Java 5 and above. This package provides Grapher module for Guice. %package -n guice-jmx Group: Development/Java Summary: JMX extension module for Guice %description -n guice-jmx Guice is a lightweight dependency injection framework for Java 5 and above. This package provides JMX module for Guice. %package -n guice-jndi Group: Development/Java Summary: JNDI extension module for Guice %description -n guice-jndi Guice is a lightweight dependency injection framework for Java 5 and above. This package provides JNDI module for Guice. %package -n guice-multibindings Group: Development/Java Summary: MultiBindings extension module for Guice %description -n guice-multibindings Guice is a lightweight dependency injection framework for Java 5 and above. This package provides MultiBindings module for Guice. %package -n guice-servlet Group: Development/Java Summary: Servlet extension module for Guice %description -n guice-servlet Guice is a lightweight dependency injection framework for Java 5 and above. This package provides Servlet module for Guice. %package -n guice-throwingproviders Group: Development/Java Summary: ThrowingProviders extension module for Guice %description -n guice-throwingproviders Guice is a lightweight dependency injection framework for Java 5 and above. This package provides ThrowingProviders module for Guice. %package -n guice-bom Group: Development/Java Summary: Bill of Materials for Guice %description -n guice-bom Guice is a lightweight dependency injection framework for Java 5 and above. This package provides Bill of Materials module for Guice. %{?javadoc_package} %prep %setup -q # We don't have struts2 in Fedora yet. %pom_disable_module struts2 extensions # Android-specific extension %pom_disable_module dagger-adapter extensions # Remove additional build profiles, which we don't use anyways # and which are only pulling additional dependencies. %pom_xpath_remove "pom:profile[pom:id='guice.with.jarjar']" core # Fix OSGi metadata due to not using jarjar %pom_xpath_set "pom:instructions/pom:Import-Package" \ "!com.google.inject.*,*" core # 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 %pom_remove_plugin :maven-gpg-plugin # We don't have the custom doclet used by upstream. Remove # maven-javadoc-plugin to generate javadocs with default style. %pom_remove_plugin -r :maven-javadoc-plugin # 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_remove_parent %pom_set_parent com.google.inject:guice-parent:%{version} jdk8-tests %pom_disable_module persist extensions %pom_disable_module spring extensions %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_alias ":guice" "org.sonatype.sisu:sisu-guice" # Skip tests because of missing dependency guice-testlib %mvn_build -f -s -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 %install %mvn_install %files -n %{?module_prefix}%{name} -f .mfiles-guice %files -n guice-parent -f .mfiles-guice-parent %doc --no-dereference 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 May 30 2022 Igor Vlasenko <viy@altlinux.org> 0:4.2.3-alt1_6jpp11 - update * Tue Jun 01 2021 Igor Vlasenko <viy@altlinux.org> 0:4.2.3-alt1_3jpp11 - new version * Fri Oct 09 2020 Igor Vlasenko <viy@altlinux.ru> 0:4.2.2-alt1_1jpp8 - new version * Mon May 27 2019 Igor Vlasenko <viy@altlinux.ru> 0:4.1-alt1_14jpp8 - new version * Tue Feb 05 2019 Igor Vlasenko <viy@altlinux.ru> 0:4.1-alt1_12jpp8 - fc29 update * Fri Jun 01 2018 Igor Vlasenko <viy@altlinux.ru> 0:4.1-alt1_11jpp8 - java fc28+ update * Tue May 15 2018 Igor Vlasenko <viy@altlinux.ru> 0:4.1-alt1_10jpp8 - java update * Thu Nov 09 2017 Igor Vlasenko <viy@altlinux.ru> 0:4.1-alt1_8jpp8 - fc27 update * Wed Oct 18 2017 Igor Vlasenko <viy@altlinux.ru> 0:4.1-alt1_5jpp8 - new jpp release * Fri Dec 16 2016 Igor Vlasenko <viy@altlinux.ru> 0:4.0-alt1_5jpp8 - new fc release * Tue Nov 22 2016 Igor Vlasenko <viy@altlinux.ru> 0:4.0-alt1_4jpp8 - new fc release * Wed Feb 10 2016 Igor Vlasenko <viy@altlinux.ru> 0:4.0-alt1_3jpp8 - added osgi provides * Sun Feb 07 2016 Igor Vlasenko <viy@altlinux.ru> 0:4.0-alt1_2jpp8 - java8 mass update * Tue Jan 19 2016 Igor Vlasenko <viy@altlinux.ru> 0:4.0-alt0.1jpp - bootstrap pack of jars created with jppbootstrap script - temporary package to satisfy circular dependencies * Sat Aug 23 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.1.3-alt1_1jpp7 - new version * Thu Aug 07 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.1.2-alt2_6jpp7 - rebuild with maven-local * Fri Jul 18 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.1.2-alt1_6jpp7 - non-bootstrap build * Fri Jul 18 2014 Igor Vlasenko <viy@altlinux.ru> 0:3.1.2-alt0.1jpp - bootstrap pack of jars created with jppbootstrap script - temporary package to satisfy circular dependencies |