|
William Benton |
53fa0cc |
%global scalacheck_version 1.11.3
|
|
William Benton |
53fa0cc |
%global scala_version 2.10
|
|
William Benton |
53fa0cc |
%global SBT 0
|
|
William Benton |
53fa0cc |
%global ANT 1
|
|
William Benton |
53fa0cc |
%global build_style %{ANT}
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
Name: scalacheck
|
|
William Benton |
53fa0cc |
Version: %{scalacheck_version}
|
|
|
8ea7d5e |
Release: 11%{?dist}
|
|
William Benton |
53fa0cc |
Summary: property-based testing for Scala
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
License: BSD
|
|
William Benton |
53fa0cc |
URL: http://www.scalacheck.org
|
|
William Benton |
53fa0cc |
Source0: https://github.com/rickynils/scalacheck/archive/%{scalacheck_version}.tar.gz
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%if %{build_style} == %{SBT}
|
|
William Benton |
53fa0cc |
# remove cross-compilation (not supported for Fedora) and
|
|
William Benton |
53fa0cc |
# binary-compatibility testing (due to unsupported deps)
|
|
|
12e6a38 |
Patch0: scalacheck-1.11.0-build.patch
|
|
William Benton |
53fa0cc |
%else
|
|
William Benton |
53fa0cc |
# We don't generate a POM from the ant build
|
|
William Benton |
53fa0cc |
Source1: http://repo1.maven.org/maven2/org/scalacheck/%{name}_%{scala_version}/%{version}/%{name}_%{scala_version}-%{version}.pom
|
|
William Benton |
53fa0cc |
# remove maven-ant-tasks
|
|
|
12e6a38 |
Patch0: scalacheck-1.11.3-ant-build.patch
|
|
William Benton |
53fa0cc |
%endif
|
|
William Benton |
53fa0cc |
|
|
|
12e6a38 |
BuildArch: noarch
|
|
William Benton |
53fa0cc |
BuildRequires: scala
|
|
William Benton |
53fa0cc |
%if %{build_style} == %{SBT}
|
|
William Benton |
53fa0cc |
BuildRequires: sbt
|
|
William Benton |
53fa0cc |
%else
|
|
|
12e6a38 |
BuildRequires: ant
|
|
William Benton |
53fa0cc |
%endif
|
|
|
12e6a38 |
BuildRequires: mvn(org.scala-sbt:test-interface)
|
|
|
12e6a38 |
BuildRequires: javapackages-local
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%description
|
|
William Benton |
53fa0cc |
ScalaCheck is a library written in Scala and used for automated
|
|
William Benton |
53fa0cc |
property-based testing of Scala or Java programs. ScalaCheck was
|
|
William Benton |
53fa0cc |
originally inspired by the Haskell library QuickCheck, but has also
|
|
William Benton |
53fa0cc |
ventured into its own.
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
ScalaCheck has no external dependencies other than the Scala runtime,
|
|
William Benton |
53fa0cc |
and works great with sbt, the Scala build tool. It is also fully
|
|
William Benton |
53fa0cc |
integrated in the test frameworks ScalaTest and specs2. You can of
|
|
William Benton |
53fa0cc |
course also use ScalaCheck completely standalone, with its built-in
|
|
William Benton |
53fa0cc |
test runner.
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%package javadoc
|
|
William Benton |
53fa0cc |
Summary: Javadoc for %{name}
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%description javadoc
|
|
William Benton |
53fa0cc |
Javadoc for %{name}.
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%prep
|
|
William Benton |
53fa0cc |
%setup -q
|
|
William Benton |
53fa0cc |
find . -name \*.class -delete
|
|
William Benton |
53fa0cc |
find . -name \*.jar -delete
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%if %{build_style} == %{SBT}
|
|
William Benton |
53fa0cc |
cp -r /usr/share/java/sbt/ivy-local .
|
|
William Benton |
53fa0cc |
mkdir boot
|
|
William Benton |
53fa0cc |
%else
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%endif
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%patch0 -p1
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%if %{build_style} == %{SBT}
|
|
William Benton |
53fa0cc |
sed -i -e 's/0[.]13[.]0/0.13.1/g' project/build.properties
|
|
William Benton |
53fa0cc |
%endif
|
|
William Benton |
53fa0cc |
|
|
|
12e6a38 |
%mvn_file org.%{name}:%{name}_%{scala_version} %{name}
|
|
|
12e6a38 |
|
|
William Benton |
53fa0cc |
%build
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%if %{build_style} == %{SBT}
|
|
|
12e6a38 |
export SBT_BOOT_DIR=$PWD/boot
|
|
|
12e6a38 |
export SBT_IVY_DIR=$PWD/ivy-local
|
|
William Benton |
53fa0cc |
sbt package deliverLocal publishM2Configuration
|
|
|
12e6a38 |
%mvn_artifact target/scala-%{scala_version}/%{name}_%{scala_version}-%{version}.pom target/scala-%{scala_version}/%{name}_%{scala_version}-%{version}.jar
|
|
William Benton |
53fa0cc |
%else
|
|
William Benton |
53fa0cc |
ant -Dversion=%{version} jar doc
|
|
|
12e6a38 |
%mvn_artifact %{SOURCE1} target/%{name}-%{version}.jar
|
|
William Benton |
53fa0cc |
%endif
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%install
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%if %{build_style} == %{SBT}
|
|
William Benton |
53fa0cc |
|
|
|
12e6a38 |
%mvn_install -J target/scala-%{scala_version}/api
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%else
|
|
|
12e6a38 |
%mvn_install -J target/doc/main/api
|
|
William Benton |
53fa0cc |
|
|
|
12e6a38 |
# We only run %%check in an ant build at the moment
|
|
William Benton |
53fa0cc |
%check
|
|
William Benton |
53fa0cc |
ant test
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%endif
|
|
William Benton |
53fa0cc |
|
|
|
12e6a38 |
%files -f .mfiles
|
|
|
12e6a38 |
%doc README.markdown RELEASE
|
|
|
12e6a38 |
%license LICENSE
|
|
William Benton |
53fa0cc |
|
|
|
12e6a38 |
%files javadoc -f .mfiles-javadoc
|
|
|
12e6a38 |
%license LICENSE
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
%changelog
|
|
|
8ea7d5e |
* Sat Jul 14 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-11
|
|
|
8ea7d5e |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild
|
|
|
8ea7d5e |
|
|
|
d637a59 |
* Fri Feb 09 2018 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-10
|
|
|
d637a59 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
d637a59 |
|
|
|
bba73b6 |
* Thu Jul 27 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-9
|
|
|
bba73b6 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
bba73b6 |
|
|
|
0d2fb8d |
* Sat Feb 11 2017 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-8
|
|
|
0d2fb8d |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
0d2fb8d |
|
|
|
050d556 |
* Thu Feb 04 2016 Fedora Release Engineering <releng@fedoraproject.org> - 1.11.3-7
|
|
|
050d556 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
050d556 |
|
|
|
12e6a38 |
* Thu Aug 06 2015 gil cattaneo <puntogil@libero.it> 1.11.3-6
|
|
|
12e6a38 |
- Fix FTBFS RHBZ#1107280
|
|
|
12e6a38 |
- Introduce license macro
|
|
|
12e6a38 |
|
|
|
90f34da |
* Fri Jun 19 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.3-5
|
|
|
90f34da |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
90f34da |
|
|
|
b28f858 |
* Sun Jun 08 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 1.11.3-4
|
|
|
b28f858 |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
b28f858 |
|
|
William Benton |
8c5cc38 |
* Mon Feb 10 2014 William Benton <willb@redhat.com> - 1.11.3-3
|
|
William Benton |
8c5cc38 |
- rebuild
|
|
William Benton |
8c5cc38 |
|
|
William Benton |
f009c59 |
* Thu Jan 30 2014 William Benton <willb@redhat.com> - 1.11.3-2
|
|
William Benton |
f009c59 |
- rebuild now that all of our dependencies are in stable
|
|
William Benton |
f009c59 |
|
|
William Benton |
53fa0cc |
* Wed Jan 29 2014 William Benton <willb@redhat.com> - 1.11.3-1
|
|
William Benton |
53fa0cc |
- added optional but on-by-default Ant build (thanks to Gil Cattaneo for contributing this!)
|
|
William Benton |
53fa0cc |
|
|
William Benton |
53fa0cc |
* Mon Dec 23 2013 William Benton <willb@redhat.com> - 1.11.0-1
|
|
William Benton |
53fa0cc |
- initial package
|