Package apiguardian: Specfile
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 | Group: Development/Java BuildRequires: /proc rpm-build-java BuildRequires: jpackage-11-compat # see https://bugzilla.altlinux.org/show_bug.cgi?id=10382 %define _localstatedir %{_var} Name: apiguardian Summary: API Guardian Java annotation Version: 1.1.1 Release: alt1_1jpp11 License: ASL 2.0 URL: https://github.com/apiguardian-team/apiguardian Source0: %{url}/archive/r%{version}/%{name}-%{version}.tar.gz Source100: https://repo1.maven.org/maven2/org/apiguardian/apiguardian-api/%{version}/apiguardian-api-%{version}.pom BuildArch: noarch BuildRequires: maven-local Source44: import.info %description API Guardian indicates the status of an API element and therefore its level of stability as well. It is used to annotate public types, methods, constructors, and fields within a framework or application in order to publish their API status and level of stability and to indicate how they are intended to be used by consumers of the API. %package javadoc Group: Development/Java Summary: Javadoc for %{name} BuildArch: noarch %description javadoc API documentation for %{name}. %prep %setup -q -n %{name}-r%{version} find -name "*.jar" -print -delete cp -pav %{SOURCE100} pom.xml # Inject OSGi manifest required by Eclipse %pom_xpath_inject pom:project " <build> <pluginManagement> <plugins> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifestEntries> <Automatic-Module-Name>org.apiguardian.api</Automatic-Module-Name> <Implementation-Title>apiguardian-api</Implementation-Title> <Implementation-Vendor>apiguardian.org</Implementation-Vendor> <Implementation-Version>%{version}</Implementation-Version> <Specification-Title>apiguardian-api</Specification-Title> <Specification-Vendor>apiguardian.org</Specification-Vendor> <Specification-Version>%{version}</Specification-Version> <!-- OSGi metadata required by Eclipse --> <Bundle-ManifestVersion>2</Bundle-ManifestVersion> <Bundle-SymbolicName>org.apiguardian</Bundle-SymbolicName> <Bundle-Version>%{version}</Bundle-Version> <Export-Package>org.apiguardian.api;version=\"%{version}\"</Export-Package> </manifestEntries> </archive> </configuration> </plugin> </plugins> </pluginManagement> </build>" %build %mvn_build -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 %install %mvn_install %files -f .mfiles %doc --no-dereference LICENSE %files javadoc -f .mfiles-javadoc %doc --no-dereference LICENSE %changelog * Thu Jun 10 2021 Igor Vlasenko <viy@altlinux.org> 1.1.1-alt1_1jpp11 - new version * Fri Oct 09 2020 Igor Vlasenko <viy@altlinux.ru> 1.1.0-alt1_2jpp8 - new version * Sat Jul 13 2019 Igor Vlasenko <viy@altlinux.ru> 1.0.0-alt1_4jpp8 - explicit build with java8 * Tue Feb 05 2019 Igor Vlasenko <viy@altlinux.ru> 1.0.0-alt1_3jpp8 - fc29 update * Fri Jun 01 2018 Igor Vlasenko <viy@altlinux.ru> 1.0.0-alt1_2jpp8 - new version |