diff --git a/.gitignore b/.gitignore index e69de29..ce5bb52 100644 --- a/.gitignore +++ b/.gitignore @@ -0,0 +1 @@ +/hxt-regex-xmlschema-9.2.0.3.tar.gz diff --git a/ghc-hxt-regex-xmlschema.spec b/ghc-hxt-regex-xmlschema.spec new file mode 100644 index 0000000..9dd2dcd --- /dev/null +++ b/ghc-hxt-regex-xmlschema.spec @@ -0,0 +1,173 @@ +# generated by cabal-rpm-2.0.6 +# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/ + +%global pkg_name hxt-regex-xmlschema +%global pkgver %{pkg_name}-%{version} + +%bcond_with tests + +Name: ghc-%{pkg_name} +Version: 9.2.0.3 +Release: 14%{?dist} +Summary: A regular expression library for W3C XML Schema regular expressions + +License: MIT +Url: https://hackage.haskell.org/package/%{pkg_name} +# Begin cabal-rpm sources: +Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz +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-rpm-macros +BuildRequires: ghc-base-prof +BuildRequires: ghc-bytestring-prof +BuildRequires: ghc-hxt-charproperties-prof +BuildRequires: ghc-parsec-prof +BuildRequires: ghc-text-prof +%if %{with tests} +BuildRequires: ghc-HUnit-devel +%endif +# End cabal-rpm deps + +%description +This library supports full W3C XML Schema regular expressions inclusive all +Unicode character sets and blocks. The complete grammar can be found under +. It is implemented by the +technique of derivations of regular expressions. + +The W3C syntax is extended to support not only union of regular sets, but also +intersection, set difference, exor. Matching of subexpressions is also +supported. + +The library can be used for constricting lightweight scanners and tokenizers. +It is a standalone library, no external regex libraries are used. + +Extensions in 9.2: The library does nor only support String's, but also +ByteString's and Text in strict and lazy variants. + + +%package devel +Summary: Haskell %{pkg_name} library development files +Provides: %{name}-static = %{version}-%{release} +Provides: %{name}-static%{?_isa} = %{version}-%{release} +%if %{defined ghc_version} +Requires: ghc-compiler = %{ghc_version} +%endif +Requires: %{name}%{?_isa} = %{version}-%{release} + +%description devel +This package provides the Haskell %{pkg_name} library development +files. + + +%if %{with haddock} +%package doc +Summary: Haskell %{pkg_name} library documentation +BuildArch: noarch + +%description doc +This package provides the Haskell %{pkg_name} library +documentation. +%endif + + +%if %{with ghc_prof} +%package prof +Summary: Haskell %{pkg_name} profiling library +Requires: %{name}-devel%{?_isa} = %{version}-%{release} +Supplements: (%{name}-devel and ghc-prof) + +%description prof +This package provides the Haskell %{pkg_name} profiling library. +%endif + + +%prep +# Begin cabal-rpm setup: +%setup -q -n %{pkgver} +cp -bp %{SOURCE1} %{pkg_name}.cabal +# End cabal-rpm setup + + +%build +# Begin cabal-rpm build: +%ghc_lib_build +# End cabal-rpm build + + +%install +# Begin cabal-rpm install +%ghc_lib_install +# End cabal-rpm install + + +%check +%cabal_test + + +%files -f %{name}.files +# Begin cabal-rpm files: +%license LICENSE +# End cabal-rpm files + + +%files devel -f %{name}-devel.files +%doc examples + + +%if %{with haddock} +%files doc -f %{name}-doc.files +%license LICENSE +%endif + + +%if %{with ghc_prof} +%files prof -f %{name}-prof.files +%endif + + +%changelog +* Mon Jul 27 2020 Fedora Release Engineering - 9.2.0.3-14 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_33_Mass_Rebuild + +* Fri Jul 17 2020 Jens Petersen - 9.2.0.3-13 +- refresh to cabal-rpm-2.0.6 + +* Wed Feb 19 2020 Jens Petersen - 9.2.0.3-12 +- refresh to cabal-rpm-2.0.2 + +* Tue Jan 28 2020 Fedora Release Engineering - 9.2.0.3-11 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_32_Mass_Rebuild + +* Fri Aug 02 2019 Jens Petersen - 9.2.0.3-10 +- add doc and prof subpackages (cabal-rpm-1.0.0) + +* Thu Jul 25 2019 Fedora Release Engineering - 9.2.0.3-9 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_31_Mass_Rebuild + +* Sun Feb 17 2019 Jens Petersen - 9.2.0.3-8 +- refresh to cabal-rpm-0.13 + +* Thu Jan 31 2019 Fedora Release Engineering - 9.2.0.3-7 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild + +* Sat Jul 28 2018 Jens Petersen - 9.2.0.3-6 +- rebuild + +* Fri Jul 13 2018 Fedora Release Engineering - 9.2.0.3-5 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_29_Mass_Rebuild + +* Wed Feb 07 2018 Fedora Release Engineering - 9.2.0.3-4 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild + +* Fri Jan 26 2018 Jens Petersen - 9.2.0.3-3 +- rebuild + +* Wed Oct 4 2017 Jens Petersen - 9.2.0.3-2 +- disable tests due to hanging + https://github.com/UweSchmidt/hxt/issues/72 + +* Sat Sep 16 2017 Fedora Haskell SIG - 9.2.0.3-1 +- spec file generated by cabal-rpm-0.11.2 diff --git a/hxt-regex-xmlschema-9.2.0.3.cabal b/hxt-regex-xmlschema-9.2.0.3.cabal new file mode 100644 index 0000000..1973b7a --- /dev/null +++ b/hxt-regex-xmlschema-9.2.0.3.cabal @@ -0,0 +1,116 @@ +Name: hxt-regex-xmlschema +Version: 9.2.0.3 +x-revision: 1 +Synopsis: A regular expression library for W3C XML Schema regular expressions +Description: This library supports full W3C XML Schema regular expressions + inclusive all Unicode character sets and blocks. + The complete grammar can be found under . + It is implemented by the technique of derivations of regular expressions. + . + The W3C syntax is extended to support not only union of regular sets, + but also intersection, set difference, exor. + Matching of subexpressions is also supported. + . + The library can be used for constricting lightweight scanners and tokenizers. + It is a standalone library, no external regex libraries are used. + . + Extensions in 9.2: The library does nor only support String's, but also + ByteString's and Text in strict and lazy variants +License: MIT +License-file: LICENSE +Author: Uwe Schmidt +Maintainer: Uwe Schmidt +Copyright: Copyright (c) 2010- Uwe Schmidt +Stability: stable +Category: Text +Homepage: http://www.haskell.org/haskellwiki/Regular_expressions_for_XML_Schema +Build-type: Simple +Cabal-version: >=1.10 + +extra-source-files: + examples/colorizeProgs/ColorizeSourceCode.hs + examples/colorizeProgs/Makefile + examples/performance/REtest.hs + examples/performance/Makefile + examples/RegexXMLSchema/Makefile + examples/RegexXMLSchema/REtest.hs + +flag profile + description: turn profiling on + default: False + +Library + Exposed-modules: + Text.Regex.Glob.String + Text.Regex.Glob.Generic + Text.Regex.Glob.Generic.RegexParser + Text.Regex.XMLSchema.String + Text.Regex.XMLSchema.Generic + Text.Regex.XMLSchema.Generic.Matching + Text.Regex.XMLSchema.Generic.RegexParser + Text.Regex.XMLSchema.Generic.Regex + Text.Regex.XMLSchema.Generic.StringLike + + hs-source-dirs: src + + default-language: Haskell2010 + + ghc-options: -Wall -fwarn-tabs -funbox-strict-fields + + if flag(profile) + ghc-prof-options: -caf-all + + build-depends: base >= 4.5 && < 5 + , bytestring >= 0.10 + , hxt-charproperties >= 9 && < 10 + , parsec >= 2.1 && < 4 + , text >= 0.10 + +test-suite SimpleMatch + hs-source-dirs: test + main-is: SimpleTest.hs + type: exitcode-stdio-1.0 + default-language: Haskell2010 + ghc-options: -Wall + + build-depends: base + , bytestring + , hxt-regex-xmlschema + , text + , HUnit + +test-suite Date + hs-source-dirs: test + main-is: Date.hs + type: exitcode-stdio-1.0 + default-language: Haskell2010 + ghc-options: -Wall + + build-depends: base + , bytestring + , hxt-regex-xmlschema + , parsec >= 2 + , text + , HUnit + +Benchmark Benchmark + hs-source-dirs: test + main-is: Benchmark.hs + type: exitcode-stdio-1.0 + + default-language: Haskell2010 + + ghc-options: -Wall -O2 + + build-depends: base + , bytestring + , criterion >= 1 + , deepseq >= 1.2 + , hxt-regex-xmlschema + , parsec >= 2 + , text + +Source-Repository head + Type: git + Location: git://github.com/UweSchmidt/hxt.git + diff --git a/sources b/sources new file mode 100644 index 0000000..23903f8 --- /dev/null +++ b/sources @@ -0,0 +1 @@ +SHA512 (hxt-regex-xmlschema-9.2.0.3.tar.gz) = 707ad7a4b5c32785fd89131279dd89a871f134a26ce1f98fd4ac8fec196c8960c2d39d18674967379b40508748fca3a34b9289500173075c54c1d6726191bbd8