Пакет ztail: Specfile

%define hsc_name ghc
%define hsc_version %ghc_version
%define hsc_namever %hsc_name
%define h_pkg_name ztail
%define f_pkg_name ztail
%define pkg_libdir %_libdir/%hsc_name-%hsc_version/lib/%h_pkg_name-%version

Name: ztail
Version: 1.0.2
Release: alt4
License: BSD3
Packager: Denis Smirnov <mithraen@altlinux.ru>
Group: Development/Haskell
URL: http://hackage.haskell.org/package/ztail
Source: %name-%version.tar
Summary: Multi-file, colored, filtered log tailer.

Patch: %name-%version-%release.patch

# Automatically added by buildreq on Tue Dec 25 2012 (-bb)
# optimized out: elfutils ghc7.6.1 ghc7.6.1-common ghc7.6.1-mtl ghc7.6.1-regex-base ghc7.6.1-regex-posix ghc7.6.1-transformers libgmp-devel pkg-config python-base
BuildRequires: ghc7.6.1-alex ghc7.6.1-c2hs ghc7.6.1-cpphs ghc7.6.1-happy ghc7.6.1-hscolour ghc7.6.1-regex-compat

%description
An even more improved version of xtail/tail -f, including inotify support,
full regex-based filtering, substitution, and colorization.

%prep
%setup
%patch -p1

%build
%hs_configure2
%hs_build

%install
%hs_setup copy --destdir=%buildroot

%files
%_bindir/ztail

%changelog
* Thu Feb 28 2019 Ivan Zakharyaschev <imz@altlinux.org> 1.0.2-alt4
- fix build with rpm-build-haskell >= 1.3-alt1

* Fri Jan 25 2013 Denis Smirnov <mithraen@altlinux.ru> 1.0.2-alt3
- fix Url tag

* Tue Dec 25 2012 Denis Smirnov <mithraen@altlinux.ru> 1.0.2-alt2
- rebuild with ghc 7.6.1

* Mon Jul 23 2012 Denis Smirnov <mithraen@altlinux.ru> 1.0.2-alt1
- 1.0.2

* Fri Mar 23 2012 Denis Smirnov <mithraen@altlinux.ru> 1.0.1-alt2
- fix build with new ghc + hinotify

* Tue Mar 08 2011 Denis Smirnov <mithraen@altlinux.ru> 1.0.1-alt1
- 1.0.1

* Sun Oct 24 2010 Denis Smirnov <mithraen@altlinux.ru> 1.0-alt3
- rebuild

* Tue Oct 19 2010 Denis Smirnov <mithraen@altlinux.ru> 1.0-alt2
- rebuild

* Fri Sep 10 2010 Denis Smirnov <mithraen@altlinux.ru> 1.0-alt1
- Spec created by cabal2rpm 0.20_08