diff --git a/assertj-core-3.8.0.tar.gz b/assertj-core-3.8.0.tar.gz new file mode 100644 index 0000000..5d742cf Binary files /dev/null and b/assertj-core-3.8.0.tar.gz differ diff --git a/assertj-core.spec b/assertj-core.spec new file mode 100644 index 0000000..f09cd5c --- /dev/null +++ b/assertj-core.spec @@ -0,0 +1,57 @@ +%bcond_without memoryfilesystem +Name: assertj-core +Version: 3.8.0 +Release: 1 +Summary: Library of assertions similar to fest-assert +License: ASL 2.0 +URL: http://joel-costigliola.github.io/assertj/ +Source0: https://github.com/joel-costigliola/assertj-core/archive/assertj-core-%{version}.tar.gz +BuildRequires: maven-local mvn(org.apache.felix:maven-bundle-plugin) mvn(cglib:cglib-nodep) +%if %{with memoryfilesystem} +BuildRequires: mvn(com.github.marschall:memoryfilesystem) +%endif +BuildRequires: mvn(junit:junit) mvn(org.mockito:mockito-core) +BuildArch: noarch + +%description +A rich and intuitive set of strongly-typed assertions to use for unit testing +(either with JUnit or TestNG). + +%package javadoc +Summary: API documentation for %{name} + +%description javadoc +This package provides API documentation for %{name}. + +%prep +%setup -q -n %{name}-%{name}-%{version} +%pom_remove_parent +%pom_xpath_inject "pom:project" "org.assertj" +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin :maven-shade-plugin +%pom_remove_plugin :maven-dependency-plugin +%pom_remove_plugin org.jacoco:jacoco-maven-plugin +rm -rf ./src/test/java/org/assertj/core/error/ShouldContainString_create_Test.java +%if %{without memoryfilesystem} +%pom_remove_dep :memoryfilesystem +rm -r src/test/java/org/assertj/core/internal/{Paths*.java,paths} +%endif +%pom_remove_dep com.tngtech.java:junit-dataprovider + +%build +%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8 + +%install +%mvn_install + +%files -f .mfiles +%doc README.md CONTRIBUTING.md +%license LICENSE.txt + +%files javadoc -f .mfiles-javadoc +%doc CONTRIBUTING.md +%license LICENSE.txt + +%changelog +* Thu Aug 13 2020 leiju - 3.8.0-1 +- Package init diff --git a/assertj-core.yaml b/assertj-core.yaml new file mode 100644 index 0000000..225a0b6 --- /dev/null +++ b/assertj-core.yaml @@ -0,0 +1,5 @@ +git_url: http://joel-costigliola.github.io/assertj/ +version_control: github +src_repo: https://github.com/joel-costigliola/assertj-core/archive +tag_prefix: "^" +seperator: "."