|
|
3f3395 |
# generated by cabal-rpm-0.12.1
|
|
|
3f3395 |
# https://fedoraproject.org/wiki/Packaging:Haskell
|
|
|
3f3395 |
|
|
|
3f3395 |
%global pkg_name echo
|
|
|
3f3395 |
%global pkgver %{pkg_name}-%{version}
|
|
|
3f3395 |
|
|
|
3f3395 |
Name: ghc-%{pkg_name}
|
|
|
3f3395 |
Version: 0.1.3
|
|
|
3f3395 |
Release: 3%{?dist}
|
|
|
3f3395 |
Summary: A cross-platform, cross-console way to handle echoing terminal input
|
|
|
3f3395 |
|
|
|
3f3395 |
License: BSD
|
|
|
3f3395 |
Url: https://hackage.haskell.org/package/%{pkg_name}
|
|
|
3f3395 |
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
|
|
|
3f3395 |
|
|
|
3f3395 |
BuildRequires: ghc-Cabal-devel
|
|
|
3f3395 |
BuildRequires: ghc-rpm-macros
|
|
|
3f3395 |
# Begin cabal-rpm deps:
|
|
|
3f3395 |
BuildRequires: ghc-process-devel
|
|
|
3f3395 |
# End cabal-rpm deps
|
|
|
3f3395 |
|
|
|
3f3395 |
%description
|
|
|
3f3395 |
The 'base' library exposes the 'hGetEcho' and 'hSetEcho' functions for querying
|
|
|
3f3395 |
and setting echo status, but unfortunately, neither function works with MinTTY
|
|
|
3f3395 |
consoles on Windows. This is a serious issue, since 'hGetEcho' and 'hSetEcho'
|
|
|
3f3395 |
are often used to disable input echoing when a program prompts for a password,
|
|
|
3f3395 |
so many programs will reveal your password as you type it on MinTTY!
|
|
|
3f3395 |
|
|
|
3f3395 |
This library provides an alternative interface which works with both MinTTY and
|
|
|
3f3395 |
other consoles. An example is included which demonstrates how one might prompt
|
|
|
3f3395 |
for a password using this library. To build it, make sure to configure with the
|
|
|
3f3395 |
'-fexample' flag.
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%package devel
|
|
|
3f3395 |
Summary: Haskell %{pkg_name} library development files
|
|
|
3f3395 |
Provides: %{name}-static = %{version}-%{release}
|
|
|
3f3395 |
Provides: %{name}-doc = %{version}-%{release}
|
|
|
3f3395 |
%if %{defined ghc_version}
|
|
|
3f3395 |
Requires: ghc-compiler = %{ghc_version}
|
|
|
3f3395 |
Requires(post): ghc-compiler = %{ghc_version}
|
|
|
3f3395 |
Requires(postun): ghc-compiler = %{ghc_version}
|
|
|
3f3395 |
%endif
|
|
|
3f3395 |
Requires: %{name}%{?_isa} = %{version}-%{release}
|
|
|
3f3395 |
|
|
|
3f3395 |
%description devel
|
|
|
3f3395 |
This package provides the Haskell %{pkg_name} library development files.
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%prep
|
|
|
3f3395 |
%setup -q -n %{pkgver}
|
|
|
3f3395 |
cabal-tweak-dep-ver process '< 1.5' '< 1.7'
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%build
|
|
|
3f3395 |
%ghc_lib_build
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%install
|
|
|
3f3395 |
%ghc_lib_install
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%post devel
|
|
|
3f3395 |
%ghc_pkg_recache
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%postun devel
|
|
|
3f3395 |
%ghc_pkg_recache
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%files -f %{name}.files
|
|
|
3f3395 |
%license LICENSE
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%files devel -f %{name}-devel.files
|
|
|
3f3395 |
%doc CHANGELOG.md README.md example
|
|
|
3f3395 |
|
|
|
3f3395 |
|
|
|
3f3395 |
%changelog
|
|
|
3f3395 |
* Fri Feb 23 2018 Jens Petersen <petersen@redhat.com> - 0.1.3-3
|
|
|
3f3395 |
- bump release over over cabal-install
|
|
|
3f3395 |
- bump process upperbound
|
|
|
3f3395 |
|
|
|
3f3395 |
* Sat Jan 27 2018 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 0.1.3-1
|
|
|
3f3395 |
- spec file generated by cabal-rpm-0.12
|