Пакет ghc7.6.1-hdbc-postgresql: Specfile

%define ghc_version 7.6.1
%define hsc_name ghc
%define hsc_version %ghc_version
%define hsc_namever %hsc_name%hsc_version
%define h_pkg_name HDBC-postgresql
%define f_pkg_name hdbc-postgresql
%define pkg_libdir %_libdir/%hsc_name-%hsc_version/lib/%h_pkg_name-%version

Name: %hsc_namever-%f_pkg_name
Version: 2.3.2.1
Release: alt3
License: BSD3
Packager: Denis Smirnov <mithraen@altlinux.ru>
Group: Development/Haskell
Url: http://github.com/hdbc/hdbc-postgresql
Source: %name-%version.tar
Patch: %name-%version-%release.patch
Summary: PostgreSQL driver for HDBC



# Automatically added by buildreq on Sat Dec 22 2012 (-bb)
# optimized out: elfutils ghc7.4.2-common ghc7.6.1 ghc7.6.1-common ghc7.6.1-convertible ghc7.6.1-mtl ghc7.6.1-text ghc7.6.1-transformers ghc7.6.1-utf8-string libgmp-devel libpq-devel pkg-config python-base rpm-build-haskell
BuildRequires: ghc7.6.1-cpphs ghc7.6.1-doc ghc7.6.1-hdbc ghc7.6.1-hscolour ghc7.6.1-parsec postgresql-devel

%description
This package provides a PostgreSQL driver for HDBC

%prep
%setup
%patch -p1

%build
%hs_configure2
%hs_build

%install
%hs_install
%hs_gen_filelist

%files -f %name-files.all

%changelog
* Thu Feb 28 2019 Ivan Zakharyaschev <imz@altlinux.org> 2.3.2.1-alt3
- https://github.com/hdbc/hdbc-postgresql/pull/47 :
  Starting from PostgreSQL 10.5, 9.6.10, 9.5.14, 9.4.19, 9.3.24,
  and 11 Beta 3 PostgreSQL comes with its own pgtypes.h as a part of
  the ecpg interface. This fix renames internal header to prevent
  name collision. (Thanks Maxim Mamontov <faust.madf@gmail.com>)

* Sat Dec 22 2012 Denis Smirnov <mithraen@altlinux.ru> 2.3.2.1-alt2
- rebuild

* Sat Dec 22 2012 Denis Smirnov <mithraen@altlinux.ru> 2.3.2.1-alt1
- Spec created by cabal2rpm 0.20_08