Skip to content

Commit 8668740

Browse files
Owen-szraboneko
authored andcommitted
add: ghc-bv (#11699)
* fix (cagebreak): update dep Signed-off-by: Owen-sz <owen@fyralabs.com> * add: ghc-language-bluespec Signed-off-by: Owen-sz <owen@fyralabs.com> * add: ghc-bv Signed-off-by: Owen-sz <owen@fyralabs.com> * add packager line Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> --------- Signed-off-by: Owen-sz <owen@fyralabs.com> Signed-off-by: Owen Zimmerman <123591347+Owen-sz@users.noreply.github.com> (cherry picked from commit 5a4cbb3)
1 parent 028191b commit 8668740

3 files changed

Lines changed: 116 additions & 0 deletions

File tree

anda/langs/haskell/ghc-bv/anda.hcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
project pkg {
2+
rpm {
3+
spec = "ghc-bv.spec"
4+
}
5+
}
Lines changed: 110 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,110 @@
1+
# generated by cabal-rpm-2.3.2
2+
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
3+
4+
%global pkg_name bv
5+
%global pkgver %{pkg_name}-%{version}
6+
%{?haskell_setup}
7+
8+
Name: ghc-%{pkg_name}
9+
Version: 0.5
10+
Release: 1%{?dist}
11+
Summary: Bit-vector arithmetic library
12+
13+
License: BSD-3-Clause
14+
URL: https://hackage.haskell.org/package/bv
15+
# Begin cabal-rpm sources:
16+
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
17+
# End cabal-rpm sources
18+
19+
# Begin cabal-rpm deps:
20+
BuildRequires: ghc-rpm-macros
21+
BuildRequires: ghc-Cabal-devel
22+
BuildRequires: ghc-base-devel
23+
%if %{with ghc_prof}
24+
BuildRequires: ghc-base-prof
25+
%endif
26+
# End cabal-rpm deps
27+
28+
Packager: Owen Zimmerman <owen@fyralabs.com>
29+
30+
%description
31+
Bit-vectors implemented as a thin wrapper over integers.
32+
33+
34+
%package devel
35+
Summary: Haskell %{pkg_name} library development files
36+
Provides: %{name}-static = %{version}-%{release}
37+
Provides: %{name}-static%{?_isa} = %{version}-%{release}
38+
%if %{defined ghc_version}
39+
Requires: ghc-compiler = %{ghc_version}
40+
%endif
41+
Requires: %{name}%{?_isa} = %{version}-%{release}
42+
43+
%description devel
44+
This package provides the Haskell %{pkg_name} library development files.
45+
46+
47+
%if %{with haddock}
48+
%package doc
49+
Summary: Haskell %{pkg_name} library documentation
50+
BuildArch: noarch
51+
Requires: ghc-filesystem
52+
53+
%description doc
54+
This package provides the Haskell %{pkg_name} library documentation.
55+
%endif
56+
57+
58+
%if %{with ghc_prof}
59+
%package prof
60+
Summary: Haskell %{pkg_name} profiling library
61+
Requires: %{name}-devel%{?_isa} = %{version}-%{release}
62+
Supplements: (%{name}-devel and ghc-prof)
63+
64+
%description prof
65+
This package provides the Haskell %{pkg_name} profiling library.
66+
%endif
67+
68+
69+
%prep
70+
# Begin cabal-rpm setup:
71+
%setup -q -n %{pkgver}
72+
# End cabal-rpm setup
73+
74+
75+
%build
76+
# Begin cabal-rpm build:
77+
%ghc_lib_build
78+
# End cabal-rpm build
79+
80+
81+
%install
82+
# Begin cabal-rpm install
83+
%ghc_lib_install
84+
# End cabal-rpm install
85+
86+
87+
%files -f %{name}.files
88+
# Begin cabal-rpm files:
89+
%license LICENSE
90+
# End cabal-rpm files
91+
92+
93+
%files devel -f %{name}-devel.files
94+
%doc CHANGES.md README.md
95+
96+
97+
%if %{with haddock}
98+
%files doc -f %{name}-doc.files
99+
%license LICENSE
100+
%endif
101+
102+
103+
%if %{with ghc_prof}
104+
%files prof -f %{name}-prof.files
105+
%endif
106+
107+
108+
%changelog
109+
* Tue Apr 28 2026 Owen Zimmerman <owen@fyralabs.com> - 0.5-1
110+
- Initial commit
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
rpm.version(hackage("bv"));

0 commit comments

Comments
 (0)