subpackage enclosed-exceptions dep
This commit is contained in:
parent
ad78c0b970
commit
c94734a61e
1
.gitignore
vendored
1
.gitignore
vendored
@ -4,3 +4,4 @@
|
|||||||
/yaml-0.8.8.2.tar.gz
|
/yaml-0.8.8.2.tar.gz
|
||||||
/yaml-0.8.10.tar.gz
|
/yaml-0.8.10.tar.gz
|
||||||
/yaml-0.8.18.1.tar.gz
|
/yaml-0.8.18.1.tar.gz
|
||||||
|
/enclosed-exceptions-1.0.2.tar.gz
|
||||||
|
@ -1,6 +1,8 @@
|
|||||||
|
# generated by cabal-rpm-0.10.1
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
%global pkg_name yaml
|
%global pkg_name yaml
|
||||||
|
%global subpkgver enclosed-exceptions-1.0.2
|
||||||
|
|
||||||
%bcond_with tests
|
%bcond_with tests
|
||||||
|
|
||||||
@ -12,6 +14,7 @@ Summary: Support for parsing and rendering YAML documents
|
|||||||
License: BSD
|
License: BSD
|
||||||
Url: https://hackage.haskell.org/package/%{pkg_name}
|
Url: https://hackage.haskell.org/package/%{pkg_name}
|
||||||
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz
|
||||||
|
Source1: http://hackage.haskell.org/package/%{subpkgver}/%{subpkgver}.tar.gz
|
||||||
|
|
||||||
BuildRequires: ghc-Cabal-devel
|
BuildRequires: ghc-Cabal-devel
|
||||||
BuildRequires: ghc-rpm-macros
|
BuildRequires: ghc-rpm-macros
|
||||||
@ -23,7 +26,7 @@ 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-directory-devel
|
||||||
BuildRequires: ghc-enclosed-exceptions-devel
|
#BuildRequires: ghc-enclosed-exceptions-devel
|
||||||
BuildRequires: ghc-filepath-devel
|
BuildRequires: ghc-filepath-devel
|
||||||
BuildRequires: ghc-resourcet-devel
|
BuildRequires: ghc-resourcet-devel
|
||||||
BuildRequires: ghc-scientific-devel
|
BuildRequires: ghc-scientific-devel
|
||||||
@ -66,28 +69,35 @@ Requires: pkgconfig(yaml-0.1)
|
|||||||
This package provides the Haskell %{pkg_name} library development files.
|
This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%prep
|
%global main_version %{version}
|
||||||
%setup -q -n %{pkg_name}-%{version}
|
|
||||||
|
|
||||||
|
%if %{defined ghclibdir}
|
||||||
|
%ghc_lib_subpackage %{subpkgver}
|
||||||
|
%endif
|
||||||
|
|
||||||
|
%global version %{main_version}
|
||||||
|
|
||||||
|
|
||||||
|
%prep
|
||||||
|
%setup -q -c -n %{pkg_name}-%{version} -a1
|
||||||
|
cd %{pkg_name}-%{version}
|
||||||
cabal-tweak-flag system-libyaml True
|
cabal-tweak-flag system-libyaml True
|
||||||
# remove the bundled lib
|
# remove the bundled lib
|
||||||
rm -r libyaml
|
rm -r libyaml
|
||||||
|
|
||||||
|
|
||||||
%build
|
%build
|
||||||
%ghc_lib_build
|
%ghc_libs_build %{subpkgver} %{pkg_name}-%{version}
|
||||||
|
|
||||||
|
|
||||||
%install
|
%install
|
||||||
%ghc_lib_install
|
%ghc_libs_install time-locale-compat-%{time_locale_compat_version} %{pkg_name}-%{version}
|
||||||
|
|
||||||
%ghc_fix_dynamic_rpath json2yaml yaml2json
|
%ghc_fix_dynamic_rpath json2yaml yaml2json
|
||||||
|
|
||||||
|
|
||||||
%check
|
%check
|
||||||
%if %{with tests}
|
%cabal_test
|
||||||
%cabal test
|
|
||||||
%endif
|
|
||||||
|
|
||||||
|
|
||||||
%post devel
|
%post devel
|
||||||
@ -99,11 +109,10 @@ rm -r libyaml
|
|||||||
|
|
||||||
|
|
||||||
%files -f %{name}.files
|
%files -f %{name}.files
|
||||||
%doc LICENSE
|
|
||||||
|
|
||||||
|
|
||||||
%files devel -f %{name}-devel.files
|
%files devel -f %{name}-devel.files
|
||||||
%doc README.md
|
%doc ChangeLog.md README.md examples
|
||||||
%{_bindir}/json2yaml
|
%{_bindir}/json2yaml
|
||||||
%{_bindir}/yaml2json
|
%{_bindir}/yaml2json
|
||||||
|
|
||||||
@ -111,6 +120,7 @@ rm -r libyaml
|
|||||||
%changelog
|
%changelog
|
||||||
* Wed Aug 31 2016 Jens Petersen <petersen@redhat.com> - 0.8.18.1-1
|
* Wed Aug 31 2016 Jens Petersen <petersen@redhat.com> - 0.8.18.1-1
|
||||||
- update to 0.8.18.1
|
- update to 0.8.18.1
|
||||||
|
- subpackage enclosed-exceptions dep
|
||||||
|
|
||||||
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.10-4
|
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.8.10-4
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
||||||
|
Loading…
Reference in New Issue
Block a user