2014-11-22 02:30:53 +01:00
|
|
|
#
|
2015-05-04 20:54:07 +02:00
|
|
|
# spec file for package ghc-extra
|
2014-11-22 02:30:53 +01:00
|
|
|
#
|
2023-03-30 10:26:23 +02:00
|
|
|
# Copyright (c) 2022 SUSE LLC
|
2014-11-22 02:30:53 +01: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 11:49:29 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2014-11-22 02:30:53 +01:00
|
|
|
#
|
|
|
|
|
|
|
|
|
|
|
|
%global pkg_name extra
|
2023-03-30 10:26:23 +02:00
|
|
|
%global pkgver %{pkg_name}-%{version}
|
2014-11-22 02:30:53 +01:00
|
|
|
%bcond_with tests
|
2016-07-17 09:19:19 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2023-03-30 10:26:23 +02:00
|
|
|
Version: 1.7.12
|
2014-11-22 02:30:53 +01:00
|
|
|
Release: 0
|
|
|
|
Summary: Extra functions I use
|
|
|
|
License: BSD-3-Clause
|
2017-08-15 15:56:26 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2016-07-17 09:19:19 +02:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2014-11-22 02:30:53 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-base-devel
|
|
|
|
BuildRequires: ghc-base-prof
|
2017-02-22 18:47:05 +01:00
|
|
|
BuildRequires: ghc-clock-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-clock-prof
|
2014-11-22 02:30:53 +01:00
|
|
|
BuildRequires: ghc-directory-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-directory-prof
|
2014-11-22 02:30:53 +01:00
|
|
|
BuildRequires: ghc-filepath-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-filepath-prof
|
2014-11-22 02:30:53 +01:00
|
|
|
BuildRequires: ghc-process-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-process-prof
|
2014-11-22 02:30:53 +01:00
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
BuildRequires: ghc-time-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-time-prof
|
2014-11-22 02:30:53 +01:00
|
|
|
BuildRequires: ghc-unix-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-unix-prof
|
2020-12-19 18:48:02 +01:00
|
|
|
ExcludeArch: %{ix86}
|
2014-11-22 02:30:53 +01:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-QuickCheck-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-QuickCheck-prof
|
2020-09-04 17:10:29 +02:00
|
|
|
BuildRequires: ghc-quickcheck-instances-devel
|
2023-03-30 10:26:23 +02:00
|
|
|
BuildRequires: ghc-quickcheck-instances-prof
|
2014-11-22 02:30:53 +01:00
|
|
|
%endif
|
|
|
|
|
|
|
|
%description
|
|
|
|
A library of extra functions for the standard Haskell libraries. Most functions
|
|
|
|
are simple additions, filling out missing functionality. A few functions are
|
|
|
|
available in later versions of GHC, but this package makes them available back
|
|
|
|
to GHC 7.2.
|
|
|
|
|
|
|
|
The module "Extra" documents all functions provided by this library.
|
|
|
|
Modules such as "Data.List.Extra" provide extra functions over "Data.List" and
|
|
|
|
also reexport "Data.List". Users are recommended to replace "Data.List" imports
|
|
|
|
with "Data.List.Extra" if they need the extra functionality.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2016-07-17 09:19:19 +02:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
2014-11-22 02:30:53 +01:00
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
2023-03-30 10:26:23 +02: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.
|
|
|
|
|
2014-11-22 02:30:53 +01:00
|
|
|
%prep
|
2020-09-04 17:10:29 +02:00
|
|
|
%autosetup -n %{pkg_name}-%{version}
|
2014-11-22 02:30:53 +01:00
|
|
|
|
|
|
|
%build
|
2016-07-17 09:19:19 +02:00
|
|
|
%ghc_lib_build
|
|
|
|
|
2014-11-22 02:30:53 +01:00
|
|
|
%install
|
2016-07-17 09:19:19 +02:00
|
|
|
%ghc_lib_install
|
|
|
|
|
2014-11-22 02:30:53 +01:00
|
|
|
%check
|
2016-10-06 20:04:44 +02:00
|
|
|
%cabal_test
|
2016-07-17 09:19:19 +02:00
|
|
|
|
2014-11-22 02:30:53 +01:00
|
|
|
%post devel
|
2016-07-17 09:19:19 +02:00
|
|
|
%ghc_pkg_recache
|
2014-11-22 02:30:53 +01:00
|
|
|
|
|
|
|
%postun devel
|
2016-07-17 09:19:19 +02:00
|
|
|
%ghc_pkg_recache
|
2014-11-22 02:30:53 +01:00
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-04-26 09:21:15 +02:00
|
|
|
%license LICENSE
|
2014-11-22 02:30:53 +01:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2017-02-22 18:47:05 +01:00
|
|
|
%doc CHANGES.txt README.md
|
2014-11-22 02:30:53 +01:00
|
|
|
|
2023-03-30 10:26:23 +02: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
|
|
|
|
|
2014-11-22 02:30:53 +01:00
|
|
|
%changelog
|