53 lines
1.7 KiB
RPMSpec
53 lines
1.7 KiB
RPMSpec
%bcond_with annotations
|
|
%global bundle org.apache.felix.scr.generator
|
|
Name: felix-scr-generator
|
|
Version: 1.18.0
|
|
Release: 1
|
|
Summary: Descriptor Generator Implementation
|
|
License: ASL 2.0
|
|
URL: http://felix.apache.org/documentation/subprojects/apache-felix-service-component-runtime.html
|
|
Source0: http://archive.apache.org/dist/felix/%{bundle}-%{version}-source-release.tar.gz
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local mvn(commons-io:commons-io) mvn(commons-lang:commons-lang)
|
|
BuildRequires: mvn(junit:junit) mvn(org.apache.felix:felix-parent:pom:)
|
|
%if %{without annotations}
|
|
BuildRequires: mvn(org.apache.felix:org.apache.felix.scr.annotations)
|
|
%endif
|
|
BuildRequires: mvn(org.easymock:easymock) mvn(org.osgi:osgi.cmpn) mvn(org.osgi:osgi.core)
|
|
BuildRequires: mvn(org.ow2.asm:asm-all)
|
|
%description
|
|
Provides the implementation to generate Declarative Services and Metatype
|
|
Service descriptors from Java 5 Annotations and/or JavaDoc tags.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
%description javadoc
|
|
This package contains API documentation for %{name}.
|
|
|
|
%prep
|
|
%setup -q -n %{bundle}-%{version}
|
|
%mvn_file : felix/%{bundle}
|
|
%pom_change_dep org.osgi:org.osgi.core org.osgi:osgi.core
|
|
%pom_change_dep org.osgi:org.osgi.compendium org.osgi:osgi.cmpn
|
|
|
|
%build
|
|
%mvn_build \
|
|
%if %{with annotations}
|
|
-f \
|
|
%endif
|
|
-- -Dproject.build.sourceEncoding=UTF-8
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%doc changelog.txt
|
|
%license LICENSE NOTICE
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE NOTICE
|
|
|
|
%changelog
|
|
* Sat Aug 15 2020 yanan li <liyanan032@huawei.com> - 1.18.0-1
|
|
- Package init
|