Blame SPECS/felix-bundlerepository.spec

b04d70
%global site_name org.apache.felix.bundlerepository
b04d70
%global grp_name  felix
b04d70
b04d70
Name:           felix-bundlerepository
b04d70
Version:        1.6.6
063307
Release:        15%{?dist}
b04d70
Summary:        Bundle repository service
b04d70
License:        ASL 2.0 and MIT
b04d70
URL:            http://felix.apache.org/site/apache-felix-osgi-bundle-repository.html
b04d70
b04d70
Source0:        http://www.fightrice.com/mirrors/apache/felix/org.apache.felix.bundlerepository-%{version}-source-release.tar.gz
b04d70
Patch1:         0001-Unbundle-libraries.patch
b04d70
b04d70
BuildArch:      noarch
b04d70
b04d70
BuildRequires:  maven-local
b04d70
BuildRequires:  mvn(junit:junit)
b04d70
BuildRequires:  mvn(net.sf.kxml:kxml2)
b04d70
BuildRequires:  mvn(org.apache.felix:felix-parent)
b04d70
BuildRequires:  mvn(org.apache.felix:org.apache.felix.shell)
b04d70
BuildRequires:  mvn(org.apache.felix:org.apache.felix.utils)
b04d70
BuildRequires:  mvn(org.apache.felix:org.osgi.service.obr)
b04d70
BuildRequires:  mvn(org.codehaus.woodstox:woodstox-core-asl)
b04d70
BuildRequires:  mvn(org.osgi:org.osgi.compendium)
b04d70
BuildRequires:  mvn(org.osgi:org.osgi.core)
b04d70
BuildRequires:  mvn(xpp3:xpp3)
b04d70
%{?fedora:BuildRequires: mvn(org.easymock:easymock)}
b04d70
b04d70
b04d70
%description
b04d70
Bundle repository service
b04d70
b04d70
%package javadoc
b04d70
Summary:          API documentation for %{name}
b04d70
b04d70
%description javadoc
b04d70
This package contains the API documentation for %{name}.
b04d70
b04d70
%prep
b04d70
%setup -q -n %{site_name}-%{version}
b04d70
%patch1 -p1
b04d70
b04d70
# Parent POM pulls in unneeded dependencies (mockito)
b04d70
%pom_remove_parent
b04d70
%pom_xpath_inject "pom:project" "<groupId>org.apache.felix</groupId>"
b04d70
%pom_add_dep junit:junit::test
b04d70
%if 0%{?fedora}
b04d70
  # easymock is test dependency
b04d70
  %pom_xpath_inject "pom:dependency[pom:artifactId[text()='easymock']]" "<scope>test</scope>"
b04d70
%else
b04d70
  %pom_remove_dep org.easymock:easymock
b04d70
%endif
b04d70
b04d70
%if !0%{?fedora}
b04d70
  # These tests won't work without easymock3
b04d70
  rm -f src/test/java/org/apache/felix/bundlerepository/impl/RepositoryAdminTest.java
b04d70
  rm -f src/test/java/org/apache/felix/bundlerepository/impl/RepositoryImplTest.java
b04d70
  rm -f src/test/java/org/apache/felix/bundlerepository/impl/StaxParserTest.java
b04d70
  rm -f src/test/java/org/apache/felix/bundlerepository/impl/ResolverImplTest.java
b04d70
%endif
b04d70
b04d70
# Add xpp3 dependency (upstream bundles this)
b04d70
%pom_add_dep "xpp3:xpp3:1.1.3.4.O" pom.xml "<optional>true</optional>"
b04d70
b04d70
# Make felix utils mandatory dep
b04d70
%pom_xpath_remove "pom:dependency[pom:artifactId[text()='org.apache.felix.utils']]/pom:optional"
b04d70
b04d70
# For compatibility reasons
b04d70
%mvn_file : felix/%{name}
b04d70
b04d70
%build
b04d70
%mvn_build
b04d70
b04d70
%install
b04d70
%mvn_install
b04d70
b04d70
%files -f .mfiles
b04d70
%doc LICENSE LICENSE.kxml2 NOTICE DEPENDENCIES
b04d70
b04d70
%files javadoc -f .mfiles-javadoc
b04d70
%doc LICENSE LICENSE.kxml2 NOTICE
b04d70
b04d70
%changelog
063307
* Fri Dec 27 2013 Daniel Mach <dmach@redhat.com> - 1.6.6-15
063307
- Mass rebuild 2013-12-27
063307
b04d70
* Wed Jul 17 2013 Michal Srb <msrb@redhat.com> - 1.6.6-14
b04d70
- Fix license tag. kxml is licensed under MIT, not BSD
b04d70
b04d70
* Tue Jul 09 2013 Michal Srb <msrb@redhat.com> - 1.6.6-13
b04d70
- Make easymock and junit test-only dependencies
b04d70
b04d70
* Tue Jul 09 2013 Michal Srb <msrb@redhat.com> - 1.6.6-12
b04d70
- Run some tests only contidionally
b04d70
- Remove unneeded BR: mockito
b04d70
b04d70
* Wed Jul 03 2013 Michal Srb <msrb@redhat.com> - 1.6.6-11
b04d70
- Build with XMvn
b04d70
- Replace patches with %%pom_ macros
b04d70
- Fix BR
b04d70
b04d70
* Wed Jul 03 2013 Michal Srb <msrb@redhat.com> - 1.6.6-10
b04d70
- Fix BR (Resolves: #979500)
b04d70
b04d70
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-9
b04d70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
b04d70
b04d70
* Wed Feb 06 2013 Java SIG <java-devel@lists.fedoraproject.org> - 1.6.6-8
b04d70
- Update for https://fedoraproject.org/wiki/Fedora_19_Maven_Rebuild
b04d70
- Replace maven BuildRequires with maven-local
b04d70
b04d70
* Thu Jul 19 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-7
b04d70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
b04d70
b04d70
* Mon May 21 2012 Stanislav Ochotnicky <sochotnicky@redhat.com> - 1.6.6-6
b04d70
- Make felix-utils mandatory dep in pom.xml
b04d70
b04d70
* Mon Apr 30 2012 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.6.6-5
b04d70
- Unbundle libraries
b04d70
- Add dependency on xpp3
b04d70
- Include NOTICE in javadoc package
b04d70
- Resolves #817581
b04d70
b04d70
* Fri Jan 13 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.6.6-4
b04d70
- Rebuilt for https://fedoraproject.org/wiki/Fedora_17_Mass_Rebuild
b04d70
b04d70
* Wed Oct 12 2011 Jaromir Capik <jcapik@redhat.com> - 1.6.6-3
b04d70
- osgi.org groupId patch removed (fixed in felix-osgi-* packages)
b04d70
b04d70
* Thu Oct 06 2011 Jaromir Capik <jcapik@redhat.com> - 1.6.6-2
b04d70
- Depmap removed (not needed anymore)
b04d70
- woodstox-core-asl renamed to woodstox-core
b04d70
b04d70
* Tue Sep 14 2011 Jaromir Capik <jcapik@redhat.com> - 1.6.6-1
b04d70
- Initial packaging