eabbd8
Name:           opentest4j
eabbd8
Version:        1.2.0
eabbd8
Release:        2%{?dist}
eabbd8
Summary:        Open Test Alliance for the JVM
eabbd8
License:        ASL 2.0
eabbd8
eabbd8
URL:            https://github.com/ota4j-team/opentest4j
eabbd8
Source0:        %{url}/archive/r%{version}.tar.gz
eabbd8
Source100:      https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom
eabbd8
eabbd8
BuildArch:      noarch
eabbd8
eabbd8
BuildRequires:  maven-local
eabbd8
BuildRequires:  mvn(junit:junit)
eabbd8
eabbd8
%description
eabbd8
Open Test Alliance for the JVM is a minimal common foundation for
eabbd8
testing libraries on the JVM.  The primary goal of the project is to
eabbd8
enable testing frameworks like JUnit, TestNG, Spock, etc. and
eabbd8
third-party assertion libraries like Hamcrest, AssertJ, etc. to use a
eabbd8
common set of exceptions that IDEs and build tools can support in a
eabbd8
consistent manner across all testing scenarios -- for example, for
eabbd8
consistent handling of failed assertions and failed assumptions as
eabbd8
well as visualization of test execution in IDEs and reports.
eabbd8
eabbd8
%package javadoc
eabbd8
Summary:        Javadoc for %{name}
eabbd8
eabbd8
%description javadoc
eabbd8
API documentation for %{name}.
eabbd8
eabbd8
%prep
eabbd8
%setup -q -n opentest4j-r%{version}
eabbd8
find -name \*.jar -delete
eabbd8
cp -p %{SOURCE100} pom.xml
eabbd8
eabbd8
%pom_add_dep junit:junit::test
eabbd8
eabbd8
%pom_xpath_inject pom:project "
eabbd8
  <build>
eabbd8
    <pluginManagement>
eabbd8
      <plugins>
eabbd8
        <plugin>
eabbd8
          <artifactId>maven-jar-plugin</artifactId>
eabbd8
          <configuration>
eabbd8
            <archive>
eabbd8
              <manifestEntries>
eabbd8
                <Automatic-Module-Name>org.opentest4j</Automatic-Module-Name>
eabbd8
                <Implementation-Title>opentest4j</Implementation-Title>
eabbd8
                <Implementation-Vendor>opentest4j.org</Implementation-Vendor>
eabbd8
                <Implementation-Version>%{version}</Implementation-Version>
eabbd8
                <Specification-Title>opentest4j</Specification-Title>
eabbd8
                <Specification-Vendor>opentest4j.org</Specification-Vendor>
eabbd8
                <Specification-Version>%{version}</Specification-Version>
eabbd8
                
eabbd8
                <Bundle-ManifestVersion>2</Bundle-ManifestVersion>
eabbd8
                <Bundle-SymbolicName>org.opentest4j</Bundle-SymbolicName>
eabbd8
                <Bundle-Version>%{version}</Bundle-Version>
eabbd8
                <Export-Package>org.opentest4j;version=\"%{version}\"</Export-Package>
eabbd8
              </manifestEntries>
eabbd8
            </archive>
eabbd8
          </configuration>
eabbd8
        </plugin>
eabbd8
      </plugins>
eabbd8
    </pluginManagement>
eabbd8
  </build>"
eabbd8
eabbd8
%build
eabbd8
%mvn_build
eabbd8
eabbd8
%install
eabbd8
%mvn_install
eabbd8
eabbd8
%files -f .mfiles
eabbd8
%license LICENSE
eabbd8
%doc README.md
eabbd8
eabbd8
%files javadoc -f .mfiles-javadoc
eabbd8
%license LICENSE
eabbd8
eabbd8
%changelog
eabbd8
* Sat Jul 11 2020 Jiri Vanek <jvanek@redhat.com> - 1.2.0-2
eabbd8
- Rebuilt for JDK-11, see https://fedoraproject.org/wiki/Changes/Java11
eabbd8
eabbd8
* Wed Mar 04 2020 Fabio Valentini <decathorpe@gmail.com> - 1.2.0-1
eabbd8
- Update to version 1.2.0.
eabbd8
eabbd8
* Wed Jan 29 2020 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-3
eabbd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild
eabbd8
eabbd8
* Thu Jul 25 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.1.1-2
eabbd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild
eabbd8
eabbd8
* Tue Mar 05 2019 Mat Booth <mat.booth@redhat.com> - 1.1.1-1
eabbd8
- Update to latest upstream release
eabbd8
eabbd8
* Fri Feb 01 2019 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-4
eabbd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
eabbd8
eabbd8
* Fri Jul 13 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-3
eabbd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
eabbd8
eabbd8
* Thu Feb 08 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.0.0-2
eabbd8
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
eabbd8
eabbd8
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0-1
eabbd8
- Initial packaging