-
Notifications
You must be signed in to change notification settings - Fork 0
/
podenv.spec
149 lines (119 loc) · 4.22 KB
/
podenv.spec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
# generated by cabal-rpm-2.0.12 --standalone
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
%global ghc_without_dynamic 1
%global ghc_without_shared 1
%undefine with_ghc_prof
%undefine with_haddock
%global without_prof 1
%global without_haddock 1
%global debug_package %{nil}
%global pkg_name podenv
%global pkgver %{pkg_name}-%{version}
Name: %{pkg_name}
Version: 0.2.0
Release: 1%{?dist}
Summary: A container wrapper
License: ASL 2.0
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{pkgver}/%{pkgver}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-SHA-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-containers-devel
BuildRequires: ghc-dhall-devel
BuildRequires: ghc-directory-devel
BuildRequires: ghc-either-devel
BuildRequires: ghc-filepath-devel
BuildRequires: ghc-gitrev-devel
BuildRequires: ghc-lens-family-core-devel
#BuildRequires: ghc-lens-family-th-devel
#BuildRequires: ghc-linux-capabilities-devel
BuildRequires: ghc-optparse-applicative-devel
BuildRequires: ghc-relude-devel
BuildRequires: ghc-text-devel
#BuildRequires: ghc-th-env-devel
BuildRequires: ghc-typed-process-devel
BuildRequires: ghc-unix-devel
BuildRequires: cabal-install > 1.18
# for missing dep 'lens-family-th':
BuildRequires: ghc-template-haskell-devel
# for missing dep 'th-env':
BuildRequires: ghc-template-haskell-devel
%if 0%{?fedora} >= 35
BuildRequires: ghc-th-compat-devel
%endif
# End cabal-rpm deps
Requires: podman
%description
Podenv provides a declarative interface to manage containerized applications.
Using rootless containers, podenv let you run applications seamlessly.
%prep
# Begin cabal-rpm setup:
%setup -q
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
cabal update
%if 0%{?rhel} && 0%{?rhel} < 9
cabal sandbox init
cabal install
%endif
# End cabal-rpm build
%install
# Begin cabal-rpm install
mkdir -p %{buildroot}%{_bindir}
%if 0%{?fedora} >= 33 || 0%{?rhel} > 8
%if 0%{?fedora} >= 36
%ghc_set_gcc_flags
%endif
cabal install --install-method=copy --enable-executable-stripping --installdir=%{buildroot}%{_bindir}
%else
for i in .cabal-sandbox/bin/*; do
strip -s -o %{buildroot}%{_bindir}/$(basename $i) $i
done
%endif
mkdir -p %{buildroot}%{_datadir}/bash-completion/completions/
%{buildroot}%{_bindir}/%{name} --bash-completion-script %{name} | sed s/filenames/default/ > %{buildroot}%{_datadir}/bash-completion/completions/%{name}
# End cabal-rpm install
%files
# Begin cabal-rpm files:
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
# End cabal-rpm files
%changelog
* Wed Aug 10 2022 Jens Petersen <petersen@redhat.com> - 0.2.0-1
- https://hackage.haskell.org/package/podenv-0.2.0/changelog
* Sat May 14 2022 Jens Petersen <petersen@redhat.com> - 0.1.0-1
- initial stable release
* Sat Jan 8 2022 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20220107
- update to 222e906
- https://github.com/podenv/podenv/commits/main
* Fri Dec 3 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211202
- update to 8f1cd6b
* Wed Nov 3 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211103
- update to 53e4455
* Tue Nov 2 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211101
- update to b7e4c7a
* Mon Nov 1 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211030
- update to c9eea03
* Tue Oct 26 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211026
- update to 692682a
* Mon Oct 25 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211025
- update to 5b1e758
* Mon Oct 18 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211018
- update to d0f8b27
- short githash for snapshot should now appear in --version
* Mon Oct 4 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20211004
- update to a9c241a
* Thu Sep 23 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20210923.1
- update to 87838f7 tarball
* Thu Sep 23 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20210923
- update to be20ef4
* Wed Sep 22 2021 Jens Petersen <petersen@redhat.com> - 0.1.0.0-0.20210922
- initial packaging