Projects
openEuler:Mainline
junit5
_service:tar_scm:junit5.spec
Sign Up
Log In
Username
Password
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File _service:tar_scm:junit5.spec of Package junit5
%global platform_version 1.4.0 %global jupiter_version %{version} %global vintage_version %{version} %bcond_with console Name: junit5 Version: 5.4.0 Release: 1 Summary: Java regression testing framework License: EPL-2.0 URL: http://junit.org/junit5/ Source0: https://github.com/junit-team/junit5/archive/r%{version}/junit5-%{version}.tar.gz Source100: aggregator.pom Source200: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-commons/%{platform_version}/junit-platform-commons-%{platform_version}.pom Source201: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console/%{platform_version}/junit-platform-console-%{platform_version}.pom Source202: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-console-standalone/%{platform_version}/junit-platform-console-standalone-%{platform_version}.pom Source203: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-engine/%{platform_version}/junit-platform-engine-%{platform_version}.pom Source205: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-launcher/%{platform_version}/junit-platform-launcher-%{platform_version}.pom Source206: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-runner/%{platform_version}/junit-platform-runner-%{platform_version}.pom Source207: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-suite-api/%{platform_version}/junit-platform-suite-api-%{platform_version}.pom Source208: https://repo1.maven.org/maven2/org/junit/platform/junit-platform-reporting/%{platform_version}/junit-platform-reporting-%{platform_version}.pom Source301: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-api/%{jupiter_version}/junit-jupiter-api-%{jupiter_version}.pom Source302: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-engine/%{jupiter_version}/junit-jupiter-engine-%{jupiter_version}.pom Source303: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-migrationsupport/%{jupiter_version}/junit-jupiter-migrationsupport-%{jupiter_version}.pom Source304: https://repo1.maven.org/maven2/org/junit/jupiter/junit-jupiter-params/%{jupiter_version}/junit-jupiter-params-%{jupiter_version}.pom Source400: https://repo1.maven.org/maven2/org/junit/vintage/junit-vintage-engine/%{vintage_version}/junit-vintage-engine-%{vintage_version}.pom BuildRequires: maven-local mvn(com.univocity:univocity-parsers) mvn(junit:junit) BuildRequires: mvn(org.apache.felix:maven-bundle-plugin) mvn(org.apiguardian:apiguardian-api) BuildRequires: mvn(org.opentest4j:opentest4j) %if %{with console} BuildRequires: mvn(info.picocli:picocli) %endif BuildRequires: asciidoc %if %{with console} Requires: javapackages-tools %endif BuildArch: noarch %description JUnit is a popular regression testing framework for Java platform. %package javadoc Summary: Javadoc for %{name} %description javadoc Junit5 API documentation. %package guide Summary: Documentation for %{name} Requires: %{name}-javadoc = %{version}-%{release} %description guide JUnit 5 User Guide. %prep %setup -q -n %{name}-r%{version} find -name \*.jar -delete cp -p %{SOURCE100} pom.xml cp -p %{SOURCE200} junit-platform-commons/pom.xml cp -p %{SOURCE201} junit-platform-console/pom.xml cp -p %{SOURCE202} junit-platform-console-standalone/pom.xml cp -p %{SOURCE203} junit-platform-engine/pom.xml cp -p %{SOURCE205} junit-platform-launcher/pom.xml cp -p %{SOURCE206} junit-platform-runner/pom.xml cp -p %{SOURCE207} junit-platform-suite-api/pom.xml cp -p %{SOURCE208} junit-platform-reporting/pom.xml cp -p %{SOURCE301} junit-jupiter-api/pom.xml cp -p %{SOURCE302} junit-jupiter-engine/pom.xml cp -p %{SOURCE303} junit-jupiter-migrationsupport/pom.xml cp -p %{SOURCE304} junit-jupiter-params/pom.xml cp -p %{SOURCE400} junit-vintage-engine/pom.xml for pom in $(find -mindepth 2 -name pom.xml); do # Set parent to aggregator %pom_xpath_inject pom:project "<parent><groupId>org.openeuler.xmvn.junit5</groupId><artifactId>aggregator</artifactId><version>1.0.0</version></parent>" $pom # OSGi BSN bsn=$(sed 's|/pom.xml$||;s|.*/|org.|;s|-|.|g' <<<"$pom") %pom_xpath_inject pom:project "<properties><osgi.bsn>${bsn}</osgi.bsn></properties>" $pom # Incorrect scope - API guardian is just annotation, needed only during compilation %pom_xpath_set -f "pom:dependency[pom:artifactId='apiguardian-api']/pom:scope" provided $pom done %pom_add_dep net.sf.jopt-simple:jopt-simple:5.0.4 junit-platform-console %pom_add_dep com.univocity:univocity-parsers:2.5.4 junit-jupiter-params %pom_xpath_set "pom:dependency[pom:artifactId='junit']/pom:scope" compile junit-vintage-engine %if %{without console} %pom_disable_module junit-platform-console %pom_disable_module junit-platform-console-standalone %endif %mvn_package :aggregator __noinstall %build %mvn_build -f asciidoc documentation/src/docs/asciidoc/index.adoc || : ln -s ../../javadoc/junit5 documentation/src/docs/api %install %mvn_install %if %{with console} %jpackage_script org/junit/platform/console/ConsoleLauncher "" "" junit5:junit:opentest4j:jopt-simple %{name} true %endif %files -f .mfiles %if %{with console} %{_bindir}/%{name} %endif %license LICENSE.md LICENSE-notice.md %files javadoc -f .mfiles-javadoc %license LICENSE.md LICENSE-notice.md %files guide %doc documentation/src/docs/* %changelog * Fri Aug 14 2020 leiju <leiju4@huawei.com> - 5.4.0-1 - Update from 5.3.1 to 5.4.0 * Thu Feb 27 2020 Jiangping Hu <hujp1985@foxmail.com> - 5.3.1-3 - Package init
Locations
Projects
Search
Status Monitor
Help
Open Build Service
OBS Manuals
API Documentation
OBS Portal
Reporting a Bug
Contact
Mailing List
Forums
Chat (IRC)
Twitter
Open Build Service (OBS)
is an
openSUSE project
.
浙ICP备2022010568号-2