Package felix-bundlerepository: 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 | Group: Development/Java %filter_from_requires /^java-headless/d BuildRequires: /proc BuildRequires: jpackage-generic-compat %define fedora 23 %global site_name org.apache.felix.bundlerepository %global grp_name felix Name: felix-bundlerepository Version: 1.6.6 Release: alt4_18jpp8 Summary: Bundle repository service License: ASL 2.0 and MIT URL: http://felix.apache.org/site/apache-felix-osgi-bundle-repository.html Source0: http://www.fightrice.com/mirrors/apache/felix/org.apache.felix.bundlerepository-%{version}-source-release.tar.gz Patch1: 0001-Unbundle-libraries.patch BuildArch: noarch BuildRequires: maven-local BuildRequires: mvn(junit:junit) BuildRequires: mvn(net.sf.kxml:kxml2) BuildRequires: mvn(org.apache.felix:felix-parent:pom:) BuildRequires: mvn(org.apache.felix:org.apache.felix.shell) BuildRequires: mvn(org.apache.felix:org.apache.felix.utils) BuildRequires: mvn(org.apache.felix:org.osgi.service.obr) BuildRequires: mvn(org.codehaus.woodstox:woodstox-core-asl) BuildRequires: mvn(org.osgi:org.osgi.compendium) BuildRequires: mvn(org.osgi:org.osgi.core) BuildRequires: mvn(xpp3:xpp3) %{?fedora:BuildRequires: mvn(org.easymock:easymock)} Source44: import.info %description Bundle repository service %package javadoc Group: Development/Java Summary: API documentation for %{name} BuildArch: noarch %description javadoc This package contains the API documentation for %{name}. %prep %setup -q -n %{site_name}-%{version} %patch1 -p1 # Parent POM pulls in unneeded dependencies (mockito) %pom_remove_parent %pom_xpath_inject "pom:project" "<groupId>org.apache.felix</groupId>" %pom_add_dep junit:junit::test %if 0%{?fedora} # easymock is test dependency %pom_xpath_inject "pom:dependency[pom:artifactId[text()='easymock']]" "<scope>test</scope>" %else %pom_remove_dep org.easymock:easymock %endif %if !0%{?fedora} # These tests won't work without easymock3 rm -f src/test/java/org/apache/felix/bundlerepository/impl/RepositoryAdminTest.java rm -f src/test/java/org/apache/felix/bundlerepository/impl/RepositoryImplTest.java rm -f src/test/java/org/apache/felix/bundlerepository/impl/StaxParserTest.java rm -f src/test/java/org/apache/felix/bundlerepository/impl/ResolverImplTest.java %endif # Add xpp3 dependency (upstream bundles this) %pom_add_dep "xpp3:xpp3:1.1.3.4.O" pom.xml "<optional>true</optional>" # Make felix utils mandatory dep %pom_xpath_remove "pom:dependency[pom:artifactId[text()='org.apache.felix.utils']]/pom:optional" # For compatibility reasons %mvn_file : felix/%{name} %build %mvn_build %install %mvn_install %files -f .mfiles %doc LICENSE LICENSE.kxml2 NOTICE DEPENDENCIES %files javadoc -f .mfiles-javadoc %doc LICENSE LICENSE.kxml2 NOTICE %changelog * Wed Feb 03 2016 Igor Vlasenko <viy@altlinux.ru> 1.6.6-alt4_18jpp8 - new version * Fri Jan 22 2016 Igor Vlasenko <viy@altlinux.ru> 1.6.6-alt3jpp - bootstrap pack of jars created with jppbootstrap script - temporary package to satisfy circular dependencies * Mon Sep 08 2014 Igor Vlasenko <viy@altlinux.ru> 1.6.6-alt2_15jpp7 - new release * Mon Jul 28 2014 Igor Vlasenko <viy@altlinux.ru> 1.6.6-alt2_9jpp7 - new release * Mon Jul 14 2014 Igor Vlasenko <viy@altlinux.ru> 1.6.6-alt2_7jpp7 - NMU rebuild to move poms and fragments * Thu Aug 23 2012 Igor Vlasenko <viy@altlinux.ru> 1.6.6-alt1_7jpp7 - new release |