85 lines
2.7 KiB
RPMSpec
85 lines
2.7 KiB
RPMSpec
Name: avalon-framework
|
|
Epoch: 0
|
|
Version: 4.3
|
|
Release: 22
|
|
Summary: Java components interfaces
|
|
License: ASL 2.0
|
|
URL: http://avalon.apache.org/
|
|
Source0: http://archive.apache.org/dist/excalibur/avalon-framework/source/%{name}-api-%{version}-src.tar.gz
|
|
Source1: http://archive.apache.org/dist/excalibur/avalon-framework/source/%{name}-impl-%{version}-src.tar.gz
|
|
BuildRequires: maven-local mvn(avalon-logkit:avalon-logkit) mvn(log4j:log4j)
|
|
BuildRequires: mvn(commons-logging:commons-logging) mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildArch: noarch
|
|
Patch0001: 0001-Port-build-script-to-Maven-3.patch
|
|
|
|
%description
|
|
Apache Avalon provided Java software for component and container
|
|
programming and pioneered the use of design patterns such as Inversion of
|
|
Control (IoC) and Separation of Concerns (SoC).
|
|
|
|
%package help
|
|
Summary: API documentation %{name}
|
|
Provides: avalon-framework-javadoc = %{epoch}:%{version}-%{release}
|
|
Obsoletes: avalon-framework-javadoc < %{epoch}:%{version}-%{release}
|
|
|
|
%description help
|
|
This package provides help documentation for avalon-framework
|
|
|
|
%prep
|
|
%autosetup -c -a 0 -a 1 -p1
|
|
|
|
%mvn_package :aggregator __noinstall
|
|
%mvn_file ":*api*" %{name}-api
|
|
%mvn_file ":*impl*" %{name}-impl %{name}
|
|
|
|
%pom_xpath_inject pom:project "<packaging>bundle</packaging>" *api*/project.xml
|
|
%pom_xpath_inject pom:build "
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<instructions>
|
|
<Bundle-SymbolicName>avalon-framework-api-4.3</Bundle-SymbolicName>
|
|
<_nouses>true</_nouses>
|
|
</instructions>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>" *api*/project.xml
|
|
%pom_xpath_inject pom:project "<packaging>bundle</packaging>" *impl*/project.xml
|
|
%pom_xpath_inject pom:build "
|
|
<plugins>
|
|
<plugin>
|
|
<groupId>org.apache.felix</groupId>
|
|
<artifactId>maven-bundle-plugin</artifactId>
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<instructions>
|
|
<Bundle-SymbolicName>avalon-framework-impl-4.3</Bundle-SymbolicName>
|
|
<_nouses>true</_nouses>
|
|
</instructions>
|
|
</configuration>
|
|
</plugin>
|
|
</plugins>" *impl*/project.xml
|
|
|
|
%mvn_alias 'avalon-framework:{*}' 'org.apache.avalon.framework:@1'
|
|
|
|
%build
|
|
%mvn_build -f
|
|
|
|
%install
|
|
%mvn_install
|
|
mv .mfiles-javadoc .mfiles-help
|
|
|
|
%files -f .mfiles
|
|
%license avalon-framework-api-4.3/LICENSE.txt
|
|
%license avalon-framework-api-4.3/NOTICE.txt
|
|
|
|
%files help -f .mfiles-help
|
|
|
|
%changelog
|
|
* Fri Nov 22 2019 sunguoshuai <sunguoshuai@huawei.com> - 0:4.3-22
|
|
- Package init.
|