2019-04-15 08:09:35 +00:00
|
|
|
#
|
|
|
|
# spec file for package assertj-core
|
|
|
|
#
|
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%bcond_with memoryfilesystem
|
|
|
|
Name: assertj-core
|
|
|
|
Version: 3.8.0
|
|
|
|
Release: 0
|
|
|
|
Summary: Library of assertions similar to fest-assert
|
|
|
|
License: Apache-2.0
|
|
|
|
Group: Development/Libraries/Java
|
|
|
|
URL: http://joel-costigliola.github.io/assertj/
|
|
|
|
Source0: https://github.com/joel-costigliola/assertj-core/archive/assertj-core-%{version}.tar.gz
|
|
|
|
BuildRequires: fdupes
|
|
|
|
BuildRequires: maven-local
|
|
|
|
BuildRequires: mvn(cglib:cglib-nodep)
|
|
|
|
BuildRequires: mvn(junit:junit)
|
|
|
|
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
|
|
|
BuildRequires: mvn(org.mockito:mockito-core)
|
|
|
|
BuildArch: noarch
|
|
|
|
%if %{with memoryfilesystem}
|
|
|
|
BuildRequires: mvn(com.github.marschall:memoryfilesystem)
|
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
2019-05-01 23:44:32 +00:00
|
|
|
A set of strongly-typed assertions to use for unit testing
|
2019-04-15 08:09:35 +00:00
|
|
|
(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" "<groupId>org.assertj</groupId>"
|
|
|
|
|
|
|
|
%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
|
|
|
|
|
|
|
|
# package org.mockito.internal.util.collections does not exist
|
|
|
|
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
|
|
|
|
|
|
|
|
# test lib not in Fedora
|
|
|
|
%pom_remove_dep com.tngtech.java:junit-dataprovider
|
|
|
|
|
|
|
|
%build
|
|
|
|
%{mvn_build} -f -- -Dproject.build.sourceEncoding=UTF-8 -Dsource=8
|
|
|
|
|
|
|
|
%install
|
|
|
|
%mvn_install
|
|
|
|
%fdupes -s %{buildroot}%{_javadocdir}
|
|
|
|
|
|
|
|
%files -f .mfiles
|
|
|
|
%doc README.md CONTRIBUTING.md
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%files javadoc -f .mfiles-javadoc
|
|
|
|
%doc CONTRIBUTING.md
|
|
|
|
%license LICENSE.txt
|
|
|
|
|
|
|
|
%changelog
|