forked from pool/ghc-regex-base
Compare commits
79 Commits
Author | SHA256 | Date | |
---|---|---|---|
83ec199b1e | |||
38413ed3b2 | |||
27edb00d69 | |||
a0e2ee8fe9 | |||
b0abc39a01 | |||
18391d916a | |||
f2c0ab92a3 | |||
54273b3dd9 | |||
6f7899567b | |||
8b92e0a533 | |||
2aaa13239a | |||
64195e5a33 | |||
cc380837e6 | |||
ecfa124757 | |||
fbb3b9d7b9 | |||
7677da5518 | |||
509247e4aa | |||
b75efcc234 | |||
2ac9f08000 | |||
977a9e6ff7 | |||
e0d7532c38 | |||
07945f766f | |||
fcd1c0994e | |||
2442478afc | |||
78e1decafb | |||
e31f4f5f26 | |||
85f873dd48 | |||
69ace605f6 | |||
774382f270 | |||
22387d0af1 | |||
57c33e4e83 | |||
5af97b4d58 | |||
53c6223042 | |||
61121ff6a3 | |||
aa346ee7a5 | |||
c2847dbffd | |||
c79ba0cc0a | |||
adcaf5dabc | |||
9d7569e9cf | |||
3b5affae65 | |||
7de6f80ad4 | |||
77592f8269 | |||
af9d8d2689 | |||
2fa4828a5e | |||
57554a9928 | |||
c2de5248c7 | |||
f8bf661ff6 | |||
b7337a8704 | |||
1d8680af17 | |||
031a2791a4 | |||
469ebf4949 | |||
856ded41fe | |||
dfcb07f46d | |||
79735f8fd4 | |||
8fc0359d66 | |||
5221b7f675 | |||
264c56b41e | |||
00e30941d4 | |||
28c590c186 | |||
82766e5442 | |||
8934ba91d5 | |||
7efb9ab579 | |||
0c0f71d531 | |||
f019d3e419 | |||
f59f9a233c | |||
3d186291af | |||
b54a990072 | |||
|
1e3519296e | ||
|
76197064e6 | ||
|
f185f3df2b | ||
|
9bc1d28ec2 | ||
|
20261dcfff | ||
|
5d4d257b31 | ||
|
8cd5ff6526 | ||
|
5f692a1774 | ||
|
cf77eefad4 | ||
|
58fa2712fc | ||
|
baf0516e30 | ||
|
1cbdf18311 |
147
ghc-regex-base.changes
Normal file
147
ghc-regex-base.changes
Normal file
@@ -0,0 +1,147 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Sep 28 10:07:58 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update regex-base to version 0.94.0.2 revision 4.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jul 7 19:45:34 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update regex-base to version 0.94.0.2 revision 2.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Mar 30 17:08:03 UTC 2023 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Updated spec file to conform with ghc-rpm-macros-2.5.2.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 25 20:34:28 UTC 2022 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update regex-base to version 0.94.0.2 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Nov 16 19:52:26 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update regex-base to version 0.94.0.2.
|
||||
Upstream has edited the change log file since the last release in
|
||||
a non-trivial way, i.e. they did more than just add a new entry
|
||||
at the top. You can review the file at:
|
||||
http://hackage.haskell.org/package/regex-base-0.94.0.2/src/ChangeLog.md
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Aug 13 09:52:10 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update regex-base to version 0.94.0.1 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Feb 20 14:44:16 UTC 2021 - psimons@suse.com
|
||||
|
||||
- Update regex-base to version 0.94.0.1.
|
||||
## 0.94.0.1
|
||||
|
||||
- Workaround for `{-# LANGUAGE Haskell2010 #-}` parser regression introduced in GHC 9.0
|
||||
|
||||
- Optimization flag `-O2` has been removed
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 17 12:20:00 UTC 2020 - Ondřej Súkup <mimi.vx@gmail.com>
|
||||
|
||||
- disable %{ix86} build
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 31 09:34:33 UTC 2020 - psimons@suse.com
|
||||
|
||||
- Update regex-base to version 0.94.0.0 revision 1.
|
||||
Upstream has revised the Cabal build instructions on Hackage.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 18 10:45:50 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Replace %setup -q with the more modern %autosetup macro.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 16 11:14:30 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Re-generate file with latest version of spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu May 7 08:08:24 UTC 2020 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Update Cabal file to get more accurate dependency information.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Nov 8 16:14:32 UTC 2019 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Drop obsolete group attributes.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Sep 25 15:29:14 UTC 2019 - psimons@suse.com
|
||||
|
||||
- Update regex-base to version 0.94.0.0.
|
||||
Upstream added a new change log file in this release. With no
|
||||
previous version to compare against, the automatic updater cannot
|
||||
reliable determine the relevante entries for this release.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Oct 20 11:31:55 UTC 2018 - Peter Simons <psimons@suse.com>
|
||||
|
||||
- Use https URL to refer to bugs.opensuse.org.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 18 14:26:38 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Cosmetic: replace tabs with blanks, strip trailing white space,
|
||||
and update copyright headers with spec-cleaner.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed May 16 14:36:27 UTC 2018 - psimons@suse.com
|
||||
|
||||
- Prefer the new %license attribute over %doc.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Thu Aug 3 15:38:38 UTC 2017 - psimons@suse.com
|
||||
|
||||
- Updated with latest spec-cleaner version 0.9.8-8-geadfbbf.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jul 10 17:30:28 UTC 2016 - psimons@suse.com
|
||||
|
||||
- Update to version 0.93.2 revision 0 with cabal2obs.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Sep 2 09:56:38 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- regenerate spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Aug 23 00:19:11 UTC 2014 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- enable PowerPC builds
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Mon May 6 11:26:28 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- more transparent packaging (fewer macros)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 8 17:16:55 UTC 2013 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- expand macro in name tag to help source validator
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Nov 17 14:39:39 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- make service localonly for Factory submission
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jun 5 13:33:52 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- use cabal2spec 0.25.5 template for spec file
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Jan 3 16:02:48 UTC 2012 - peter.trommler@ohm-hochschule.de
|
||||
|
||||
- Initial packaging.
|
@@ -1,127 +1,113 @@
|
||||
%define pkg_name regex-base
|
||||
%define ghc_version %(ghc --numeric-version)
|
||||
#
|
||||
# spec file for package ghc-regex-base
|
||||
#
|
||||
# Copyright (c) 2023 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
# upon. The license for this file, and modifications and additions to the
|
||||
# file, is the same license as for the pristine package itself (unless the
|
||||
# license for the pristine package is not an Open Source License, in which
|
||||
# case the license is the MIT License). An "Open Source License" is a
|
||||
# license that conforms to the Open Source Definition (Version 1.9)
|
||||
# published by the Open Source Initiative.
|
||||
|
||||
%define pkg_libdir %{_libdir}/ghc-%{ghc_version}/%{pkg_name}-%{version}
|
||||
%define pkg_docdir %{_datadir}/doc/ghc/libraries/%{pkg_name}-%{version}
|
||||
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
||||
#
|
||||
|
||||
# ghc does not emit debug information
|
||||
%define debug_package %{nil}
|
||||
|
||||
%global pkg_name regex-base
|
||||
%global pkgver %{pkg_name}-%{version}
|
||||
Name: ghc-%{pkg_name}
|
||||
Version: 0.93.1
|
||||
Version: 0.94.0.2
|
||||
Release: 0
|
||||
Summary: regex-base: Replaces/Enhances Text.Regex
|
||||
Group: Development/Libraries
|
||||
License: BSD3
|
||||
URL: http://hackage.haskell.org/cgi-bin/hackage-scripts/package/%{pkg_name}
|
||||
Source0: http://hackage.haskell.org/packages/archive/%{pkg_name}/%{version}/%{pkg_name}-%{version}.tar.bz2
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
BuildRequires: ghc, ghc-doc, ghc-prof
|
||||
BuildRequires: licenses
|
||||
Summary: Common "Text.Regex.*" API for Regex matching
|
||||
License: BSD-3-Clause
|
||||
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/4.cabal#/%{pkg_name}.cabal
|
||||
BuildRequires: ghc-Cabal-devel
|
||||
BuildRequires: ghc-array-devel
|
||||
BuildRequires: ghc-array-prof
|
||||
BuildRequires: ghc-base-devel
|
||||
BuildRequires: ghc-base-prof
|
||||
BuildRequires: ghc-bytestring-devel
|
||||
BuildRequires: ghc-bytestring-prof
|
||||
BuildRequires: ghc-containers-devel
|
||||
BuildRequires: ghc-containers-prof
|
||||
BuildRequires: ghc-rpm-macros
|
||||
BuildRequires: ghc-text-devel
|
||||
BuildRequires: ghc-text-prof
|
||||
ExcludeArch: %{ix86}
|
||||
|
||||
%description
|
||||
Interface API for regex-posix,pcre,parsec,tdfa,dfa
|
||||
This package does not provide the ability to do regular expression matching.
|
||||
Instead, it provides the type classes that constitute the abstract API that is
|
||||
implemented by 'regex-*' backends such as:
|
||||
|
||||
This package provides the Haskell %{pkg_name} library for ghc.
|
||||
* <https://hackage.haskell.org/package/regex-posix regex-posix>
|
||||
|
||||
* <https://hackage.haskell.org/package/regex-parsec regex-parsec>
|
||||
|
||||
* <https://hackage.haskell.org/package/regex-dfa regex-dfa>
|
||||
|
||||
* <https://hackage.haskell.org/package/regex-tdfa regex-tdfa>
|
||||
|
||||
* <https://hackage.haskell.org/package/regex-pcre regex-pcre>
|
||||
|
||||
See also <https://wiki.haskell.org/Regular_expressions> for more information.
|
||||
|
||||
%package devel
|
||||
Summary: Haskell %{pkg_name} library
|
||||
Group: Development/Libraries
|
||||
Requires: ghc = %{ghc_version}
|
||||
Requires(post): ghc = %{ghc_version}
|
||||
Requires(preun): ghc = %{ghc_version}
|
||||
Requires: licenses
|
||||
Summary: Haskell %{pkg_name} library development files
|
||||
Requires: %{name} = %{version}-%{release}
|
||||
Requires: ghc-compiler = %{ghc_version}
|
||||
Requires(post): ghc-compiler = %{ghc_version}
|
||||
Requires(postun): ghc-compiler = %{ghc_version}
|
||||
|
||||
%description devel
|
||||
Interface API for regex-posix,pcre,parsec,tdfa,dfa
|
||||
This package provides the Haskell %{pkg_name} library development files.
|
||||
|
||||
This package contains the development files for %{name}
|
||||
built for ghc-%{ghc_version}.
|
||||
%package -n ghc-%{pkg_name}-doc
|
||||
Summary: Haskell %{pkg_name} library documentation
|
||||
Requires: ghc-filesystem
|
||||
BuildArch: noarch
|
||||
|
||||
%description -n ghc-%{pkg_name}-doc
|
||||
This package provides the Haskell %{pkg_name} library documentation.
|
||||
|
||||
%package doc
|
||||
Summary: Documentation for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: ghc-doc = %{ghc_version}
|
||||
Requires(post): ghc-doc = %{ghc_version}
|
||||
Requires(postun): ghc-doc = %{ghc_version}
|
||||
|
||||
%description doc
|
||||
Interface API for regex-posix,pcre,parsec,tdfa,dfa
|
||||
|
||||
This package contains development documentation files for the %{name} library.
|
||||
|
||||
|
||||
%package prof
|
||||
Summary: Profiling libraries for %{name}
|
||||
Group: Development/Libraries
|
||||
Requires: %{name}-devel = %{version}-%{release}
|
||||
Requires: ghc-prof = %{ghc_version}
|
||||
|
||||
%description prof
|
||||
Interface API for regex-posix,pcre,parsec,tdfa,dfa
|
||||
|
||||
This package contains profiling libraries for %{name}.
|
||||
%package -n ghc-%{pkg_name}-prof
|
||||
Summary: Haskell %{pkg_name} profiling library
|
||||
Requires: ghc-%{pkg_name}-devel = %{version}-%{release}
|
||||
Supplements: (ghc-%{pkg_name}-devel and ghc-prof)
|
||||
|
||||
%description -n ghc-%{pkg_name}-prof
|
||||
This package provides the Haskell %{pkg_name} profiling library.
|
||||
|
||||
%prep
|
||||
%setup -q -n %{pkg_name}-%{version}
|
||||
|
||||
%autosetup -n %{pkg_name}-%{version}
|
||||
cp -p %{SOURCE1} %{pkg_name}.cabal
|
||||
|
||||
%build
|
||||
%cabal_configure --ghc %{!?without_prof:-p}
|
||||
%cabal build
|
||||
%cabal haddock
|
||||
%ghc_gen_scripts
|
||||
|
||||
%ghc_lib_build
|
||||
|
||||
%install
|
||||
%cabal_install
|
||||
%ghc_install_scripts
|
||||
%ghc_gen_filelists %{name}
|
||||
for FILE in LICENSE ; do
|
||||
MD5SUM=$(md5sum $FILE | sed 's/ .*//')
|
||||
if test -f /usr/share/doc/licenses/md5/$MD5SUM ; then
|
||||
ln -sf /usr/share/doc/licenses/md5/$MD5SUM $FILE
|
||||
fi
|
||||
done
|
||||
|
||||
%ghc_lib_install
|
||||
|
||||
%post devel
|
||||
%ghc_register_pkg
|
||||
%ghc_pkg_recache
|
||||
|
||||
%postun devel
|
||||
%ghc_pkg_recache
|
||||
|
||||
%post doc
|
||||
%ghc_reindex_haddock
|
||||
|
||||
|
||||
%preun devel
|
||||
if [ "$1" -eq 0 ] ; then
|
||||
%ghc_unregister_pkg
|
||||
fi
|
||||
|
||||
|
||||
%postun doc
|
||||
if [ "$1" -eq 0 ] ; then
|
||||
%ghc_reindex_haddock
|
||||
fi
|
||||
|
||||
%files -f %{name}.files
|
||||
%license LICENSE
|
||||
|
||||
%files devel -f %{name}-devel.files
|
||||
%defattr(-,root,root,-)
|
||||
%{_docdir}/%{name}-%{version}
|
||||
%doc ChangeLog.md README.md
|
||||
|
||||
%files -n ghc-%{pkg_name}-doc -f ghc-%{pkg_name}-doc.files
|
||||
%license LICENSE
|
||||
|
||||
%files doc
|
||||
%defattr(-,root,root,-)
|
||||
%{pkg_docdir}
|
||||
|
||||
|
||||
%files prof -f %{name}-prof.files
|
||||
%defattr(-,root,root,-)
|
||||
|
||||
%files -n ghc-%{pkg_name}-prof -f ghc-%{pkg_name}-prof.files
|
||||
|
||||
%changelog
|
||||
* Tue Apr 28 2009 Herbert Graeber <herbert@graeber-clan.de> - 0.93.1
|
||||
- Initial Package
|
||||
|
@@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:a20dce2953be7a8f7c96d75019da23b41cdb6ceb1003cae899a47c1057d9428c
|
||||
size 8853
|
3
regex-base-0.94.0.2.tar.gz
Normal file
3
regex-base-0.94.0.2.tar.gz
Normal file
@@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7b99408f580f5bb67a1c413e0bc735886608251331ad36322020f2169aea2ef1
|
||||
size 10488
|
96
regex-base.cabal
Normal file
96
regex-base.cabal
Normal file
@@ -0,0 +1,96 @@
|
||||
cabal-version: 1.12
|
||||
name: regex-base
|
||||
version: 0.94.0.2
|
||||
x-revision: 4
|
||||
|
||||
build-type: Simple
|
||||
license: BSD3
|
||||
license-file: LICENSE
|
||||
copyright: Copyright (c) 2006, Christopher Kuklewicz
|
||||
author: Christopher Kuklewicz
|
||||
maintainer: Andreas Abel
|
||||
homepage: https://wiki.haskell.org/Regular_expressions
|
||||
bug-reports: https://github.com/haskell-hvr/regex-base/issues
|
||||
synopsis: Common "Text.Regex.*" API for Regex matching
|
||||
category: Text
|
||||
description:
|
||||
This package does not provide the ability to do regular expression matching.
|
||||
Instead, it provides the type classes that constitute the abstract API
|
||||
that is implemented by @regex-*@ backends such as:
|
||||
.
|
||||
* <https://hackage.haskell.org/package/regex-posix regex-posix>
|
||||
.
|
||||
* <https://hackage.haskell.org/package/regex-parsec regex-parsec>
|
||||
.
|
||||
* <https://hackage.haskell.org/package/regex-dfa regex-dfa>
|
||||
.
|
||||
* <https://hackage.haskell.org/package/regex-tdfa regex-tdfa>
|
||||
.
|
||||
* <https://hackage.haskell.org/package/regex-pcre regex-pcre>
|
||||
.
|
||||
See also <https://wiki.haskell.org/Regular_expressions> for more information.
|
||||
|
||||
extra-source-files:
|
||||
ChangeLog.md
|
||||
README.md
|
||||
|
||||
tested-with:
|
||||
GHC == 9.8.0
|
||||
GHC == 9.6.3
|
||||
GHC == 9.4.7
|
||||
GHC == 9.2.8
|
||||
GHC == 9.0.2
|
||||
GHC == 8.10.7
|
||||
GHC == 8.8.4
|
||||
GHC == 8.6.5
|
||||
GHC == 8.4.4
|
||||
GHC == 8.2.2
|
||||
GHC == 8.0.2
|
||||
GHC == 7.10.3
|
||||
|
||||
source-repository head
|
||||
type: git
|
||||
location: https://github.com/haskell-hvr/regex-base.git
|
||||
|
||||
source-repository this
|
||||
type: git
|
||||
location: https://github.com/haskell-hvr/regex-base.git
|
||||
tag: v0.94.0.2-r4
|
||||
|
||||
library
|
||||
hs-source-dirs: src
|
||||
|
||||
exposed-modules:
|
||||
Text.Regex.Base
|
||||
Text.Regex.Base.RegexLike
|
||||
Text.Regex.Base.Context
|
||||
Text.Regex.Base.Impl
|
||||
|
||||
other-modules:
|
||||
Paths_regex_base
|
||||
|
||||
default-language: Haskell2010
|
||||
other-extensions:
|
||||
MultiParamTypeClasses
|
||||
FunctionalDependencies
|
||||
TypeSynonymInstances
|
||||
FlexibleInstances
|
||||
FlexibleContexts
|
||||
|
||||
if impl(ghc >= 7.4)
|
||||
default-extensions: Safe
|
||||
build-depends: containers >= 0.4.2.1
|
||||
, bytestring >= 0.9.2.1
|
||||
|
||||
build-depends: base >= 4.3 && < 5
|
||||
, containers >= 0.4 && < 0.8
|
||||
, bytestring >= 0.9 && < 0.13
|
||||
, array >= 0.3 && < 0.6
|
||||
, text >= 1.2.3 && < 1.3 || >=2.0 && <2.2
|
||||
|
||||
if !impl(ghc >= 8)
|
||||
build-depends: fail == 4.9.*
|
||||
|
||||
ghc-options: -Wall
|
||||
if impl(ghc >= 8)
|
||||
ghc-options: -Wcompat
|
@@ -1,6 +0,0 @@
|
||||
addFilter("devel-dependency gmp-devel")
|
||||
addFilter("devel-file-in-non-devel-package")
|
||||
addFilter("static-library-without-debuginfo")
|
||||
addFilter("useless-explicit-requires ghc")
|
||||
addFilter("useless-explicit-requires ghc-doc")
|
||||
addFilter("devel-dependency ghc-regex-base-devel")
|
Reference in New Issue
Block a user