felix-osgi-compendium/felix-osgi-compendium.spec
2020-08-24 14:43:27 +08:00

54 lines
1.8 KiB
RPMSpec

%global bundle org.osgi.compendium
Name: felix-osgi-compendium
Version: 1.4.0
Release: 1
Summary: Felix OSGi R4 Compendium Bundle
License: ASL 2.0
URL: http://felix.apache.org
BuildArch: noarch
Source0: http://www.apache.org/dist/felix/%{bundle}-%{version}-project.tar.gz
Patch0: 0001-Fix-servlet-api-dependency.patch
Patch1: 0002-Fix-compile-target.patch
Patch2: 0003-Add-CM_LOCATION_CHANGED-property-to-ConfigurationEve.patch
Patch3: 0004-Add-TARGET-property-to-ConfigurationPermission.patch
Patch4: 0005-Add-getResourceURL-method-to-make-jbosgi-framework-h.patch
BuildRequires: maven-local mvn(javax.servlet:javax.servlet-api)
BuildRequires: mvn(org.apache.felix:felix-parent:pom:)
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apache.felix:org.osgi.core)
BuildRequires: mvn(org.apache.felix:org.osgi.foundation)
%description
OSGi Service Platform Release 4 Compendium Interfaces and Classes.
%package help
Summary: API documentation for %{name}
Provides: %{name}-javadoc = %{version}-%{release}
Obsoletes: %{name}-javadoc < %{version}-%{release}
%description help
This package contains API documentation for %{name}.
%prep
%setup -q -n %{bundle}-%{version}
%patch0 -p1
%patch1 -p1
%patch2 -p1
%patch3 -p1
%patch4 -p1
%mvn_file :%{bundle} "felix/%{bundle}"
%mvn_alias "org.apache.felix:%{bundle}" "org.osgi:%{bundle}"
%build
%mvn_build -- -Drat.numUnapprovedLicenses=100
%install
%mvn_install
%files -f .mfiles
%license LICENSE NOTICE
%files help -f .mfiles-javadoc
%license LICENSE NOTICE
%changelog
* Mon Aug 24 2020 liyanan <liyanan32@huawei.com> - 1.4.0-1
- package init