|
|
|
@ -3,8 +3,8 @@
|
|
|
|
|
%global pkg_name cmdargs
|
|
|
|
|
|
|
|
|
|
Name: ghc-%{pkg_name}
|
|
|
|
|
Version: 0.10.13
|
|
|
|
|
Release: 1%{?dist}
|
|
|
|
|
Version: 0.10.12
|
|
|
|
|
Release: 2%{?dist}
|
|
|
|
|
Summary: Command line argument processing
|
|
|
|
|
|
|
|
|
|
License: BSD
|
|
|
|
@ -18,28 +18,10 @@ BuildRequires: ghc-filepath-devel
|
|
|
|
|
BuildRequires: ghc-process-devel
|
|
|
|
|
BuildRequires: ghc-template-haskell-devel
|
|
|
|
|
BuildRequires: ghc-transformers-devel
|
|
|
|
|
ExclusiveArch: %{ghc_arches_with_ghci}
|
|
|
|
|
# End cabal-rpm deps
|
|
|
|
|
|
|
|
|
|
%description
|
|
|
|
|
This library provides an easy way to define command line parsers. Most users
|
|
|
|
|
will want to use the "System.Console.CmdArgs.Implicit" module, whose
|
|
|
|
|
documentation contains an example.
|
|
|
|
|
|
|
|
|
|
* "System.Console.CmdArgs.Explicit" provides a way to write command line
|
|
|
|
|
parsers for both single mode programs (most programs) and multiple mode
|
|
|
|
|
programs (e.g. darcs or cabal). Parsers are defined by constructing a data
|
|
|
|
|
structure.
|
|
|
|
|
|
|
|
|
|
* "System.Console.CmdArgs.Implicit" provides a way to concisely define command
|
|
|
|
|
line parsers, up to three times shorter than getopt. These parsers are
|
|
|
|
|
translated into the Explicit data type.
|
|
|
|
|
|
|
|
|
|
* "System.Console.CmdArgs.GetOpt" provides a wrapper allowing compatiblity with
|
|
|
|
|
existing getopt parsers, mapping to the Explicit data type.
|
|
|
|
|
|
|
|
|
|
For a general reference on what command line flags are commonly used, see
|
|
|
|
|
<http://www.faqs.org/docs/artu/ch10s05.html>.
|
|
|
|
|
This library provides an easy way to define command line parsers.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%package devel
|
|
|
|
@ -57,6 +39,10 @@ This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
%prep
|
|
|
|
|
%setup -q -n %{pkg_name}-%{version}
|
|
|
|
|
|
|
|
|
|
%ifnarch %{ghc_arches_with_ghci}
|
|
|
|
|
cabal-tweak-flag quotation False
|
|
|
|
|
%endif
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%build
|
|
|
|
|
%ghc_lib_build
|
|
|
|
@ -65,8 +51,6 @@ This package provides the Haskell %{pkg_name} library development files.
|
|
|
|
|
%install
|
|
|
|
|
%ghc_lib_install
|
|
|
|
|
|
|
|
|
|
rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%post devel
|
|
|
|
|
%ghc_pkg_recache
|
|
|
|
@ -77,7 +61,7 @@ rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files -f %{name}.files
|
|
|
|
|
%license LICENSE
|
|
|
|
|
%doc LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%files devel -f %{name}-devel.files
|
|
|
|
@ -85,10 +69,6 @@ rm %{buildroot}%{ghc_pkgdocdir}/LICENSE
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
%changelog
|
|
|
|
|
* Sat Aug 08 2015 Ben Boeckel <mathstuf@gmail.com> - 0.10.13-1
|
|
|
|
|
- update to 0.10.13
|
|
|
|
|
- use license macro
|
|
|
|
|
|
|
|
|
|
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.10.12-2
|
|
|
|
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
|
|
|
|
|
|
|