refresh to cabal-rpm-0.13
This commit is contained in:
parent
f35914d718
commit
93361bffa6
|
@ -0,0 +1,113 @@
|
||||||
|
Name: data-reify
|
||||||
|
Version: 0.6.1
|
||||||
|
x-revision: 1
|
||||||
|
Synopsis: Reify a recursive data structure into an explicit graph.
|
||||||
|
Description: 'data-reify' provided the ability to turn recursive structures into explicit graphs.
|
||||||
|
Many (implicitly or explicitly) recursive data structure can be given this ability, via
|
||||||
|
a type class instance. This gives an alternative to using 'Ref' for observable sharing.
|
||||||
|
.
|
||||||
|
Observable sharing in general is unsafe, so we use the IO monad to bound this effect,
|
||||||
|
but can be used safely even with 'unsafePerformIO' if some simple conditions are met.
|
||||||
|
Typically this package will be used to tie the knot with DSL's that depend of
|
||||||
|
observable sharing, like Lava.
|
||||||
|
.
|
||||||
|
Providing an instance for 'MuRef' is the mechanism for allowing a structure to be
|
||||||
|
reified into a graph, and several examples of this are provided.
|
||||||
|
.
|
||||||
|
History:
|
||||||
|
Version 0.1 used unsafe pointer compares.
|
||||||
|
Version 0.2 of 'data-reify' used 'StableName's, and was much faster.
|
||||||
|
Version 0.3 provided two versions of 'MuRef', the mono-typed version,
|
||||||
|
for trees of a single type,
|
||||||
|
and the dynamic-typed version, for trees of different types.
|
||||||
|
Version 0.4 used 'Int' as a synonym for 'Unique' rather than 'Data.Unique'
|
||||||
|
for node ids, by popular demand.
|
||||||
|
Version 0.5 merged the mono-typed and dynamic version again, by using
|
||||||
|
'DynStableName', an unphantomized version of StableName.
|
||||||
|
.
|
||||||
|
© 2009 Andy Gill; BSD3 license.
|
||||||
|
|
||||||
|
Category: Language, Data, Parsing, Reflection
|
||||||
|
License: BSD3
|
||||||
|
License-file: LICENSE
|
||||||
|
Author: Andy Gill
|
||||||
|
Maintainer: Andy Gill <andygill@ku.edu>
|
||||||
|
Copyright: (c) 2009 Andy Gill
|
||||||
|
Homepage: http://ku-fpg.github.io/software/data-reify/
|
||||||
|
Stability: alpha
|
||||||
|
build-type: Simple
|
||||||
|
Cabal-Version: >= 1.8
|
||||||
|
extra-source-files: CHANGELOG.md, README.md
|
||||||
|
|
||||||
|
source-repository head
|
||||||
|
type: git
|
||||||
|
location: https://github.com/ku-fpg/data-reify
|
||||||
|
|
||||||
|
Flag tests
|
||||||
|
Description: Enable full development tree
|
||||||
|
Default: False
|
||||||
|
|
||||||
|
|
||||||
|
Library
|
||||||
|
Build-Depends: base >= 4 && < 5, containers
|
||||||
|
Exposed-modules:
|
||||||
|
Data.Reify,
|
||||||
|
Data.Reify.Graph
|
||||||
|
Ghc-Options: -Wall
|
||||||
|
|
||||||
|
Executable data-reify-test1
|
||||||
|
Build-Depends: base, data-reify
|
||||||
|
Main-Is: Test1.hs
|
||||||
|
Hs-Source-Dirs: test
|
||||||
|
ghc-options: -Wall
|
||||||
|
if !flag(tests)
|
||||||
|
buildable: False
|
||||||
|
|
||||||
|
|
||||||
|
Executable data-reify-test2
|
||||||
|
Build-Depends: base, data-reify
|
||||||
|
Main-Is: Test2.hs
|
||||||
|
Hs-Source-Dirs: test
|
||||||
|
ghc-options: -Wall
|
||||||
|
if !flag(tests)
|
||||||
|
buildable: False
|
||||||
|
|
||||||
|
Executable data-reify-test3
|
||||||
|
Build-Depends: base, data-reify
|
||||||
|
Main-Is: Test3.hs
|
||||||
|
Hs-Source-Dirs: test
|
||||||
|
ghc-options: -Wall
|
||||||
|
if !flag(tests)
|
||||||
|
buildable: False
|
||||||
|
|
||||||
|
Executable data-reify-test4
|
||||||
|
Build-Depends: base, data-reify
|
||||||
|
Main-Is: Test4.hs
|
||||||
|
Hs-Source-Dirs: test
|
||||||
|
ghc-options: -Wall
|
||||||
|
if !flag(tests)
|
||||||
|
buildable: False
|
||||||
|
|
||||||
|
Executable data-reify-test5
|
||||||
|
Build-Depends: base, data-reify
|
||||||
|
Main-Is: Test5.hs
|
||||||
|
Hs-Source-Dirs: test
|
||||||
|
ghc-options: -Wall
|
||||||
|
if !flag(tests)
|
||||||
|
buildable: False
|
||||||
|
|
||||||
|
Executable data-reify-test6
|
||||||
|
Build-Depends: base, data-reify
|
||||||
|
Main-Is: Test6.hs
|
||||||
|
Hs-Source-Dirs: test
|
||||||
|
ghc-options: -Wall
|
||||||
|
if !flag(tests)
|
||||||
|
buildable: False
|
||||||
|
|
||||||
|
Executable data-reify-test7
|
||||||
|
Build-Depends: base, data-reify
|
||||||
|
Main-Is: Test7.hs
|
||||||
|
Hs-Source-Dirs: test
|
||||||
|
ghc-options: -Wall
|
||||||
|
if !flag(tests)
|
||||||
|
buildable: False
|
|
@ -1,4 +1,4 @@
|
||||||
# generated by cabal-rpm-0.12.1
|
# generated by cabal-rpm-0.13
|
||||||
# https://fedoraproject.org/wiki/Packaging:Haskell
|
# https://fedoraproject.org/wiki/Packaging:Haskell
|
||||||
|
|
||||||
%global pkg_name data-reify
|
%global pkg_name data-reify
|
||||||
|
@ -6,16 +6,19 @@
|
||||||
|
|
||||||
Name: ghc-%{pkg_name}
|
Name: ghc-%{pkg_name}
|
||||||
Version: 0.6.1
|
Version: 0.6.1
|
||||||
Release: 9%{?dist}
|
Release: 10%{?dist}
|
||||||
Summary: Reify a recursive data structure into an explicit graph
|
Summary: Reify a recursive data structure into an explicit graph
|
||||||
|
|
||||||
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
|
||||||
|
# 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-containers-devel
|
BuildRequires: ghc-containers-devel
|
||||||
# End cabal-rpm deps
|
# End cabal-rpm deps
|
||||||
|
|
||||||
|
@ -42,15 +45,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 -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
|
||||||
|
@ -62,7 +72,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%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
|
||||||
|
@ -70,6 +82,9 @@ This package provides the Haskell %{pkg_name} library development files.
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun Feb 17 2019 Jens Petersen <petersen@redhat.com> - 0.6.1-10
|
||||||
|
- refresh to cabal-rpm-0.13
|
||||||
|
|
||||||
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-9
|
* Thu Jan 31 2019 Fedora Release Engineering <releng@fedoraproject.org> - 0.6.1-9
|
||||||
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
- Rebuilt for https://fedoraproject.org/wiki/Fedora_30_Mass_Rebuild
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue