assertj-core/assertj-core.spec

143 lines
4.6 KiB
RPMSpec
Raw Normal View History

2019-09-13 11:26:02 +00:00
%bcond_with memoryfilesystem
2017-02-06 11:19:37 +00:00
2015-09-09 12:50:05 +00:00
Name: assertj-core
2020-10-16 11:39:35 +00:00
Version: 3.17.2
Release: 2%{?dist}
2015-09-09 12:50:05 +00:00
Summary: Library of assertions similar to fest-assert
License: ASL 2.0
2020-05-12 21:07:01 +00:00
URL: https://joel-costigliola.github.io/assertj/
Source0: https://github.com/joel-costigliola/assertj-core/archive/assertj-core-%{version}.tar.gz
2020-05-12 21:07:01 +00:00
2015-09-09 12:50:05 +00:00
BuildArch: noarch
BuildRequires: maven-local
2019-09-13 11:26:02 +00:00
BuildRequires: mvn(junit:junit)
2020-05-12 21:07:01 +00:00
BuildRequires: mvn(net.bytebuddy:byte-buddy)
BuildRequires: mvn(org.hamcrest:hamcrest)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
2020-10-16 11:39:35 +00:00
BuildRequires: mvn(org.junit.platform:junit-platform-commons)
2020-05-12 21:07:01 +00:00
BuildRequires: mvn(org.opentest4j:opentest4j)
2017-02-06 11:19:37 +00:00
%if %{with memoryfilesystem}
2015-09-09 12:50:05 +00:00
BuildRequires: mvn(com.github.marschall:memoryfilesystem)
2017-02-06 11:19:37 +00:00
%endif
2015-09-09 12:50:05 +00:00
%description
A rich and intuitive set of strongly-typed assertions to use for unit testing
(either with JUnit or TestNG).
2020-05-12 21:07:01 +00:00
2015-09-09 12:50:05 +00:00
%package javadoc
Summary: API documentation for %{name}
%description javadoc
This package provides API documentation for %{name}.
2020-05-12 21:07:01 +00:00
2015-09-09 12:50:05 +00:00
%prep
%setup -q -n %{name}-%{name}-%{version}
2020-05-12 21:07:01 +00:00
# remove dependency on parent POM and inject groupId instead
2015-09-09 12:50:05 +00:00
%pom_remove_parent
%pom_xpath_inject "pom:project" "<groupId>org.assertj</groupId>"
2020-05-12 21:07:01 +00:00
# remove plugins that are unnecessary for RPM builds
%pom_remove_plugin :bnd-maven-plugin
2020-10-16 11:39:35 +00:00
%pom_remove_plugin :bnd-testing-maven-plugin
2020-05-12 21:07:01 +00:00
%pom_remove_plugin :bnd-resolver-maven-plugin
%pom_remove_plugin :jacoco-maven-plugin
%pom_remove_plugin :maven-antrun-plugin
2020-05-12 21:07:01 +00:00
%pom_remove_plugin :maven-dependency-plugin
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-jar-plugin
2015-09-09 12:50:05 +00:00
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-shade-plugin
2020-05-12 21:07:01 +00:00
%pom_remove_plugin :yuicompressor-maven-plugin
2020-07-21 14:33:06 +00:00
%pom_xpath_remove pom:project/pom:profiles
2015-09-09 12:50:05 +00:00
2017-02-06 11:19:37 +00:00
%if %{without memoryfilesystem}
%pom_remove_dep :memoryfilesystem
rm -r src/test/java/org/assertj/core/internal/{Paths*.java,paths}
%endif
2015-09-09 12:50:05 +00:00
%build
2020-05-12 21:07:01 +00:00
# dependencies for tests are not packaged for fedora:
# - nl.jqno.equalsverifier:equalsverifier
%mvn_build -f -- -Dproject.build.sourceEncoding=UTF-8
2015-09-09 12:50:05 +00:00
2020-05-12 21:07:01 +00:00
2015-09-09 12:50:05 +00:00
%install
%mvn_install
2020-05-12 21:07:01 +00:00
2015-09-09 12:50:05 +00:00
%files -f .mfiles
%doc README.md CONTRIBUTING.md
2015-09-09 13:09:07 +00:00
%license LICENSE.txt
2015-09-09 12:50:05 +00:00
%files javadoc -f .mfiles-javadoc
%doc CONTRIBUTING.md
2015-09-09 13:09:07 +00:00
%license LICENSE.txt
2015-09-09 12:50:05 +00:00
2020-05-12 21:07:01 +00:00
2015-09-09 12:50:05 +00:00
%changelog
* Tue Jan 26 2021 Fedora Release Engineering <releng@fedoraproject.org> - 3.17.2-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_34_Mass_Rebuild
2020-10-16 11:39:35 +00:00
* Fri Oct 16 2020 Fabio Valentini <decathorpe@gmail.com> - 3.17.2-1
- Update to version 3.17.2.
2020-08-23 11:31:27 +00:00
* Sun Aug 23 2020 Fabio Valentini <decathorpe@gmail.com> - 3.17.0-1
- Update to version 3.17.0.
* Mon Jul 27 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.16.1-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild
2020-07-21 14:33:06 +00:00
* Tue Jul 21 2020 Markku Korkeala <markku.korkeala@iki.fi> - 3.16.1-4
- Remove profiles from pom.xml.
2020-07-10 14:19:58 +00:00
* Fri Jul 10 2020 Jiri Vanek <jvanek@redhat.com> - 3.16.1-3
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
* Wed May 13 2020 Fabio Valentini <decathorpe@gmail.com> - 3.16.1-2
- Fix artifact generation by removing antrun plugin again.
2020-05-12 21:07:01 +00:00
* Tue May 12 2020 Fabio Valentini <decathorpe@gmail.com> - 3.16.1-1
- Update to version 3.16.1.
* Tue Jan 28 2020 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-7
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
2019-09-13 11:26:02 +00:00
* Fri Sep 13 2019 Fabio Valentini <decathorpe@gmail.com> - 3.8.0-6
- Remove dependency on memoryfilesystem.
* Wed Jul 24 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
* Thu Jul 12 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-3
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 3.8.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
* Fri Jul 28 2017 Mat Booth <mat.booth@redhat.com> - 3.8.0-1
- Update to latest version of assertj
- Disable tests due to missing deps in Fedora
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-4
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
2017-02-06 11:19:37 +00:00
* Mon Feb 06 2017 Michael Simacek <msimacek@redhat.com> - 2.2.0-3
- Add conditional for memoryfilesystem
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 2.2.0-2
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
2015-09-09 12:50:05 +00:00
* Wed Sep 02 2015 Roman Mohr <roman@fenkhuber.at> - 2.2.0-1
- Initial packaging
2020-05-12 21:07:01 +00:00