subpackage resolv dep

This commit is contained in:
Jens Petersen 2019-02-25 12:43:44 +08:00
parent de1e9376a6
commit 311a78fe22
3 changed files with 26 additions and 9 deletions

1
.gitignore vendored
View File

@ -17,3 +17,4 @@ cabal-install-0.8.2.tar.gz
/cabal-install-2.0.0.1.tar.gz
/echo-0.1.3.tar.gz
/cabal-install-2.2.0.0.tar.gz
/resolv-0.1.1.2.tar.gz

View File

@ -1,11 +1,14 @@
# generated by cabal-rpm-0.13
# https://fedoraproject.org/wiki/Packaging:Haskell
# needs tasty-hunit >=0.10
%bcond_with tests
%global resolv resolv-0.1.1.2
%global subpkgs %{resolv}
%bcond_without tests
Name: cabal-install
Version: 2.2.0.0
# can only be reset when all subpkgs bumped
Release: 1%{?dist}
Summary: The command-line interface for Cabal and Hackage
@ -13,14 +16,16 @@ License: BSD
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
Source1: https://hackage.haskell.org/package/%{name}-%{version}/%{name}.cabal#/%{name}-%{version}.cabal
Source1: https://hackage.haskell.org/package/%{resolv}/%{resolv}.tar.gz
Source2: https://hackage.haskell.org/package/%{name}-%{version}/%{name}.cabal#/%{name}-%{version}.cabal
# End cabal-rpm sources
Source10: cabal-install.sh
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-rpm-macros-extra
BuildRequires: chrpath
BuildRequires: ghc-HTTP-devel
BuildRequires: ghc-array-devel
BuildRequires: ghc-async-devel
@ -42,7 +47,7 @@ BuildRequires: ghc-network-uri-devel
BuildRequires: ghc-pretty-devel
BuildRequires: ghc-process-devel
BuildRequires: ghc-random-devel
BuildRequires: ghc-resolv-devel
#BuildRequires: ghc-resolv-devel
BuildRequires: ghc-stm-devel
BuildRequires: ghc-tar-devel
BuildRequires: ghc-time-devel
@ -76,26 +81,35 @@ The 'cabal' command-line program simplifies the process of managing Haskell
software by automating the fetching, configuration, compilation and
installation of Haskell libraries and programs.
This package only provides an executable and cannot be used as a library
(ignore the module listing below.).
%global main_version %{version}
%if %{defined ghclibdir}
%ghc_lib_subpackage %{resolv}
%endif
%global version %{main_version}
%prep
# Begin cabal-rpm setup:
%setup -q
cp -bp %{SOURCE1} %{name}.cabal
%setup -q -a1
cp -bp %{SOURCE2} %{name}.cabal
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_libs_build %{subpkgs}
%ghc_bin_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_libs_install %{subpkgs}
%ghc_bin_install
%ghc_fix_rpath %{name}-%{version}
# End cabal-rpm install
mkdir -p $RPM_BUILD_ROOT%{_sysconfdir}/bash_completion.d
@ -123,6 +137,7 @@ install -pm 644 %{SOURCE10} $RPM_BUILD_ROOT%{_sysconfdir}/profile.d
%changelog
* Thu Feb 21 2019 Jens Petersen <petersen@redhat.com> - 2.2.0.0-1
- update to 2.2.0.0
- subpackage resolv dep
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 2.0.0.1-12
- refresh to cabal-rpm-0.13

View File

@ -1 +1,2 @@
SHA512 (cabal-install-2.2.0.0.tar.gz) = 1b8c31dee09332808bc727322e1e0ca6aaa8c818c5172f412a9d56e8474c93cc814cab6d0cb776a5d0bb94155c023a098872fb91329ff6377278f891f06686f2
SHA512 (resolv-0.1.1.2.tar.gz) = 2c2f2fd85f2567e00800ea050dee9897a61e9c1f771d7ae893b63cf5375f88feaa1307537545ae330db92432057f390df5251662530f0c433164898e458a885f