Пакет glassfish-hk2: 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 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 | Group: Development/Java # BEGIN SourceDeps(oneline): BuildRequires(pre): rpm-build-java # END SourceDeps(oneline) %filter_from_requires /^java-headless/d BuildRequires: /proc BuildRequires: jpackage-generic-compat # %%name or %%version is ahead of its definition. Predefining for rpm 4.0 compatibility. %define name glassfish-hk2 %define version 2.4.0 %global namedreltag -b25 %global namedversion %{version}%{?namedreltag} Name: glassfish-hk2 Version: 2.4.0 Release: alt1_0.7.b25jpp8 Summary: Hundred Kilobytes Kernel License: CDDL or GPLv2 with exceptions URL: http://hk2.java.net/ Source0: https://github.com/hk2-project/hk2/archive/hk2-parent-%{namedversion}.tar.gz # https://java.net/jira/browse/HK2-250 # wget -O glassfish-LICENSE.txt https://svn.java.net/svn/glassfish~svn/tags/legal-1.1/src/main/resources/META-INF/LICENSE.txt # glassfish-hk2 package don't include the license file Source1: glassfish-LICENSE.txt Source2: hk2-inhabitant-generator-osgi.bundle Patch0: glassfish-hk2-2.3.0-hk2-utils-osgi_bundle.patch Patch1: glassfish-hk2-2.4.0-b24-disable-asm-all-repackaged.patch Patch2: glassfish-hk2-2.3.0-disable-external-aopalliance.patch BuildRequires: maven-local BuildRequires: mvn(aopalliance:aopalliance) BuildRequires: mvn(args4j:args4j) BuildRequires: mvn(com.google.inject:guice) BuildRequires: mvn(com.sun.codemodel:codemodel) BuildRequires: mvn(javax.el:javax.el-api) BuildRequires: mvn(javax.enterprise:cdi-api) BuildRequires: mvn(javax.inject:javax.inject) BuildRequires: mvn(junit:junit) BuildRequires: mvn(net.java:jvnet-parent:pom:) BuildRequires: mvn(org.apache.ant:ant) BuildRequires: mvn(org.apache.ant:ant-launcher) BuildRequires: mvn(org.apache.bcel:bcel) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) BuildRequires: mvn(org.apache.felix:org.apache.felix.bundlerepository) BuildRequires: mvn(org.apache.felix:org.osgi.core) BuildRequires: mvn(org.apache.maven:maven-archiver) BuildRequires: mvn(org.apache.maven:maven-artifact) BuildRequires: mvn(org.apache.maven:maven-compat) BuildRequires: mvn(org.apache.maven:maven-core) BuildRequires: mvn(org.apache.maven:maven-plugin-api) BuildRequires: mvn(org.apache.maven.plugins:maven-antrun-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-compiler-plugin) BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin) BuildRequires: mvn(org.apache.maven.shared:maven-osgi) BuildRequires: mvn(org.easymock:easymock) BuildRequires: mvn(org.glassfish.hk2:osgi-resource-locator) BuildRequires: mvn(org.hibernate:hibernate-validator) BuildRequires: mvn(org.javassist:javassist) BuildRequires: mvn(org.jvnet:tiger-types) BuildRequires: mvn(org.mockito:mockito-core) BuildRequires: mvn(org.osgi:org.osgi.compendium) BuildRequires: mvn(org.osgi:org.osgi.core) BuildRequires: mvn(org.ow2.asm:asm-all) BuildRequires: mvn(org.springframework:spring-context) BuildRequires: mvn(org.testng:testng) Obsoletes: %{name}-apt BuildArch: noarch Source44: import.info %description HK2 for Hundred Kilobytes Kernel is an abstraction to a module subsystem coupled with a simple yet powerful component model to build server side software. %package api Group: Development/Java Summary: HK2 API module %description api Hundred Kilobytes Kernel API module. %package class-model Group: Development/Java Summary: Class Model for Hk2 %description class-model Hundred Kilobytes Kernel Class Model. %package configuration Group: Development/Java Summary: HK2 configuration modules %description configuration Hundred Kilobytes Kernel configuration modules. %package core Group: Development/Java Summary: HK2 core module %description core Hundred Kilobytes Kernel core module. %package dependency-verifier Group: Development/Java Summary: HK2 Static Analyser for verifying module dependency %description dependency-verifier HK2 Static Analyser for verifying module dependency. %package dependency-visualizer Group: Development/Java Summary: HK2 Tool to visualize the dependencies %description dependency-visualizer Tool to visualize the dependencies generated by HK2's dependency-verifier. %package extras Group: Development/Java Summary: HK2 extras module %description extras Default implementations for HK2 services. %package guice-bridge Group: Development/Java Summary: HK2 Guice Bridge %description guice-bridge Hundred Kilobytes Kernel Guice Bridge. %package hk2 Group: Development/Java Summary: HK2 module of HK2 itself %description hk2 This is so that other modules can depend on HK2 as an HK2 module. %package inhabitant-generator Group: Development/Java Summary: HK2 Inhabitant Generator - maven plugin %description inhabitant-generator Hundred Kilobytes Kernel Inhabitant Generator - maven plugin. %package jmx Group: Development/Java Summary: HK2 JMX module %description jmx Hundred Kilobytes Kernel JMX module. %package locator Group: Development/Java Summary: HK2 ServiceLocator Default Implementation %description locator Hundred Kilobytes Kernel ServiceLocator Default Implementation. %package maven Group: Development/Java Summary: HK2 Module system maven support %description maven HK2 Maven plugin for developing. %package maven-plugins Group: Development/Java Summary: HK2 Maven Plugins %description maven-plugins This package provides: * consolidated bundle Maven plugin, * osgiversion-maven-plugin - Maven Plugin for computing OSGi versions from Maven versions. %package metadata-generator Group: Development/Java Summary: HK2 Metadata Generator %description metadata-generator HK2 Metadata Generator Subsystem. %package osgi Group: Development/Java Summary: HK2 OSGi Adapter %description osgi HK2 Maven plugin for developing. %package runlevel Group: Development/Java Summary: HK2 Run Level Service %description runlevel Hundred Kilobytes Kernel Run Level Service. %package spring-bridge Group: Development/Java Summary: HK2 Spring Bridge %description spring-bridge Hundred Kilobytes Kernel Spring Bridge. %package testing Group: Development/Java Summary: Utilities for testing with HK2 %description testing Hundred Kilobytes Kernel Utilities for testing. %package locator-extras Group: Development/Java Summary: HK2 Locator unit tests %description locator-extras Extra unit tests for the HK2 Locator implementation. %package locator-no-proxies Group: Development/Java Summary: HK2 Locator No Proxy Unit tests %description locator-no-proxies Tests the basic HK2 locator with no proxiable scopes. %package locator-no-proxies2 Group: Development/Java Summary: HK2 Locator No Proxy Unit tests (2) %description locator-no-proxies2 Tests the basic HK2 locator using AOP proxies. %package runlevel-extras Group: Development/Java Summary: HK2 RunLevel unit tests %description runlevel-extras Extra unit tests for the HK2 RunLevelService implementation. %package testng Group: Development/Java Summary: HK2 TestNG runner %description testng A utility for running HK2 under TestNG. %package utils Group: Development/Java Summary: HK2 Implementation Utilities %description utils Hundred Kilobytes Kernel Implementation Utilities. %package javadoc Group: Development/Java Summary: Javadoc for %{name} BuildArch: noarch %description javadoc This package contains javadoc for %{name}. %prep %setup -q -n hk2-hk2-parent-%{namedversion} # Do not remove test resources find . -name '*.jar' ! -name "gendir.jar" -type f -print -delete find . -name '*.class' -print -delete %patch0 -p0 %patch1 -p1 %patch2 -p1 %pom_remove_plugin :maven-resources-plugin %pom_remove_dep org.glassfish.hk2.external:aopalliance-repackaged hk2-extras %pom_add_dep aopalliance:aopalliance:'${aopalliance.version}' hk2-extras # org.apache.maven.wagon:wagon-webdav-jackrabbit:2.0 %pom_xpath_remove pom:build/pom:extensions %pom_remove_plugin com.googlecode.maven-download-plugin:maven-download-plugin %pom_remove_plugin :maven-site-plugin %pom_remove_plugin :maven-eclipse-plugin %pom_remove_plugin :maven-release-plugin %pom_remove_plugin :findbugs-maven-plugin %pom_disable_module external %pom_remove_dep org.glassfish.hk2.external: bom %pom_remove_dep org.glassfish.hk2:external bom %pom_remove_dep org.glassfish.hk2:tiger-types-osgi bom %pom_disable_module examples # Use unavailable: org.ops4j.pax.exam, org.ops4j.pax.url %pom_disable_module osgi-adapter-test osgi/adapter-tests %pom_remove_dep :osgi-adapter-test bom %pom_remove_dep org.ops4j.base: %pom_remove_dep org.ops4j.pax.exam: %pom_remove_dep org.ops4j.pax.tipi: %pom_remove_dep org.ops4j.pax.url: # disable tiger-types copy %pom_remove_plugin :maven-dependency-plugin hk2-utils %pom_xpath_remove "pom:plugin[pom:artifactId ='maven-surefire-plugin']/pom:configuration" hk2-api %pom_xpath_remove "pom:plugin[pom:artifactId ='maven-surefire-plugin']/pom:configuration" hk2-locator %pom_xpath_set "pom:dependency[pom:groupId ='org.osgi']/pom:artifactId" org.osgi.core hk2-maven %pom_remove_dep org.apache.maven:maven-project hk2-maven %pom_add_dep org.apache.maven:maven-core hk2-maven %pom_add_dep org.apache.maven:maven-compat hk2-maven %pom_remove_dep org.apache.maven:maven-project hk2-inhabitant-generator %pom_add_dep org.apache.maven:maven-core::provided hk2-inhabitant-generator %pom_remove_dep org.apache.maven:maven-project hk2-configuration/persistence/hk2-xml-dom/config-generator %pom_add_dep org.apache.maven:maven-core hk2-configuration/persistence/hk2-xml-dom/config-generator %pom_remove_dep :org.osgi.enterprise class-model %pom_add_dep org.osgi:org.osgi.compendium:4.2.0:provided class-model %pom_remove_plugin :maven-dependency-plugin osgi/adapter-tests/sdp-management-bundle %pom_xpath_set "pom:dependency[pom:groupId ='com.sun']/pom:artifactId" tools hk2-testing/ant %pom_xpath_remove "pom:dependency[pom:groupId ='com.sun']/pom:scope" hk2-testing/ant %pom_xpath_remove "pom:dependency[pom:groupId ='com.sun']/pom:systemPath" hk2-testing/ant %pom_xpath_remove "pom:profiles/pom:profile[pom:id ='mac']" hk2-testing/ant # Unavailable test dep org.assertj:assertj-core:1.4.0 org.uncommons:reportng:jar:1.1.2 %pom_remove_dep org.assertj:assertj-core hk2-testing/hk2-testng %pom_remove_dep org.uncommons:reportng hk2-testing/hk2-testng rm -r hk2-testing/hk2-testng/src/test/java/* %pom_remove_dep org.assertj:assertj-core hk2-testing/hk2-mockito %pom_remove_dep org.uncommons:reportng hk2-testing/hk2-mockito rm -r hk2-testing/hk2-mockito/src/test/java/* %pom_remove_dep org.uncommons:reportng hk2-testing/hk2-runlevel-extras rm -r hk2-testing/hk2-runlevel-extras/src/test/java/* %pom_xpath_set "pom:plugin[pom:artifactId ='maven-jar-plugin']/pom:configuration/pom:archive/pom:manifest/pom:addClasspath" false dependency-verifier mkdir -p hk2/target/classes %pom_remove_plugin :maven-jar-plugin hk2 for d in hk2-configuration/persistence/hk2-xml-dom/hub-integration \ hk2-configuration/persistence/hk2-xml-dom/hk2-config;do %pom_remove_dep org.glassfish.hk2.external:bean-validator $d %pom_add_dep org.hibernate:hibernate-validator:'${hibernate-validator.version}' $d done for d in hk2-inhabitant-generator \ hk2-locator \ hk2-metadata-generator/main \ hk2-metadata-generator/test1 \ hk2-testing/hk2-junitrunner \ hk2-testing/hk2-locator-extras \ hk2-testing/hk2-locator-no-proxies \ hk2-testing/hk2-locator-no-proxies2 \ hk2-testing/hk2-mockito \ hk2-testing/hk2-runlevel-extras \ hk2-testing/hk2-testng \ hk2-testing/interceptor-events \ osgi/adapter-tests/no-hk2-bundle;do %pom_xpath_set "pom:dependency[pom:artifactId = 'javax.inject']/pom:groupId" javax.inject $d done %pom_xpath_set "pom:dependency[pom:artifactId ='ant']/pom:groupId" org.apache.ant hk2-inhabitant-generator # Drop pre-existent OSGI manifest file rm -r hk2-inhabitant-generator/src/main/resources/META-INF/MANIFEST.MF %pom_add_plugin org.apache.felix:maven-bundle-plugin:2.3.7 hk2-inhabitant-generator ' <configuration> <supportedProjectTypes> <supportedProjectType>maven-plugin</supportedProjectType> </supportedProjectTypes> </configuration> <executions> <execution> <id>bundle-manifest</id> <phase>process-classes</phase> <goals> <goal>manifest</goal> </goals> </execution> </executions>' # Add configuration file for osgiversion plugin cp -p %SOURCE2 hk2-inhabitant-generator/osgi.bundle %pom_add_plugin org.glassfish.hk2:osgiversion-maven-plugin:'${project.version}' hk2-inhabitant-generator # Inject manifest file %pom_add_plugin org.apache.maven.plugins:maven-jar-plugin:2.4 hk2-inhabitant-generator " <configuration> <manifestFile>\${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile> <archive> <manifestEntries> <service>foo</service> </manifestEntries> </archive> </configuration>" cp -p %{SOURCE1} LICENSE.txt sed -i 's/\r//' LICENSE.txt %mvn_package ":class-model" class-model %mvn_package ":hk2" hk2 %mvn_package ":hk2-api" api %mvn_package ":hk2-bom" %{name} %mvn_package ":hk2-core" core %mvn_package ":hk2-parent" %{name} %mvn_package ":config-generator" configuration %mvn_package ":config-types" configuration %mvn_package ":hk2-config" configuration %mvn_package ":hk2-config-hub-integration" configuration %mvn_package ":hk2-configuration" configuration %mvn_package ":hk2-configuration-integration" configuration %mvn_package ":hk2-configuration-hub" configuration %mvn_package ":hk2-configuration-persistence" configuration %mvn_package ":hk2-property-file" configuration %mvn_package ":hk2-xml-parent" configuration %mvn_package ":hk2-xml" configuration %mvn_package ":hk2-xml-test" configuration %mvn_package ":hk2-xml-dom" configuration %mvn_package ":hk2-dependency-verifier" dependency-verifier %mvn_package ":hk2-dependency-visualizer" dependency-visualizer %mvn_package ":hk2-extras" extras %mvn_package ":hk2-inhabitant-generator" inhabitant-generator %mvn_package ":hk2-jmx" jmx %mvn_package ":hk2-locator" locator %mvn_package ":hk2-locator-extras" locator-extras %mvn_package ":hk2-locator-no-proxies" locator-no-proxies %mvn_package ":hk2-locator-no-proxies2" locator-no-proxies2 %mvn_package ":hk2-maven" maven %mvn_package ":consolidatedbundle-maven-plugin" maven-plugins %mvn_package ":osgiversion-maven-plugin" maven-plugins %mvn_package ":hk2-metadata-generator-parent" metadata-generator %mvn_package ":hk2-metadata-generator" metadata-generator %mvn_package ":hk2-metadata-generator-test1" metadata-generator %mvn_package ":hk2-runlevel" runlevel %mvn_package ":hk2-runlevel-extras" runlevel-extras %mvn_package ":hk2-utils" utils %mvn_package ":guice-bridge" guice-bridge %mvn_package ":spring-bridge" spring-bridge %mvn_package ":hk2-testing" testing %mvn_package ":hk2-junitrunner" testing %mvn_package ":hk2-ant-test" testing %mvn_package ":hk2-collections-tests" testing %mvn_package ":hk2-mockito" testing %mvn_package ":interceptor-events" testing %mvn_package ":hk2-testng" testng %mvn_package ":osgi" osgi %mvn_package ":osgi-adapter" osgi %mvn_package ":osgi-adapter-tests-parent" osgi %mvn_package ":contract-bundle" osgi %mvn_package ":faux-sdp-bundle" osgi %mvn_package ":no-hk2-bundle" osgi %mvn_package ":sdp-management-bundle" osgi %mvn_package ":test-module-startup" osgi %build %mvn_build -- -Dmaven.test.failure.ignore=true %install %mvn_install %files -f .mfiles-%{name} %dir %{_javadir}/%{name} %doc README.md %doc LICENSE.txt %files api -f .mfiles-api %doc LICENSE.txt %files class-model -f .mfiles-class-model %doc LICENSE.txt %files configuration -f .mfiles-configuration %doc LICENSE.txt %files core -f .mfiles-core %doc LICENSE.txt %files dependency-verifier -f .mfiles-dependency-verifier %doc LICENSE.txt %files dependency-visualizer -f .mfiles-dependency-visualizer %doc dependency-visualizer/README %doc LICENSE.txt %files extras -f .mfiles-extras %doc LICENSE.txt %files guice-bridge -f .mfiles-guice-bridge %doc LICENSE.txt %files hk2 -f .mfiles-hk2 %doc LICENSE.txt %files inhabitant-generator -f .mfiles-inhabitant-generator %doc LICENSE.txt %files jmx -f .mfiles-jmx %doc LICENSE.txt %files locator -f .mfiles-locator %doc LICENSE.txt %files maven -f .mfiles-maven %doc LICENSE.txt %files maven-plugins -f .mfiles-maven-plugins %doc LICENSE.txt %files metadata-generator -f .mfiles-metadata-generator %doc LICENSE.txt %files osgi -f .mfiles-osgi %doc LICENSE.txt %files runlevel -f .mfiles-runlevel %doc LICENSE.txt %files spring-bridge -f .mfiles-spring-bridge %doc LICENSE.txt %files testing -f .mfiles-testing %doc LICENSE.txt %files locator-extras -f .mfiles-locator-extras %doc hk2-testing/hk2-locator-extras/README.txt %doc LICENSE.txt %files locator-no-proxies -f .mfiles-locator-no-proxies %doc hk2-testing/hk2-locator-no-proxies/README.txt %doc LICENSE.txt %files locator-no-proxies2 -f .mfiles-locator-no-proxies2 %doc hk2-testing/hk2-locator-no-proxies2/README.txt %doc LICENSE.txt %files runlevel-extras -f .mfiles-runlevel-extras %doc hk2-testing/hk2-runlevel-extras/README.txt %doc LICENSE.txt %files testng -f .mfiles-testng %doc hk2-testing/hk2-testng/README.md %doc LICENSE.txt %files utils -f .mfiles-utils %doc LICENSE.txt %files javadoc -f .mfiles-javadoc %doc LICENSE.txt %changelog * Sun Feb 07 2016 Igor Vlasenko <viy@altlinux.ru> 2.4.0-alt1_0.7.b25jpp8 - java 8 mass update * Wed Aug 27 2014 Igor Vlasenko <viy@altlinux.ru> 2.1.93-alt1_3jpp7 - new release |