Initial packaging
This commit is contained in:
parent
c49853a9ae
commit
35c0712d3e
75
opentest4j.spec
Normal file
75
opentest4j.spec
Normal file
@ -0,0 +1,75 @@
|
|||||||
|
Name: opentest4j
|
||||||
|
Version: 1.0.0
|
||||||
|
Release: 1%{?dist}
|
||||||
|
Summary: Open Test Alliance for the JVM
|
||||||
|
License: ASL 2.0
|
||||||
|
URL: https://github.com/ota4j-team/opentest4j
|
||||||
|
BuildArch: noarch
|
||||||
|
|
||||||
|
Source0: https://github.com/ota4j-team/opentest4j/archive/r%{version}.tar.gz
|
||||||
|
|
||||||
|
Source100: https://repo1.maven.org/maven2/org/opentest4j/opentest4j/%{version}/opentest4j-%{version}.pom
|
||||||
|
|
||||||
|
BuildRequires: maven-local
|
||||||
|
BuildRequires: mvn(junit:junit)
|
||||||
|
|
||||||
|
%description
|
||||||
|
Open Test Alliance for the JVM is a minimal common foundation for
|
||||||
|
testing libraries on the JVM. The primary goal of the project is to
|
||||||
|
enable testing frameworks like JUnit, TestNG, Spock, etc. and
|
||||||
|
third-party assertion libraries like Hamcrest, AssertJ, etc. to use a
|
||||||
|
common set of exceptions that IDEs and build tools can support in a
|
||||||
|
consistent manner across all testing scenarios -- for example, for
|
||||||
|
consistent handling of failed assertions and failed assumptions as
|
||||||
|
well as visualization of test execution in IDEs and reports.
|
||||||
|
|
||||||
|
%package javadoc
|
||||||
|
Summary: Javadoc for %{name}
|
||||||
|
|
||||||
|
%description javadoc
|
||||||
|
API documentation for %{name}.
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -n opentest4j-r%{version}
|
||||||
|
cp -p %{SOURCE100} pom.xml
|
||||||
|
|
||||||
|
%pom_add_dep junit:junit:4.12:test
|
||||||
|
|
||||||
|
# Inject OSGi manifest required by Eclipse
|
||||||
|
%pom_xpath_inject pom:project "
|
||||||
|
<build>
|
||||||
|
<pluginManagement>
|
||||||
|
<plugins>
|
||||||
|
<plugin>
|
||||||
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
|
<configuration>
|
||||||
|
<archive>
|
||||||
|
<manifestEntries>
|
||||||
|
<Bundle-ManifestVersion>2</Bundle-ManifestVersion>
|
||||||
|
<Bundle-SymbolicName>org.opentest4j</Bundle-SymbolicName>
|
||||||
|
<Bundle-Version>%{version}</Bundle-Version>
|
||||||
|
<Export-Package>org.opentest4j;version=\"%{version}\"</Export-Package>
|
||||||
|
</manifestEntries>
|
||||||
|
</archive>
|
||||||
|
</configuration>
|
||||||
|
</plugin>
|
||||||
|
</plugins>
|
||||||
|
</pluginManagement>
|
||||||
|
</build>"
|
||||||
|
|
||||||
|
%build
|
||||||
|
%mvn_build
|
||||||
|
|
||||||
|
%install
|
||||||
|
%mvn_install
|
||||||
|
|
||||||
|
%files -f .mfiles
|
||||||
|
%license LICENSE
|
||||||
|
%doc README.md
|
||||||
|
|
||||||
|
%files javadoc -f .mfiles-javadoc
|
||||||
|
%license LICENSE
|
||||||
|
|
||||||
|
%changelog
|
||||||
|
* Thu Sep 14 2017 Mikolaj Izdebski <mizdebsk@redhat.com> - 1.0.0-1
|
||||||
|
- Initial packaging
|
Loading…
Reference in New Issue
Block a user