65 lines
1.8 KiB
RPMSpec
65 lines
1.8 KiB
RPMSpec
Name: ws-commons-util
|
|
Version: 1.0.2
|
|
Release: 1
|
|
Summary: Common utilities from the Apache Web Services Project
|
|
License: ASL 2.0
|
|
URL: http://ws.apache.org/commons/util
|
|
# svn checkout http://svn.apache.org/repos/asf/webservices/commons/tags/util/1.0.2/ ws-commons-util-1.0.2
|
|
# tar cJf ws-commons-util-1.0.2.tar.xz ws-commons-util-1.0.2
|
|
Source0: ws-commons-util-1.0.2.tar.xz
|
|
BuildArch: noarch
|
|
BuildRequires: maven-local mvn(junit:junit) mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
%description
|
|
This is version 1.0.2 of the common utilities from the Apache Web
|
|
Services Project.
|
|
|
|
%package javadoc
|
|
Summary: Javadoc for %{name}
|
|
|
|
%description javadoc
|
|
%{summary}.
|
|
|
|
%prep
|
|
%setup -q -n %{name}-%{version}
|
|
%mvn_file : %{name}
|
|
%mvn_alias org.apache.ws.commons:ws-commons-util org.apache.ws.commons.util:ws-commons-util
|
|
%pom_xpath_inject "pom:project" "<packaging>bundle</packaging>"
|
|
%pom_add_plugin org.apache.felix:maven-bundle-plugin . '
|
|
<extensions>true</extensions>
|
|
<configuration>
|
|
<instructions>
|
|
<Bundle-SymbolicName>org.apache.ws.commons.util</Bundle-SymbolicName>
|
|
<Bundle-Name>${project.name}</Bundle-Name>
|
|
<Bundle-Localization>plugin</Bundle-Localization>
|
|
<Bundle-Version>${project.version}</Bundle-Version>
|
|
</instructions>
|
|
</configuration>
|
|
<executions>
|
|
<execution>
|
|
<id>bundle-manifest</id>
|
|
<phase>process-classes</phase>
|
|
<goals>
|
|
<goal>manifest</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>'
|
|
%pom_remove_dep "xml-apis:xml-apis"
|
|
%pom_xpath_inject 'pom:dependency[pom:artifactId="junit"]' "<scope>test</scope>"
|
|
|
|
%build
|
|
%mvn_build
|
|
|
|
%install
|
|
%mvn_install
|
|
|
|
%files -f .mfiles
|
|
%license LICENSE.txt
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
%license LICENSE.txt
|
|
|
|
%changelog
|
|
* Wed Aug 12 2020 leiju <leiju4@huawei.com> - 1.0.2-1
|
|
- Package init
|