From 82f0ea1663e209d34e47c97d207e28f9b2ae7e5b3164c420911b5892a3080f6c Mon Sep 17 00:00:00 2001 From: Peter Simons Date: Tue, 28 Mar 2017 10:56:59 +0000 Subject: [PATCH] synchronize with lts:8 from configuration b099e9d7d96777a669f3ad2cb719ba73f50b4189 OBS-URL: https://build.opensuse.org/package/show/devel:languages:haskell/ghc-echo?expand=0&rev=2 --- echo.cabal | 62 ++++++++++++++++++++++++++++++++++++++++++++++++ ghc-echo.changes | 5 ++++ ghc-echo.spec | 2 ++ 3 files changed, 69 insertions(+) create mode 100644 echo.cabal diff --git a/echo.cabal b/echo.cabal new file mode 100644 index 0000000..2b15374 --- /dev/null +++ b/echo.cabal @@ -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 +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 diff --git a/ghc-echo.changes b/ghc-echo.changes index ce30c85..949d4fd 100644 --- a/ghc-echo.changes +++ b/ghc-echo.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Mar 22 09:12:57 UTC 2017 - psimons@suse.com + +- Update to version 0.1.3 revision 1 with cabal2obs. + ------------------------------------------------------------------- Sun Feb 12 10:09:28 UTC 2017 - psimons@suse.com diff --git a/ghc-echo.spec b/ghc-echo.spec index 7e361ef..90393c3 100644 --- a/ghc-echo.spec +++ b/ghc-echo.spec @@ -25,6 +25,7 @@ License: BSD-3-Clause Group: Development/Languages/Other Url: https://hackage.haskell.org/package/%{pkg_name} Source0: https://hackage.haskell.org/package/%{pkg_name}-%{version}/%{pkg_name}-%{version}.tar.gz +Source1: https://hackage.haskell.org/package/%{pkg_name}-%{version}/revision/1.cabal#/%{pkg_name}.cabal BuildRequires: ghc-Cabal-devel BuildRequires: ghc-process-devel BuildRequires: ghc-rpm-macros @@ -55,6 +56,7 @@ This package provides the Haskell %{pkg_name} library development files. %prep %setup -q -n %{pkg_name}-%{version} +cp -p %{SOURCE1} %{pkg_name}.cabal %build %ghc_lib_build