Initial import (#1526208).

This commit is contained in:
Elliott Sales de Andrade 2017-12-15 20:03:15 -05:00
parent 15983653fc
commit 2b6abd9829
4 changed files with 146 additions and 3 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
/criterion-1.2.6.0.tar.gz

View File

@ -1,3 +0,0 @@
# ghc-criterion
The ghc-criterion package

144
ghc-criterion.spec Normal file
View File

@ -0,0 +1,144 @@
# generated by cabal-rpm-0.11.2
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name criterion
%global pkgver %{pkg_name}-%{version}
%bcond_with tests
Name: ghc-%{pkg_name}
Version: 1.2.6.0
Release: 2%{?dist}
Summary: Robust, reliable performance measurement and analysis
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: chrpath
BuildRequires: ghc-Glob-devel
BuildRequires: ghc-aeson-devel
BuildRequires: ghc-ansi-wl-pprint-devel
BuildRequires: ghc-base-compat-devel
BuildRequires: ghc-binary-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-cassava-devel
BuildRequires: ghc-code-page-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-deepseq-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-exceptions-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-js-flot-devel
BuildRequires: ghc-js-jquery-devel
BuildRequires: ghc-microstache-devel
BuildRequires: ghc-mtl-devel
BuildRequires: ghc-mwc-random-devel
BuildRequires: ghc-optparse-applicative-devel
BuildRequires: ghc-parsec-devel
BuildRequires: ghc-semigroups-devel
BuildRequires: ghc-statistics-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
BuildRequires: ghc-transformers-compat-devel
BuildRequires: ghc-transformers-devel
BuildRequires: ghc-vector-algorithms-devel
BuildRequires: ghc-vector-devel
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-QuickCheck-devel
BuildRequires: ghc-tasty-devel
BuildRequires: ghc-tasty-hunit-devel
BuildRequires: ghc-tasty-quickcheck-devel
%endif
# End cabal-rpm deps
%description
This library provides a powerful but simple way to measure software
performance. It provides both a framework for executing and analysing
benchmarks and a set of driver functions that makes it easy to build and run
benchmarks, and to analyse their results.
The fastest way to get started is to read the
<http://www.serpentine.com/criterion/tutorial.html online tutorial>, followed
by the documentation and examples in the "Criterion.Main" module.
For examples of the kinds of reports that criterion generates, see
<http://www.serpentine.com/criterion the home page>.
%package devel
Summary: Haskell %{pkg_name} library development files
Provides: %{name}-static = %{version}-%{release}
Requires: ghc-compiler = %{ghc_version}
Requires(post): ghc-compiler = %{ghc_version}
Requires(postun): ghc-compiler = %{ghc_version}
Requires: %{name}%{?_isa} = %{version}-%{release}
%description devel
This package provides the Haskell %{pkg_name} library development files.
%package devel-doc
Summary: Haskell %{pkg_name} library development documentation
BuildArch: noarch
%description devel-doc
This package provides the Haskell %{pkg_name} library development
documentation.
%prep
%setup -q -n %{pkgver}
%build
%ghc_lib_build
%install
%ghc_lib_install
%ghc_fix_rpath %{pkgver}
grep -v "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-nodoc.files
grep "%{_docdir}/ghc/html/libraries/%{pkgver}" %{name}-devel.files > %{name}-devel-doc.files
%check
%cabal_test
%post devel
%ghc_pkg_recache
%postun devel
%ghc_pkg_recache
%files -f %{name}.files
%license LICENSE
%{_datadir}/%{pkgver}
%files devel -f %{name}-devel-nodoc.files
%doc README.markdown changelog.md
%{_bindir}/criterion-report
%files devel-doc -f %{name}-devel-doc.files
%doc README.markdown examples
%changelog
* Fri Dec 15 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.6.0-2
- Split documentation into separate subpackage.
* Thu Dec 14 2017 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.2.6.0-1
- Update to latest version.
* Fri Nov 17 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 1.2.3.0-1
- spec file generated by cabal-rpm-0.11.2

1
sources Normal file
View File

@ -0,0 +1 @@
SHA512 (criterion-1.2.6.0.tar.gz) = 81f72f4abc054a5ea70098e0fd86823c2ad30ee0616be711d87e416f1726409dd2afbef9286b433333fd45398d0eda65e8bd21c8f3d369fa8189651bea67a9dc