diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..124e53e --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +SOURCES/assertj-core-2.2.0.tar.gz diff --git a/.rh-maven35-assertj-core.metadata b/.rh-maven35-assertj-core.metadata new file mode 100644 index 0000000..4ba2b0c --- /dev/null +++ b/.rh-maven35-assertj-core.metadata @@ -0,0 +1 @@ +281af68a7e25d2c4b52c2fb392f327e887470152 SOURCES/assertj-core-2.2.0.tar.gz diff --git a/README.md b/README.md deleted file mode 100644 index 98f42b4..0000000 --- a/README.md +++ /dev/null @@ -1,4 +0,0 @@ -The master branch has no content - -Look at the c7 branch if you are working with CentOS-7, or the c4/c5/c6 branch for CentOS-4, 5 or 6 -If you find this file in a distro specific branch, it means that no content has been checked in yet diff --git a/SPECS/assertj-core.spec b/SPECS/assertj-core.spec new file mode 100644 index 0000000..ed1ddf5 --- /dev/null +++ b/SPECS/assertj-core.spec @@ -0,0 +1,86 @@ +%{?scl:%scl_package assertj-core} +%{!?scl:%global pkg_name %{name}} + +%bcond_without memoryfilesystem + +Name: %{?scl_prefix}assertj-core +Version: 2.2.0 +Release: 3.2%{?dist} +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/%{pkg_name}/archive/%{pkg_name}-%{version}.tar.gz#/%{pkg_name}-%{version}.tar.gz +BuildArch: noarch + +BuildRequires: %{?scl_prefix}maven-local +BuildRequires: %{?scl_prefix}mvn(org.apache.felix:maven-bundle-plugin) +BuildRequires: %{?scl_prefix}mvn(cglib:cglib-nodep) +%if %{with memoryfilesystem} +BuildRequires: mvn(com.github.marschall:memoryfilesystem) +%endif +BuildRequires: %{?scl_prefix}mvn(junit:junit) +BuildRequires: %{?scl_prefix}mvn(org.mockito:mockito-core) + +%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 %{pkg_name} + +%description javadoc +This package provides API documentation for %{pkg_name}. + +%prep +%setup -q -n %{pkg_name}-%{pkg_name}-%{version} + +%pom_remove_parent +%pom_xpath_inject "pom:project" "org.assertj" + +%pom_remove_plugin :maven-javadoc-plugin +%pom_remove_plugin org.jacoco:jacoco-maven-plugin +%pom_remove_plugin org.sonatype.plugins:jarjar-maven-plugin + +%pom_xpath_inject "pom:project" " + + 1.7 + 1.7 + " + +# 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 + +%build +%mvn_build -- -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 Jun 22 2017 Michael Simacek - 2.2.0-3.2 +- Mass rebuild 2017-06-22 + +* Wed Jun 21 2017 Java Maintainers - 2.2.0-3.1 +- Automated package import and SCL-ization + +* Mon Feb 06 2017 Michael Simacek - 2.2.0-3 +- Add conditional for memoryfilesystem + +* Wed Feb 03 2016 Fedora Release Engineering - 2.2.0-2 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild + +* Wed Sep 02 2015 Roman Mohr - 2.2.0-1 +- Initial packaging