This commit is contained in:
parent
4b5966980b
commit
01e7bdc354
10
cdi-api.spec
10
cdi-api.spec
@ -66,17 +66,21 @@ popd
|
||||
%install
|
||||
# jar
|
||||
install -dm 0755 %{buildroot}%{_javadir}/%{name}
|
||||
install -pm 0644 api/target/jakarta.enterprise.cdi-api-%{version}.jar %{buildroot}%{_javadir}/%{name}/jakarta.enterprise.cdi-api.jar
|
||||
install -pm 0644 api/target/jakarta.enterprise.cdi-api-%{version}.jar %{buildroot}%{_javadir}/%{name}/%{name}.jar
|
||||
install -dm 0755 %{buildroot}%{_javadir}/javax.enterprise.inject
|
||||
ln -sf ../%{name}/%{name}.jar %{buildroot}%{_javadir}/javax.enterprise.inject/%{name}.jar
|
||||
|
||||
# pom
|
||||
install -dm 0755 %{buildroot}%{_mavenpomdir}/%{name}
|
||||
install -pm 0644 api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/jakarta.enterprise.cdi-api.pom
|
||||
%add_maven_depmap %{name}/jakarta.enterprise.cdi-api.pom %{name}/jakarta.enterprise.cdi-api.jar -a "javax.enterprise:cdi-api"
|
||||
install -pm 0644 api/pom.xml %{buildroot}%{_mavenpomdir}/%{name}/%{name}.pom
|
||||
%add_maven_depmap %{name}/%{name}.pom %{name}/%{name}.jar -a "javax.enterprise:cdi-api"
|
||||
# javadoc
|
||||
install -dm 0755 %{buildroot}%{_javadocdir}/%{name}
|
||||
cp -pr api/target/site/apidocs/* %{buildroot}%{_javadocdir}/%{name}/
|
||||
%fdupes -s %{buildroot}%{_javadocdir}
|
||||
|
||||
%files -f .mfiles
|
||||
%{_javadir}/javax.enterprise.inject
|
||||
%license LICENSE.txt
|
||||
%doc README.md
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user