ALT Linux repos
Group :: Development/Java
RPM: jmock
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Epoch: 0
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jmock
Version: 2.12.0
Release: alt1_7jpp11
Summary: Java library for testing code with mock objects
License: BSD
URL: http://www.jmock.org/
BuildArch: noarch
Source0: https://github.com/jmock-developers/jmock-library/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.google.auto.service:auto-service)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(javax.xml.ws:jaxws-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.bytebuddy:byte-buddy)
BuildRequires: mvn(org.apache-extras.beanshell:bsh)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
BuildRequires: mvn(org.junit.platform:junit-platform-launcher)
BuildRequires: mvn(org.objenesis:objenesis)
BuildRequires: mvn(org.ow2.asm:asm)
# required for some unit tests
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
Source44: import.info
%description
Mock objects help you design and test the interactions between the objects in
your programs.
The jMock library:
* makes it quick and easy to define mock objects, so you don't break the
rhythm of programming.
* lets you precisely specify the interactions between your objects, reducing
the brittleness of your tests.
* works well with the auto-completion and re-factoring features of your IDE
* plugs into your favorite test framework
* is easy to extend.
%package example
Group: Development/Java
Summary: jMock Examples
%description example
jMock Examples.
%package imposters
Group: Development/Java
Summary: jMock imposters
%description imposters
jMock imposters.
%package junit3
Group: Development/Java
Summary: jMock JUnit 3 Integration
%description junit3
jMock JUnit 3 Integration.
%package junit4
Group: Development/Java
Summary: jMock JUnit 4 Integration
%description junit4
jMock JUnit 4 Integration.
%package junit5
Group: Development/Java
Summary: jMock JUnit 5 Integration
%description junit5
jMock JUnit 5 Integration.
%package legacy
Group: Development/Java
Summary: jMock Legacy Plugins
%description legacy
Plugins that make it easier to use jMock with legacy code.
%package testjar
Group: Development/Java
Summary: jMock Test Jar
%description testjar
Source for JAR files used in jMock Core tests.
%{?javadoc_package}
%prep
%setup -q -n %{name}-library-%{version}
# remove unnecessary dependency on parent POM
%pom_remove_parent
# remove maven plugins that are not required for RPM builds
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin -r :versions-maven-plugin
%pom_remove_plugin :maven-gpg-plugin testjar
# use correct maven artifact for at javax.annotations.Nullable
%pom_change_dep com.google.code.findbugs:annotations com.google.code.findbugs:jsr305 testjar
# don't install imposters-tests and parent package
%mvn_package :jmock-imposters-tests __noinstall
%mvn_package :jmock-parent __noinstall
%build
%mvn_build -s -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Dmaven.test.failure.ignore=true
%install
%mvn_install
%files -f .mfiles-%{name}
%doc README*
%doc --no-dereference LICENSE.txt
%files example -f .mfiles-%{name}-example
%files imposters -f .mfiles-%{name}-imposters
%files junit3 -f .mfiles-%{name}-junit3
%files junit4 -f .mfiles-%{name}-junit4
%files junit5 -f .mfiles-%{name}-junit5
%files legacy -f .mfiles-%{name}-legacy
%files testjar -f .mfiles-%{name}-testjar
%doc --no-dereference LICENSE.txt
%changelog
…
Full changelog you can see here
Group: Development/Java
BuildRequires: /proc rpm-build-java
BuildRequires: jpackage-default
# see https://bugzilla.altlinux.org/show_bug.cgi?id=10382
%define _localstatedir %{_var}
Name: jmock
Version: 2.12.0
Release: alt1_7jpp11
Summary: Java library for testing code with mock objects
License: BSD
URL: http://www.jmock.org/
BuildArch: noarch
Source0: https://github.com/jmock-developers/jmock-library/archive/%{version}/%{name}-%{version}.tar.gz
BuildRequires: maven-local
BuildRequires: mvn(cglib:cglib)
BuildRequires: mvn(com.google.auto.service:auto-service)
BuildRequires: mvn(com.google.code.findbugs:jsr305)
BuildRequires: mvn(javax.xml.ws:jaxws-api)
BuildRequires: mvn(junit:junit)
BuildRequires: mvn(net.bytebuddy:byte-buddy)
BuildRequires: mvn(org.apache-extras.beanshell:bsh)
BuildRequires: mvn(org.apache.maven.plugins:maven-dependency-plugin)
BuildRequires: mvn(org.codehaus.mojo:exec-maven-plugin)
BuildRequires: mvn(org.hamcrest:hamcrest)
BuildRequires: mvn(org.hamcrest:hamcrest-library)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-api)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-engine)
BuildRequires: mvn(org.junit.jupiter:junit-jupiter-params)
BuildRequires: mvn(org.junit.platform:junit-platform-launcher)
BuildRequires: mvn(org.objenesis:objenesis)
BuildRequires: mvn(org.ow2.asm:asm)
# required for some unit tests
BuildRequires: mvn(org.apache.maven.surefire:surefire-junit-platform)
Source44: import.info
%description
Mock objects help you design and test the interactions between the objects in
your programs.
The jMock library:
* makes it quick and easy to define mock objects, so you don't break the
rhythm of programming.
* lets you precisely specify the interactions between your objects, reducing
the brittleness of your tests.
* works well with the auto-completion and re-factoring features of your IDE
* plugs into your favorite test framework
* is easy to extend.
%package example
Group: Development/Java
Summary: jMock Examples
%description example
jMock Examples.
%package imposters
Group: Development/Java
Summary: jMock imposters
%description imposters
jMock imposters.
%package junit3
Group: Development/Java
Summary: jMock JUnit 3 Integration
%description junit3
jMock JUnit 3 Integration.
%package junit4
Group: Development/Java
Summary: jMock JUnit 4 Integration
%description junit4
jMock JUnit 4 Integration.
%package junit5
Group: Development/Java
Summary: jMock JUnit 5 Integration
%description junit5
jMock JUnit 5 Integration.
%package legacy
Group: Development/Java
Summary: jMock Legacy Plugins
%description legacy
Plugins that make it easier to use jMock with legacy code.
%package testjar
Group: Development/Java
Summary: jMock Test Jar
%description testjar
Source for JAR files used in jMock Core tests.
%{?javadoc_package}
%prep
%setup -q -n %{name}-library-%{version}
# remove unnecessary dependency on parent POM
%pom_remove_parent
# remove maven plugins that are not required for RPM builds
%pom_remove_plugin :maven-enforcer-plugin
%pom_remove_plugin :maven-javadoc-plugin
%pom_remove_plugin :maven-source-plugin
%pom_remove_plugin :nexus-staging-maven-plugin
%pom_remove_plugin -r :versions-maven-plugin
%pom_remove_plugin :maven-gpg-plugin testjar
# use correct maven artifact for at javax.annotations.Nullable
%pom_change_dep com.google.code.findbugs:annotations com.google.code.findbugs:jsr305 testjar
# don't install imposters-tests and parent package
%mvn_package :jmock-imposters-tests __noinstall
%mvn_package :jmock-parent __noinstall
%build
%mvn_build -s -- -Dmaven.compiler.source=1.8 -Dmaven.compiler.target=1.8 -Dmaven.javadoc.source=1.8 -Dmaven.compiler.release=8 -Dmaven.test.failure.ignore=true
%install
%mvn_install
%files -f .mfiles-%{name}
%doc README*
%doc --no-dereference LICENSE.txt
%files example -f .mfiles-%{name}-example
%files imposters -f .mfiles-%{name}-imposters
%files junit3 -f .mfiles-%{name}-junit3
%files junit4 -f .mfiles-%{name}-junit4
%files junit5 -f .mfiles-%{name}-junit5
%files legacy -f .mfiles-%{name}-legacy
%files testjar -f .mfiles-%{name}-testjar
%doc --no-dereference LICENSE.txt
%changelog
…
Full changelog you can see here