Blame SPECS/felix-scr.spec

07b8b2
%global bundle  org.apache.felix.scr
07b8b2
07b8b2
Name:          felix-scr
07b8b2
Version:       2.1.16
07b8b2
Release:       6%{?dist}
07b8b2
Summary:       Apache Felix Service Component Runtime (SCR)
07b8b2
License:       ASL 2.0
07b8b2
URL:           http://felix.apache.org/documentation/subprojects/apache-felix-service-component-runtime.html
07b8b2
07b8b2
Source0:       http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz
07b8b2
07b8b2
# Don't embed deps, use import-package instead
07b8b2
Patch0: 0001-Use-import-package-instead-of-embedding-dependencies.patch
07b8b2
07b8b2
# Drop dep on kxml/xpp, use the system SAX implementation instead
07b8b2
Patch1: 0002-Drop-the-dependencies-on-kxml-xpp3.patch
07b8b2
07b8b2
# SCL-specific sources
07b8b2
Source100: osgi.cmpn.tar.gz
07b8b2
07b8b2
BuildArch:     noarch
07b8b2
07b8b2
BuildRequires:  maven-local
07b8b2
BuildRequires:  mvn(org.apache.felix:felix-parent:pom:)
07b8b2
BuildRequires:  mvn(org.apache.felix:maven-bundle-plugin)
07b8b2
BuildRequires:  mvn(org.apache.felix:org.apache.felix.gogo.runtime)
07b8b2
BuildRequires:  mvn(org.osgi:osgi.annotation)
07b8b2
BuildRequires:  mvn(org.osgi:osgi.cmpn)
07b8b2
BuildRequires:  mvn(org.osgi:osgi.core)
07b8b2
07b8b2
%description
07b8b2
Implementation of the OSGi Declarative Services Specification Version 1.3 (R6).
07b8b2
07b8b2
%package javadoc
07b8b2
Summary:       Javadoc for %{name}
07b8b2
07b8b2
%description javadoc
07b8b2
This package contains javadoc for %{name}.
07b8b2
07b8b2
%prep
07b8b2
%setup -q -n %{bundle}-%{version}
07b8b2
%patch0 -p1
07b8b2
%patch1 -p1
07b8b2
07b8b2
# All these OSGi deps are provided in the compendium jar
07b8b2
%pom_add_dep org.osgi:osgi.cmpn:7.0.0:provided
07b8b2
%pom_remove_dep org.osgi:org.osgi.service.component
07b8b2
%pom_remove_dep org.osgi:org.osgi.service.cm
07b8b2
%pom_remove_dep org.osgi:org.osgi.service.log
07b8b2
%pom_remove_dep org.osgi:org.osgi.service.metatype
07b8b2
%pom_remove_dep org.osgi:org.osgi.namespace.extender
07b8b2
%pom_remove_dep org.osgi:org.osgi.util.promise
07b8b2
%pom_remove_dep org.osgi:org.osgi.util.function
07b8b2
07b8b2
# Many test deps are not in Fedora
07b8b2
%pom_xpath_remove "pom:project/pom:dependencies/pom:dependency[pom:scope='test']"
07b8b2
%pom_remove_dep org.ops4j.base:
07b8b2
%pom_remove_plugin :maven-failsafe-plugin
07b8b2
07b8b2
# Animal sniffer is unnecessary since we always know JRE level on Fedora
07b8b2
%pom_remove_dep :animal-sniffer-annotations
07b8b2
sed -i -e '/IgnoreJRERequirement/d' src/main/java/org/apache/felix/scr/impl/manager/ThreadDump.java
07b8b2
07b8b2
%mvn_file : felix/%{bundle}
07b8b2
07b8b2
# Extract SCL-specific sources
07b8b2
tar xf %{SOURCE100}
07b8b2
07b8b2
%build
07b8b2
# No test deps availables e.g org.ops4j.pax.url:pax-url-wrap
07b8b2
%mvn_build --xmvn-javadoc -f -- -Dfelix.java.version=7
07b8b2
07b8b2
%install
07b8b2
%mvn_install
07b8b2
07b8b2
%files -f .mfiles
07b8b2
%doc changelog.txt
07b8b2
%license LICENSE NOTICE
07b8b2
07b8b2
%files javadoc -f .mfiles-javadoc
07b8b2
%license LICENSE NOTICE
07b8b2
07b8b2
%changelog
07b8b2
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 2.1.16-6
07b8b2
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
07b8b2
07b8b2
* Tue Jun 16 2020 Jie Kang <jkang@redhat.com> - 2.1.16-5
07b8b2
- Build javadoc with --xmvn-javadoc
07b8b2
07b8b2
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.16-4
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
07b8b2
07b8b2
* Thu Jan 23 2020 Mat Booth <mat.booth@redhat.com> - 2.1.16-3
07b8b2
- Drop requirement on kxml and xpp, patch to use the JDK SAX implementation
07b8b2
  instead
