2015-05-04 19:57:51 +02:00
|
|
|
#
|
|
|
|
# spec file for package ghc-unix-compat
|
|
|
|
#
|
2018-04-02 17:07:03 +02:00
|
|
|
# Copyright (c) 2018 SUSE LINUX GmbH, Nuernberg, Germany.
|
2015-05-04 19:57:51 +02: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:53:15 +02:00
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
2015-05-04 19:57:51 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
|
2016-07-18 15:54:36 +02:00
|
|
|
%global pkg_name unix-compat
|
2015-05-04 19:57:51 +02:00
|
|
|
Name: ghc-%{pkg_name}
|
2018-08-31 03:01:29 +02:00
|
|
|
Version: 0.5.1
|
2015-05-04 19:57:51 +02:00
|
|
|
Release: 0
|
|
|
|
Summary: Portable POSIX-compatibility layer
|
|
|
|
License: BSD-3-Clause
|
2017-08-17 16:15:37 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
2017-08-15 16:07:47 +02:00
|
|
|
URL: https://hackage.haskell.org/package/%{pkg_name}
|
2015-05-04 19:57:51 +02:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2019-05-15 03:01:46 +02:00
|
|
|
Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal
|
2015-05-04 19:57:51 +02:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
BuildRequires: ghc-rpm-macros
|
|
|
|
BuildRequires: ghc-unix-devel
|
|
|
|
|
|
|
|
%description
|
|
|
|
This package provides portable implementations of parts of the unix package.
|
|
|
|
This package re-exports the unix package when available. When it isn't
|
|
|
|
available, portable implementations are used.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
2017-08-11 11:08:46 +02:00
|
|
|
Group: Development/Libraries/Haskell
|
2016-07-18 15:54:36 +02:00
|
|
|
Requires: %{name} = %{version}-%{release}
|
2015-05-04 19:57:51 +02:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2019-05-15 03:01:46 +02:00
|
|
|
cp -p %{SOURCE1} %{pkg_name}.cabal
|
2015-05-04 19:57:51 +02:00
|
|
|
|
|
|
|
%build
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
2018-04-26 09:52:58 +02:00
|
|
|
%license LICENSE
|
2015-05-04 19:57:51 +02:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
|
|
|
|
%changelog
|