2016-09-01 06:11:55 +00:00
|
|
|
# generated by cabal-rpm-0.10.1
|
2013-11-19 09:31:05 +00:00
|
|
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
|
|
|
|
|
%global pkg_name yaml
|
|
|
|
|
2015-01-28 06:09:44 +00:00
|
|
|
%bcond_with tests
|
|
|
|
|
2013-11-19 09:31:05 +00:00
|
|
|
Name: ghc-%{pkg_name}
|
2016-09-27 07:42:29 +00:00
|
|
|
Version: 0.8.18.7
|
2017-01-06 02:57:48 +00:00
|
|
|
Release: 3%{?dist}
|
2013-11-19 09:31:05 +00:00
|
|
|
Summary: Support for parsing and rendering YAML documents
|
|
|
|
|
|
|
|
License: BSD
|
2015-01-28 06:09:44 +00:00
|
|
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
2017-01-06 02:57:48 +00:00
|
|
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
2013-11-19 09:31:05 +00:00
|
|
|
|
|
|
|
BuildRequires: ghc-Cabal-devel
|
2017-01-06 02:57:48 +00:00
|
|
|
BuildRequires: ghc-rpm-macros
|
2013-11-19 09:31:05 +00:00
|
|
|
# Begin cabal-rpm deps:
|
2017-01-06 02:57:48 +00:00
|
|
|
BuildRequires: chrpath
|
2013-11-19 09:31:05 +00:00
|
|
|
BuildRequires: ghc-aeson-devel
|
|
|
|
BuildRequires: ghc-attoparsec-devel
|
|
|
|
BuildRequires: ghc-bytestring-devel
|
|
|
|
BuildRequires: ghc-conduit-devel
|
|
|
|
BuildRequires: ghc-containers-devel
|
2015-03-03 16:02:03 +00:00
|
|
|
BuildRequires: ghc-directory-devel
|
2017-01-06 02:57:48 +00:00
|
|
|
BuildRequires: ghc-enclosed-exceptions-devel
|
2015-03-03 16:02:03 +00:00
|
|
|
BuildRequires: ghc-filepath-devel
|
2013-11-19 09:31:05 +00:00
|
|
|
BuildRequires: ghc-resourcet-devel
|
2014-05-02 03:49:32 +00:00
|
|
|
BuildRequires: ghc-scientific-devel
|
2016-08-31 05:22:46 +00:00
|
|
|
BuildRequires: ghc-semigroups-devel
|
2013-11-19 09:31:05 +00:00
|
|
|
BuildRequires: ghc-text-devel
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
BuildRequires: ghc-unordered-containers-devel
|
|
|
|
BuildRequires: ghc-vector-devel
|
|
|
|
BuildRequires: pkgconfig(yaml-0.1)
|
2015-01-28 06:09:44 +00:00
|
|
|
%if %{with tests}
|
|
|
|
BuildRequires: ghc-HUnit-devel
|
2015-03-03 16:02:03 +00:00
|
|
|
BuildRequires: ghc-aeson-qq-devel
|
2016-08-31 05:22:46 +00:00
|
|
|
BuildRequires: ghc-base-compat-devel
|
2015-01-28 06:09:44 +00:00
|
|
|
BuildRequires: ghc-hspec-devel
|
2016-08-31 05:22:46 +00:00
|
|
|
BuildRequires: ghc-mockery-devel
|
2017-01-06 02:57:48 +00:00
|
|
|
BuildRequires: ghc-temporary-devel
|
2015-01-28 06:09:44 +00:00
|
|
|
%endif
|
2013-11-19 09:31:05 +00:00
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description
|
|
|
|
Provides support for parsing and emitting Yaml documents.
|
|
|
|
|
|
|
|
The package is broken down into two modules. "Data.Yaml" provides a high-level
|
2015-01-28 06:09:44 +00:00
|
|
|
interface based around the JSON datatypes provided by the 'aeson' package.
|
2013-11-19 09:31:05 +00:00
|
|
|
"Text.Libyaml" provides a lower-level, streaming interface. For most users,
|
|
|
|
"Data.Yaml" is recommended.
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
Summary: Haskell %{pkg_name} library development files
|
|
|
|
Provides: %{name}-static = %{version}-%{release}
|
|
|
|
Requires: ghc-compiler = %{ghc_version}
|
|
|
|
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
|
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
|
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
|
# Begin cabal-rpm deps:
|
|
|
|
Requires: pkgconfig(yaml-0.1)
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
%description devel
|
|
|
|
This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
|
|
|
|
2016-09-01 06:11:55 +00:00
|
|
|
%prep
|
2017-01-06 02:57:48 +00:00
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
2013-11-19 09:31:05 +00:00
|
|
|
cabal-tweak-flag system-libyaml True
|
|
|
|
# remove the bundled lib
|
|
|
|
rm -r libyaml
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
2017-01-06 02:57:48 +00:00
|
|
|
%ghc_lib_build
|
2013-11-19 09:31:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%install
|
2017-01-06 02:57:48 +00:00
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
%ghc_fix_rpath %{pkg_name}-%{version}
|
2013-11-19 09:31:05 +00:00
|
|
|
|
2015-01-28 06:09:44 +00:00
|
|
|
|
|
|
|
%check
|
2016-09-01 06:11:55 +00:00
|
|
|
%cabal_test
|
2013-11-19 09:31:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%postun devel
|
|
|
|
%ghc_pkg_recache
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
2017-01-06 02:57:48 +00:00
|
|
|
%doc ChangeLog.md README.md examples
|
2014-05-08 02:35:33 +00:00
|
|
|
%{_bindir}/json2yaml
|
2015-01-28 06:09:44 +00:00
|
|
|
%{_bindir}/yaml2json
|
2013-11-19 09:31:05 +00:00
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
2017-01-06 02:57:48 +00:00
|
|
|
* Fri Jan 6 2017 Jens Petersen <petersen@redhat.com> - 0.8.18.7-3
|
|
|
|
- unsubpackage enclosed-exceptions
|
|
|
|
|
2016-09-27 10:36:46 +00:00
|
|
|
* Tue Sep 27 2016 Jens Petersen <petersen@redhat.com> - 0.8.18.7-2
|
|
|
|
- bump
|
|
|
|
|
2016-09-27 07:42:29 +00:00
|
|
|
* Tue Sep 27 2016 Jens Petersen <petersen@redhat.com> - 0.8.18.7-1
|
|
|
|
- update to 0.8.18.7
|
|
|
|
|
2016-08-31 05:22:46 +00:00
|
|
|
* Wed Aug 31 2016 Jens Petersen <petersen@redhat.com> - 0.8.18.1-1
|
|
|
|
- update to 0.8.18.1
|
2016-09-01 06:11:55 +00:00
|
|
|
- subpackage enclosed-exceptions dep
|
2016-08-31 05:22:46 +00:00
|
|
|
|
2016-02-03 21:50:02 +00:00
|
|
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.10-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
|
|
2015-08-31 21:31:16 +00:00
|
|
|
* Mon Aug 31 2015 Peter Robinson <pbrobinson@fedoraproject.org> 0.8.10-3
|
|
|
|
- Rebuild (aarch64 vector hashes)
|
|
|
|
|
2015-06-17 08:07:28 +00:00
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.10-2
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
2015-03-03 16:02:03 +00:00
|
|
|
* Wed Mar 4 2015 Jens Petersen <petersen@fedoraproject.org> - 0.8.10-1
|
|
|
|
- update to 0.8.10
|
|
|
|
|
2015-01-28 06:09:44 +00:00
|
|
|
* Wed Jan 28 2015 Jens Petersen <petersen@redhat.com> - 0.8.8.2-5
|
|
|
|
- cblrpm refresh
|
|
|
|
|
2014-08-16 16:13:54 +00:00
|
|
|
* Sat Aug 16 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8.2-4
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
|
|
2014-06-07 15:31:22 +00:00
|
|
|
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.8.8.2-3
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
|
|
2014-05-26 18:46:17 +00:00
|
|
|
* Mon May 26 2014 Adam Williamson <awilliam@redhat.com> - 0.8.8.2-2
|
|
|
|
- rebuild for new ghc-scientific
|
|
|
|
|
2014-05-02 03:49:32 +00:00
|
|
|
* Fri May 02 2014 Jens Petersen <petersen@redhat.com> - 0.8.8.2-1
|
|
|
|
- update to 0.8.8.2
|
|
|
|
- no longer exclude arm
|
|
|
|
|
2014-01-22 10:08:25 +00:00
|
|
|
* Wed Jan 22 2014 Jens Petersen <petersen@redhat.com> - 0.8.5.3-1
|
|
|
|
- update to 0.8.5.3
|
|
|
|
|
2013-12-05 08:26:50 +00:00
|
|
|
* Thu Dec 5 2013 Ricky Elrod <codeblock@fedoraproject.org> - 0.8.5.2-1
|
|
|
|
- Latest upstream version.
|
|
|
|
|
2013-11-19 09:38:22 +00:00
|
|
|
* Tue Nov 19 2013 Jens Petersen <petersen@redhat.com> - 0.8.5-3
|
|
|
|
- run chrpath on yaml2json (#1008787)
|
|
|
|
|
2013-11-19 09:31:05 +00:00
|
|
|
* Wed Oct 16 2013 Jens Petersen <petersen@redhat.com> - 0.8.5-2
|
|
|
|
- add static provides and pkgconfig requires to devel
|
|
|
|
|
|
|
|
* Tue Sep 17 2013 Jens Petersen <petersen@redhat.com> - 0.8.5-1
|
|
|
|
- build with system libyaml
|
|
|
|
- package yaml2json in devel subpackage
|
|
|
|
- exclude armv7hl because of conduit
|
|
|
|
|
|
|
|
* Tue Sep 17 2013 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.8.5-0
|
|
|
|
- spec file generated by cabal-rpm-0.8.3
|