-
Notifications
You must be signed in to change notification settings - Fork 0
/
fedora-composes.spec
83 lines (64 loc) · 2.07 KB
/
fedora-composes.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
# generated by cabal-rpm-2.1.5
# https://docs.fedoraproject.org/en-US/packaging-guidelines/Haskell/
# requires network
%bcond_with tests
Name: fedora-composes
Version: 0.2.1
Release: 1%{?dist}
Summary: Query Fedora composes
License: BSD-3-Clause
Url: https://hackage.haskell.org/package/%{name}
# Begin cabal-rpm sources:
Source0: https://hackage.haskell.org/package/%{name}-%{version}/%{name}-%{version}.tar.gz
# End cabal-rpm sources
# Begin cabal-rpm deps:
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-ansi-terminal-devel
BuildRequires: ghc-base-devel
BuildRequires: ghc-bytestring-devel
BuildRequires: ghc-extra-devel
BuildRequires: ghc-http-conduit-devel
BuildRequires: ghc-http-directory-devel
BuildRequires: ghc-simple-cmd-args-devel
BuildRequires: ghc-simple-prompt-devel
BuildRequires: ghc-text-devel
BuildRequires: ghc-time-devel
%if %{with tests}
BuildRequires: ghc-simple-cmd-devel
%endif
# End cabal-rpm deps
%description
CLI tool to list and check status of Fedora composes.
%prep
# Begin cabal-rpm setup:
%setup -q
# End cabal-rpm setup
%build
# Begin cabal-rpm build:
%ghc_bin_build
# End cabal-rpm build
%install
# Begin cabal-rpm install
%ghc_bin_install
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
%check
%if %{with tests}
%cabal_test
%endif
%files
# Begin cabal-rpm files:
%license LICENSE
%doc ChangeLog.md README.md
%{_bindir}/%{name}
%{_datadir}/bash-completion/completions/%{name}
# End cabal-rpm files
%changelog
* Mon Sep 9 2024 Jens Petersen <petersen@redhat.com> - 0.2.1-1
- https://hackage.haskell.org/package/fedora-composes-0.2.1/changelog
* Wed Feb 14 2024 Jens Petersen <petersen@redhat.com> - 0.2-1
- https://hackage.haskell.org/package/fedora-composes-0.2/changelog
* Fri Aug 12 2022 Jens Petersen <petersen@redhat.com> - 0.1-1
- spec file generated by cabal-rpm-2.0.12