2013-11-01 17:47:19 +01:00
|
|
|
#
|
2015-07-27 09:53:17 +02:00
|
|
|
# spec file for package ghc-yaml
|
2013-11-01 17:47:19 +01:00
|
|
|
#
|
2016-01-26 11:09:28 +01:00
|
|
|
# Copyright (c) 2016 SUSE LINUX GmbH, Nuernberg, Germany.
|
2013-11-01 17:47:19 +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.
|
|
|
|
|
|
|
|
# Please submit bugfixes or comments via http://bugs.opensuse.org/
|
|
|
|
#
|
|
|
|
|
2013-11-01 17:47:53 +01:00
|
|
|
|
2013-11-01 17:47:19 +01:00
|
|
|
%global pkg_name yaml
|
2015-07-27 09:53:17 +02:00
|
|
|
Name: ghc-yaml
|
2016-06-13 14:51:41 +02:00
|
|
|
Version: 0.8.17.2
|
2013-11-01 17:47:53 +01:00
|
|
|
Release: 0
|
2013-11-01 17:47:19 +01:00
|
|
|
Summary: Support for parsing and rendering YAML documents
|
|
|
|
License: BSD-3-Clause
|
2013-11-01 17:47:53 +01:00
|
|
|
Group: System/Libraries
|
2015-02-24 21:21:22 +01:00
|
|
|
Url: http://hackage.haskell.org/package/%{pkg_name}
|
2013-11-01 17:47:19 +01:00
|
|
|
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
2015-05-04 21:00:03 +02:00
|
|
|
# End cabal-rpm deps
|
|
|
|
BuildRequires: chrpath
|
2013-11-01 17:47:19 +01:00
|
|
|
BuildRequires: ghc-Cabal-devel
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
BuildRequires: ghc-aeson-devel
|
|
|
|
BuildRequires: ghc-attoparsec-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-conduit-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
2015-02-24 21:21:22 +01:00
|
|
|
BuildRequires: ghc-enclosed-exceptions-devel
|
2016-04-17 17:22:37 +02:00
|
|
|
BuildRequires: ghc-raw-strings-qq-devel
|
2013-11-01 17:47:19 +01:00
|
|
|
BuildRequires: ghc-resourcet-devel
|
2015-05-04 21:00:03 +02:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2015-02-24 21:21:22 +01:00
|
|
|
BuildRequires: ghc-scientific-devel
|
2016-02-22 12:24:59 +01:00
|
|
|
BuildRequires: ghc-semigroups-devel
|
2013-11-01 17:47:19 +01:00
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
BuildRequires: ghc-unordered-containers-devel
|
|
|
|
BuildRequires: ghc-vector-devel
|
|
|
|
BuildRequires: libyaml-devel
|
2015-05-04 21:00:03 +02:00
|
|
|
BuildRequires: pkgconfig(pkg-config)
|
2013-11-01 17:47:19 +01:00
|
|
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
|
|
|
|
|
|
|
%description
|
|
|
|
Provides support for parsing and emitting Yaml documents.
|
|
|
|
|
|
|
|
The package is broken down into two modules.
|
|
|
|
"Data.Yaml" provides a high-level interface based
|
|
|
|
around the JSON datatypes provided by the 'aeson'
|
|
|
|
package. "Text.Libyaml" provides a lower-level,
|
|
|
|
streaming interface. For most users, "Data.Yaml" is recommended.
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{name} library development files
|
|
|
|
Group: Development/Libraries/Other
|
|
|
|
Requires: %{name} = %{version}-%{release}
|
2013-11-01 17:47:53 +01:00
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
2013-11-01 17:47:19 +01:00
|
|
|
Requires: libyaml-devel
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell yaml library development files.
|
|
|
|
|
|
|
|
%prep
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
%build
|
|
|
|
%define cabal_configure_options -f system-libyaml
|
|
|
|
%ghc_lib_build
|
|
|
|
|
|
|
|
%install
|
|
|
|
%ghc_lib_install
|
|
|
|
%ghc_fix_dynamic_rpath yaml2json
|
2015-02-24 21:21:22 +01:00
|
|
|
%ghc_fix_dynamic_rpath json2yaml
|
2013-11-01 17:47:19 +01:00
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
%doc LICENSE
|
|
|
|
%{_bindir}/yaml2json
|
2015-02-24 21:21:22 +01:00
|
|
|
%{_bindir}/json2yaml
|
2013-11-01 17:47:19 +01:00
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
%defattr(-,root,root,-)
|
|
|
|
|
|
|
|
%changelog
|