refresh to cabal-rpm-0.13

This commit is contained in:
Jens Petersen 2019-02-17 22:44:28 +08:00
parent b8fef7bf17
commit 7b15a54073
2 changed files with 79 additions and 66 deletions

View File

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

View File

@ -1,4 +1,4 @@
# generated by cabal-rpm-0.12.5 # generated by cabal-rpm-0.13
# https://fedoraproject.org/wiki/Packaging:Haskell # https://fedoraproject.org/wiki/Packaging:Haskell
%global pkg_name echo %global pkg_name echo
@ -6,17 +6,19 @@
Name: ghc-%{pkg_name} Name: ghc-%{pkg_name}
Version: 0.1.3 Version: 0.1.3
Release: 6%{?dist} Release: 7%{?dist}
Summary: A cross-platform, cross-console way to handle echoing terminal input Summary: A cross-platform, cross-console way to handle echoing terminal input
License: BSD License: BSD
Url: https://hackage.haskell.org/package/%{pkg_name} Url: https://hackage.haskell.org/package/%{pkg_name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal Source1: https://hackage.haskell.org/package/%{pkgver}/%{pkg_name}.cabal#/%{pkgver}.cabal
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros BuildRequires: ghc-rpm-macros
# Begin cabal-rpm deps:
BuildRequires: ghc-process-devel BuildRequires: ghc-process-devel
# End cabal-rpm deps # End cabal-rpm deps
@ -49,16 +51,22 @@ This package provides the Haskell %{pkg_name} library development files.
%prep %prep
# Begin cabal-rpm setup:
%setup -q -n %{pkgver} %setup -q -n %{pkgver}
cp -p %{SOURCE1} %{pkg_name}.cabal cp -bp %{SOURCE1} %{pkg_name}.cabal
# End cabal-rpm setup
%build %build
# Begin cabal-rpm build:
%ghc_lib_build %ghc_lib_build
# End cabal-rpm build
%install %install
# Begin cabal-rpm install
%ghc_lib_install %ghc_lib_install
# End cabal-rpm install
%post devel %post devel
@ -70,7 +78,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%files -f %{name}.files %files -f %{name}.files
# Begin cabal-rpm files:
%license LICENSE %license LICENSE
# End cabal-rpm files
%files devel -f %{name}-devel.files %files devel -f %{name}-devel.files
@ -78,6 +88,9 @@ cp -p %{SOURCE1} %{pkg_name}.cabal
%changelog %changelog
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.1.3-7
- refresh to cabal-rpm-0.13
* Sat Feb 16 2019 Jens Petersen <petersen@redhat.com> - 0.1.3-6 * Sat Feb 16 2019 Jens Petersen <petersen@redhat.com> - 0.1.3-6
- use revised .cabal file - use revised .cabal file