Accepting request 411334 from devel:languages:haskell
1 OBS-URL: https://build.opensuse.org/request/show/411334 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/ghc-yaml?expand=0&rev=15
This commit is contained in:
commit
11dbfe52fc
@ -1,3 +1,8 @@
|
|||||||
|
-------------------------------------------------------------------
|
||||||
|
Sun Jul 10 17:27:47 UTC 2016 - psimons@suse.com
|
||||||
|
|
||||||
|
- Update to version 0.8.18 revision 0 with cabal2obs.
|
||||||
|
|
||||||
-------------------------------------------------------------------
|
-------------------------------------------------------------------
|
||||||
Mon Jun 27 11:04:26 UTC 2016 - mimi.vx@gmail.com
|
Mon Jun 27 11:04:26 UTC 2016 - mimi.vx@gmail.com
|
||||||
|
|
||||||
|
@ -17,25 +17,26 @@
|
|||||||
|
|
||||||
|
|
||||||
%global pkg_name yaml
|
%global pkg_name yaml
|
||||||
Name: ghc-yaml
|
%bcond_with tests
|
||||||
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.8.18
|
Version: 0.8.18
|
||||||
Release: 0
|
Release: 0
|
||||||
Summary: Support for parsing and rendering YAML documents
|
Summary: Support for parsing and rendering YAML documents
|
||||||
License: BSD-3-Clause
|
License: BSD-3-Clause
|
||||||
Group: System/Libraries
|
Group: System/Libraries
|
||||||
Url: http://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
# End cabal-rpm deps
|
# Begin cabal-rpm deps:
|
||||||
BuildRequires: chrpath
|
BuildRequires: chrpath
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
# Begin cabal-rpm deps:
|
|
||||||
BuildRequires: ghc-aeson-devel
|
BuildRequires: ghc-aeson-devel
|
||||||
BuildRequires: ghc-attoparsec-devel
|
BuildRequires: ghc-attoparsec-devel
|
||||||
BuildRequires: ghc-bytestring-devel
|
BuildRequires: ghc-bytestring-devel
|
||||||
BuildRequires: ghc-conduit-devel
|
BuildRequires: ghc-conduit-devel
|
||||||
BuildRequires: ghc-containers-devel
|
BuildRequires: ghc-containers-devel
|
||||||
|
BuildRequires: ghc-directory-devel
|
||||||
BuildRequires: ghc-enclosed-exceptions-devel
|
BuildRequires: ghc-enclosed-exceptions-devel
|
||||||
BuildRequires: ghc-raw-strings-qq-devel
|
BuildRequires: ghc-filepath-devel
|
||||||
BuildRequires: ghc-resourcet-devel
|
BuildRequires: ghc-resourcet-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
BuildRequires: ghc-scientific-devel
|
BuildRequires: ghc-scientific-devel
|
||||||
@ -44,40 +45,49 @@ BuildRequires: ghc-text-devel
|
|||||||
BuildRequires: ghc-transformers-devel
|
BuildRequires: ghc-transformers-devel
|
||||||
BuildRequires: ghc-unordered-containers-devel
|
BuildRequires: ghc-unordered-containers-devel
|
||||||
BuildRequires: ghc-vector-devel
|
BuildRequires: ghc-vector-devel
|
||||||
BuildRequires: libyaml-devel
|
|
||||||
BuildRequires: pkgconfig(pkg-config)
|
|
||||||
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
BuildRoot: %{_tmppath}/%{name}-%{version}-build
|
||||||
|
%if %{with tests}
|
||||||
|
BuildRequires: ghc-HUnit-devel
|
||||||
|
BuildRequires: ghc-aeson-qq-devel
|
||||||
|
BuildRequires: ghc-base-compat-devel
|
||||||
|
BuildRequires: ghc-hspec-devel
|
||||||
|
BuildRequires: ghc-mockery-devel
|
||||||
|
%endif
|
||||||
|
# End cabal-rpm deps
|
||||||
|
|
||||||
%description
|
%description
|
||||||
Provides support for parsing and emitting Yaml documents.
|
Please see the README.md file.
|
||||||
|
|
||||||
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
|
%package devel
|
||||||
Summary: Haskell %{name} library development files
|
Summary: Haskell %{pkg_name} library development files
|
||||||
Group: Development/Libraries/Other
|
Group: Development/Libraries/Other
|
||||||
Requires: %{name} = %{version}-%{release}
|
Requires: %{name} = %{version}-%{release}
|
||||||
Requires: ghc-compiler = %{ghc_version}
|
Requires: ghc-compiler = %{ghc_version}
|
||||||
Requires: libyaml-devel
|
Requires(post): ghc-compiler = %{ghc_version}
|
||||||
|
Requires(postun): ghc-compiler = %{ghc_version}
|
||||||
|
|
||||||
%description devel
|
%description devel
|
||||||
This package provides the Haskell yaml library development files.
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
%prep
|
%prep
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
%setup -q -n %{pkg_name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%define cabal_configure_options -f system-libyaml
|
|
||||||
%ghc_lib_build
|
%ghc_lib_build
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_lib_install
|
%ghc_lib_install
|
||||||
%ghc_fix_dynamic_rpath yaml2json
|
|
||||||
%ghc_fix_dynamic_rpath json2yaml
|
%ghc_fix_dynamic_rpath json2yaml yaml2json
|
||||||
|
|
||||||
|
|
||||||
|
%check
|
||||||
|
%if %{with tests}
|
||||||
|
%{cabal} test
|
||||||
|
%endif
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
%ghc_pkg_recache
|
%ghc_pkg_recache
|
||||||
@ -88,10 +98,11 @@ This package provides the Haskell yaml library development files.
|
|||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
%doc LICENSE
|
%doc LICENSE
|
||||||
%{_bindir}/yaml2json
|
|
||||||
%{_bindir}/json2yaml
|
%{_bindir}/json2yaml
|
||||||
|
%{_bindir}/yaml2json
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%defattr(-,root,root,-)
|
%defattr(-,root,root,-)
|
||||||
|
%doc ChangeLog.md README.md examples
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
Loading…
Reference in New Issue
Block a user