148 lines
4.1 KiB
RPMSpec
148 lines
4.1 KiB
RPMSpec
# 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.3.0.0
|
|
Release: 1%{?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
|
|
* Thu Jan 11 2018 Elliott Sales de Andrade <quantum.analyst@gmail.com> - 1.3.0.0-1
|
|
- Update to latest version.
|
|
|
|
* 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
|