07b8b2
07b8b2
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.1.16-2
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
07b8b2
07b8b2
* Wed Mar 06 2019 Mat Booth <mat.booth@redhat.com> - 2.1.16-1
07b8b2
- Update to latest upstream release for OSGi R7 support
07b8b2
07b8b2
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.14-4
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
07b8b2
07b8b2
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.14-3
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
07b8b2
07b8b2
* Wed Jul 11 2018 Mat Booth <mat.booth@redhat.com> - 2.0.14-2
07b8b2
- Rebuilt
07b8b2
07b8b2
* Thu Apr 26 2018 Mat Booth <mat.booth@redhat.com> - 2.0.14-1
07b8b2
- Update to latest upstream release
07b8b2
07b8b2
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.12-3
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
07b8b2
07b8b2
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.12-2
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
07b8b2
07b8b2
* Wed Jun 21 2017 Roland Grunberg <rgrunber@redhat.com> - 2.0.12-1
07b8b2
- Update to latest upstream release.
07b8b2
- Resolves rhbz#1455048.
07b8b2
07b8b2
* Fri Jun 16 2017 Mat Booth <mat.booth@redhat.com> - 2.0.10-2
07b8b2
- Remove SCL macros forbidden in Fedora
07b8b2
- Avoid bundling org.osgi classes
07b8b2
07b8b2
* Tue May 16 2017 Mat Booth <mat.booth@redhat.com> - 2.0.10-1
07b8b2
- Update to latest upstream release
07b8b2
07b8b2
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.8-2
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
07b8b2
07b8b2
* Thu Feb 02 2017 Mat Booth <mat.booth@redhat.com> - 2.0.8-1
07b8b2
- Update to latest upstream release
07b8b2
- Regenerate BRs and ensure there is an R on kxml
07b8b2
- Actually use license macro
07b8b2
07b8b2
* Thu Feb 04 2016 Severin Gehwolf <sgehwolf@redhat.com> - 1.6.2-6
07b8b2
- Add dep on xpp3 since it's now unbundled from kxml2. See RHBZ#1299774.
07b8b2
07b8b2
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.6.2-5
07b8b2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
07b8b2
07b8b2
* Thu Sep 10 2015 jkang@redhat.com - 1.6.2-4
07b8b2
- SCL-ize package
07b8b2
07b8b2
* Wed Jul 08 2015 jkang@redhat.com - 1.6.2-3
07b8b2
- Added LICENSE and NOTICE files
07b8b2
07b8b2
* Wed Jun 17 2015 Jie Kang <jkang@redhat.com> - 1.6.2-2
07b8b2
- Changed to vcs source as tarball no longer available
07b8b2
07b8b2
* Sun Oct 06 2013 gil cattaneo <puntogil@libero.it> 1.6.2-1
07b8b2
- initial rpm