Blame SPECS/ghc-hxt-regex-xmlschema.spec

f8275e
# generated by cabal-rpm-0.12.1
f8275e
# https://fedoraproject.org/wiki/Packaging:Haskell
f8275e
f8275e
%global pkg_name hxt-regex-xmlschema
f8275e
%global pkgver %{pkg_name}-%{version}
f8275e
f8275e
%bcond_with tests
f8275e
f8275e
Name:           ghc-%{pkg_name}
f8275e
Version:        9.2.0.3
f8275e
Release:        4%{?dist}
f8275e
Summary:        A regular expression library for W3C XML Schema regular expressions
f8275e
f8275e
License:        MIT
f8275e
Url:            https://hackage.haskell.org/package/%{pkg_name}
f8275e
Source0:        https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
f8275e
f8275e
BuildRequires:  ghc-Cabal-devel
f8275e
BuildRequires:  ghc-rpm-macros
f8275e
# Begin cabal-rpm deps:
f8275e
BuildRequires:  ghc-bytestring-devel
f8275e
BuildRequires:  ghc-hxt-charproperties-devel
f8275e
BuildRequires:  ghc-parsec-devel
f8275e
BuildRequires:  ghc-text-devel
f8275e
%if %{with tests}
f8275e
BuildRequires:  ghc-HUnit-devel
f8275e
%endif
f8275e
# End cabal-rpm deps
f8275e
f8275e
%description
f8275e
This library supports full W3C XML Schema regular expressions inclusive all
f8275e
Unicode character sets and blocks. The complete grammar can be found under
f8275e
<http://www.w3.org/TR/xmlschema11-2/#regexs>. It is implemented by the
f8275e
technique of derivations of regular expressions.
f8275e
f8275e
The W3C syntax is extended to support not only union of regular sets, but also
f8275e
intersection, set difference, exor. Matching of subexpressions is also
f8275e
supported.
f8275e
f8275e
The library can be used for constricting lightweight scanners and tokenizers.
f8275e
It is a standalone library, no external regex libraries are used.
f8275e
f8275e
Extensions in 9.2: The library does nor only support String's, but also
f8275e
ByteString's and Text in strict and lazy variants.
f8275e
f8275e
f8275e
%package devel
f8275e
Summary:        Haskell %{pkg_name} library development files
f8275e
Provides:       %{name}-static = %{version}-%{release}
f8275e
Provides:       %{name}-doc = %{version}-%{release}
f8275e
%if %{defined ghc_version}
f8275e
Requires:       ghc-compiler = %{ghc_version}
f8275e
Requires(post): ghc-compiler = %{ghc_version}
f8275e
Requires(postun): ghc-compiler = %{ghc_version}
f8275e
%endif
f8275e
Requires:       %{name}%{?_isa} = %{version}-%{release}
f8275e
f8275e
%description devel
f8275e
This package provides the Haskell %{pkg_name} library development
f8275e
files.
f8275e
f8275e
f8275e
%prep
f8275e
%setup -q -n %{pkgver}
f8275e
f8275e
f8275e
%build
f8275e
%ghc_lib_build
f8275e
f8275e
f8275e
%install
f8275e
%ghc_lib_install
f8275e
f8275e
f8275e
%check
f8275e
%cabal_test
f8275e
f8275e
f8275e
%post devel
f8275e
%ghc_pkg_recache
f8275e
f8275e
f8275e
%postun devel
f8275e
%ghc_pkg_recache
f8275e
f8275e
f8275e
%files -f %{name}.files
f8275e
%license LICENSE
f8275e
f8275e
f8275e
%files devel -f %{name}-devel.files
f8275e
%doc examples
f8275e
f8275e
f8275e
%changelog
f8275e
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 9.2.0.3-4
f8275e
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
f8275e
f8275e
* Fri Jan 26 2018 Jens Petersen <petersen@redhat.com> - 9.2.0.3-3
f8275e
- rebuild
f8275e
f8275e
* Wed Oct  4 2017 Jens Petersen <petersen@redhat.com> - 9.2.0.3-2
f8275e
- disable tests due to hanging
f8275e
  https://github.com/UweSchmidt/hxt/issues/72
f8275e
f8275e
* Sat Sep 16 2017 Fedora Haskell SIG <haskell@lists.fedoraproject.org> - 9.2.0.3-1
f8275e
- spec file generated by cabal-rpm-0.11.2