package init

This commit is contained in:
lyn1001 2020-08-19 10:20:52 +08:00
parent 11c0e11553
commit 65aa2d961a
3 changed files with 57 additions and 0 deletions

52
felix-scr-generator.spec Normal file
View File

@ -0,0 +1,52 @@
%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

5
felix-scr-generator.yaml Normal file
View File

@ -0,0 +1,5 @@
git_url: https://github.com/apache/felix-dev.git
version_control: github
src_repo: apache/felix-dev
tag_prefix: "org.apache.felix.scr.generator-"
seperator: "."