use revised .cabal

This commit is contained in:
Jens Petersen 2019-02-16 12:40:08 +08:00
parent 98b73ba79e
commit b8fef7bf17
2 changed files with 69 additions and 3 deletions

62
echo-0.1.3.cabal Normal file
View File

@ -0,0 +1,62 @@
name: echo
version: 0.1.3
x-revision: 1
synopsis: A cross-platform, cross-console way to handle echoing terminal input
description: The @base@ library exposes the @hGetEcho@ and @hSetEcho@ functions
for querying and setting echo status, but unfortunately, neither
function works with MinTTY consoles on Windows. This is a serious
issue, since @hGetEcho@ and @hSetEcho@ are often used to disable
input echoing when a program prompts for a password, so many
programs will reveal your password as you type it on MinTTY!
.
This library provides an alternative interface which works
with both MinTTY and other consoles. An example is included
which demonstrates how one might prompt for a password using
this library. To build it, make sure to configure with the
@-fexample@ flag.
homepage: https://github.com/RyanGlScott/echo
bug-reports: https://github.com/RyanGlScott/echo/issues
license: BSD3
license-file: LICENSE
author: Ryan Scott
maintainer: Ryan Scott <ryan.gl.scott@gmail.com>
stability: Provisional
copyright: (C) 2016-2017 Ryan Scott
category: System
build-type: Simple
extra-source-files: CHANGELOG.md, README.md
cabal-version: >=1.10
source-repository head
type: git
location: https://github.com/RyanGlScott/echo
flag example
description: Build the bundled example program.
default: False
library
exposed-modules: System.IO.Echo
System.IO.Echo.Internal
build-depends: base >= 4.3 && < 5
, process >= 1.0.1.1 && < 1.7
if os(windows)
cpp-options: "-DWINDOWS"
build-depends: mintty >= 0.1 && < 0.2
, Win32 >= 2 && < 3
hs-source-dirs: src
default-language: Haskell2010
ghc-options: -Wall
executable password
if !flag(example)
buildable: False
main-is: Password.hs
build-depends: base >= 4.3 && < 5
, echo
hs-source-dirs: example
default-language: Haskell2010
ghc-options: -Wall

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.1
# generated by cabal-rpm-0.12.5
# https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name echo
@ -6,12 +6,13 @@
Name: ghc-%{pkg_name}
Version: 0.1.3
Release: 5%{?dist}
Release: 6%{?dist}
Summary: A cross-platform, cross-console way to handle echoing terminal input
License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name}
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
@ -49,7 +50,7 @@ This package provides the Haskell %{pkg_name} library development files.
%prep
%setup -q -n %{pkgver}
cabal-tweak-dep-ver process '< 1.5' '< 1.7'
cp -p %{SOURCE1} %{pkg_name}.cabal
%build
@ -77,6 +78,9 @@ cabal-tweak-dep-ver process '< 1.5' '< 1.7'
%changelog
* Sat Feb 16 2019 Jens Petersen <petersen@redhat.com> - 0.1.3-6
- use revised .cabal file
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.1.3-5
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild