2012-06-08 17:14:40 +00:00
|
|
|
#
|
2013-08-01 08:55:35 +00:00
|
|
|
# spec file for package ghc-vector
|
2012-06-08 17:14:40 +00:00
|
|
|
#
|
2025-01-17 22:01:41 +00:00
|
|
|
# Copyright (c) 2025 SUSE LLC
|
2012-01-19 18:07:24 +00:00
|
|
|
#
|
|
|
|
# All modifications and additions to the file contributed by third parties
|
|
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
|
|
# upon. The license for this file, and modifications and additions to the
|
|
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
|
|
# license for the pristine package is not an Open Source License, in which
|
|
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
|
|
# published by the Open Source Initiative.
|
|
|
|
|
2018-10-18 09:53:21 +00:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2012-01-19 18:07:24 +00:00
|
|
|
#
|
|
|
|
|
2013-08-01 08:55:35 +00:00
|
|
|
|
2012-01-19 18:07:24 +00:00
|
|
|
%global pkg_name vector
|
2023-03-30 08:26:52 +00:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2016-07-17 22:02:45 +00:00
|
|
|
%bcond_with tests
|
|
|
|
Name: ghc-%{pkg_name}
|
2024-11-02 22:00:49 +00:00
|
|
|
Version: 0.13.2.0
|
2013-08-01 08:55:35 +00:00
|
|
|
Release: 0
|
2014-11-06 19:34:06 +00:00
|
|
|
Summary: Efficient Arrays
|
2012-02-29 12:53:50 +00:00
|
|
|
License: BSD-3-Clause
|
2017-08-15 14:08:05 +00:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2016-07-17 22:02:45 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2025-01-17 22:01:41 +00:00
|
|
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
|
2012-01-19 18:07:24 +00:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base-prof
|
2013-08-01 08:55:35 +00:00
|
|
|
BuildRequires: ghc-deepseq-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-deepseq-prof
|
2012-01-19 18:07:24 +00:00
|
|
|
BuildRequires: ghc-primitive-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-primitive-prof
|
2024-11-02 22:00:49 +00:00
|
|
|
BuildRequires: ghc-random-devel
|
|
|
|
BuildRequires: ghc-random-prof
|
2016-07-17 22:02:45 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2024-11-02 22:00:49 +00:00
|
|
|
BuildRequires: ghc-tasty-devel
|
|
|
|
BuildRequires: ghc-tasty-prof
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-vector-stream-devel
|
|
|
|
BuildRequires: ghc-vector-stream-prof
|
2020-12-19 17:49:30 +00:00
|
|
|
ExcludeArch: %{ix86}
|
2016-07-17 22:02:45 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-QuickCheck-prof
|
2018-12-09 02:01:34 +00:00
|
|
|
BuildRequires: ghc-base-orphans-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-base-orphans-prof
|
|
|
|
BuildRequires: ghc-doctest-devel
|
|
|
|
BuildRequires: ghc-doctest-prof
|
2020-09-04 15:11:58 +00:00
|
|
|
BuildRequires: ghc-tasty-hunit-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-tasty-hunit-prof
|
|
|
|
BuildRequires: ghc-tasty-inspection-testing-devel
|
|
|
|
BuildRequires: ghc-tasty-inspection-testing-prof
|
2020-09-04 15:11:58 +00:00
|
|
|
BuildRequires: ghc-tasty-quickcheck-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-tasty-quickcheck-prof
|
2016-07-17 22:02:45 +00:00
|
|
|
BuildRequires: ghc-template-haskell-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-template-haskell-prof
|
2016-07-17 22:02:45 +00:00
|
|
|
BuildRequires: ghc-transformers-devel
|
2023-03-30 08:26:52 +00:00
|
|
|
BuildRequires: ghc-transformers-prof
|
2016-07-17 22:02:45 +00:00
|
|
|
%endif
|
2012-02-29 12:53:50 +00:00
|
|
|
|
2012-01-19 18:07:24 +00:00
|
|
|
%description
|
2024-11-02 22:00:49 +00:00
|
|
|
. An efficient implementation of 'Int'-indexed arrays (both mutable and
|
|
|
|
immutable), with a powerful loop optimisation framework . . It is structured as
|
|
|
|
follows: . ["Data.Vector"] Boxed vectors of arbitrary types. .
|
2016-07-17 22:02:45 +00:00
|
|
|
["Data.Vector.Unboxed"] Unboxed vectors with an adaptive representation based
|
2024-11-02 22:00:49 +00:00
|
|
|
on data type families. . ["Data.Vector.Storable"] Unboxed vectors of 'Storable'
|
|
|
|
types. . ["Data.Vector.Primitive"] Unboxed vectors of primitive types as
|
|
|
|
defined by the 'primitive' package. "Data.Vector.Unboxed" is more flexible at
|
|
|
|
no performance cost. . ["Data.Vector.Generic"] Generic interface to the vector
|
|
|
|
types. . There is also a (draft) tutorial on common uses of vector. .
|
2016-07-17 22:02:45 +00:00
|
|
|
* <http://haskell.org/haskellwiki/Numeric_Haskell:_A_Vector_Tutorial>.
|
2012-01-19 18:07:24 +00:00
|
|
|
|
2013-08-01 08:55:35 +00:00
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2016-07-17 22:02:45 +00:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2014-11-06 19:34:06 +00:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2013-08-01 08:55:35 +00:00
|
|
|
|
|
|
|
%description devel
|
2014-11-06 19:34:06 +00:00
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
2023-03-30 08:26:52 +00:00
|
|
|
%package -n ghc-%{pkg_name}-doc
|
|
|
|
Summary: Haskell %{pkg_name} library documentation
|
|
|
|
Requires: ghc-filesystem
|
|
|
|
BuildArch: noarch
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-doc
|
|
|
|
This package provides the Haskell %{pkg_name} library documentation.
|
|
|
|
|
|
|
|
%package -n ghc-%{pkg_name}-prof
|
|
|
|
Summary: Haskell %{pkg_name} profiling library
|
|
|
|
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
|
|
|
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
|
|
|
|
|
|
|
%description -n ghc-%{pkg_name}-prof
|
|
|
|
This package provides the Haskell %{pkg_name} profiling library.
|
|
|
|
|
2012-01-19 18:07:24 +00:00
|
|
|
%prep
|
2020-09-04 15:11:58 +00:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
2025-01-17 22:01:41 +00:00
|
|
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
2016-07-17 22:02:45 +00:00
|
|
|
|
2012-01-19 18:07:24 +00:00
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
2016-07-17 22:02:45 +00:00
|
|
|
%check
|
2016-10-03 08:27:23 +00:00
|
|
|
%cabal_test
|
2016-07-17 22:02:45 +00:00
|
|
|
|
2013-08-01 08:55:35 +00:00
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
2012-01-19 18:07:24 +00:00
|
|
|
|
2013-08-01 08:55:35 +00:00
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
2012-01-19 18:07:24 +00:00
|
|
|
|
2013-08-01 08:55:35 +00:00
|
|
|
%files -f %{name}.files
|
2018-04-26 07:53:43 +00:00
|
|
|
%license LICENSE
|
2012-01-19 18:07:24 +00:00
|
|
|
|
2013-08-01 08:55:35 +00:00
|
|
|
%files devel -f %{name}-devel.files
|
2020-09-04 15:11:58 +00:00
|
|
|
%doc README.md changelog.md
|
2012-01-19 18:07:24 +00:00
|
|
|
|
2023-03-30 08:26:52 +00:00
|
|
|
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
|
|
|
%license LICENSE
|
|
|
|
|
|
|
|
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
|
|
|
|
2012-01-19 18:07:24 +00:00
|
|
|
%changelog
|