%global oname annotations Name: jetbrains-annotations Version: 15.0 Release: 1 Summary: IntelliJ IDEA Annotations License: ASL 2.0 URL: http://www.jetbrains.org Source0: https://archiva.interlocsolutions.com/archiva/repository/internal/org/jetbrains/annotations/15.0/annotations-15.0-sources.jar Source1: https://archiva.interlocsolutions.com/archiva/repository/internal/org/jetbrains/annotations/15.0/annotations-15.0.pom Source2: http://www.apache.org/licenses/LICENSE-2.0.txt BuildRequires: maven-local BuildArch: noarch %description A set of annotations used for code inspection support and code documentation. %package help Summary: Javadoc for jetbrains-annotations Provides: %{name}-javadoc = %{version}-%{release} Obsoletes: %{name}-javadoc < %{version}-%{release} %description help This package contains javadoc for jetbrains-annotations. %prep %setup -T -q -c mkdir -p src/main/{java,resources} ( cd src/main/java %jar -xf %{SOURCE0} rm -rf META-INF ) cp -p %{SOURCE1} pom.xml %pom_remove_plugin :maven-antrun-plugin %pom_remove_plugin :maven-gpg-plugin %pom_remove_plugin :maven-javadoc-plugin %pom_remove_plugin :maven-source-plugin %pom_xpath_inject pom:properties "UTF-8" cp -p %{SOURCE2} LICENSE.txt sed -i 's/\r//' LICENSE.txt %mvn_file org.jetbrains:%{oname} jetbrains-annotations %mvn_alias org.jetbrains:%{oname} com.intellij: %build %mvn_build %install %mvn_install %files -f .mfiles %license LICENSE.txt %files help -f .mfiles-javadoc %license LICENSE.txt %changelog * Mon Aug 24 2020 yaokai - 15.0-1 - package init