-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdefloc.spec
121 lines (83 loc) · 2.68 KB
/
defloc.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
%global pkg_name defloc
%bcond_without tests
Name: %{pkg_name}
Version: 0.2.0.0
Release: 1%{?dist}
Summary: Finds locations of function definitions in shell scripts
License: GPLv3+
Url: https://github.com/lzaoral/%{name}
Source0: %{url}/archive/refs/tags/v%{version}/%{name}-%{version}.tar.gz
BuildRequires: ghc-Cabal-devel
BuildRequires: ghc-rpm-macros
BuildRequires: ghc-ShellCheck-prof
BuildRequires: ghc-base-prof
BuildRequires: ghc-containers-prof
BuildRequires: ghc-regex-pcre-prof
%if %{with tests}
BuildRequires: ghc-HUnit-devel
BuildRequires: ghc-filepath-devel
%endif
%description
Simple tool based on ShellCheck's parser that can be used to find definitions
of functions in shell scripts.
%package -n ghc-%{name}
Summary: Haskell %{name} library
%description -n ghc-%{name}
This package contains the Haskell %{name} library.
%package -n ghc-%{name}-devel
Summary: Haskell %{pkg_name} library development files
Provides: ghc-%{name}-static = %{version}-%{release}
Provides: ghc-%{name}-static%{?_isa} = %{version}-%{release}
%if %{defined ghc_version}
Requires: ghc-compiler = %{ghc_version}
%endif
Requires: ghc-%{name}%{?_isa} = %{version}-%{release}
%description -n ghc-%{name}-devel
This package provides the Haskell %{pkg_name} library development files.
%if %{with haddock}
%package -n ghc-%{name}-doc
Summary: Haskell %{name} library documentation
BuildArch: noarch
Requires: ghc-filesystem
%description -n ghc-%{name}-doc
This package provides the Haskell %{name} library documentation.
%endif
%if %{with ghc_prof}
%package -n ghc-%{name}-prof
Summary: Haskell %{name} profiling library
Requires: ghc-%{name}-devel%{?_isa} = %{version}-%{release}
Supplements: (ghc-%{name}-devel and ghc-prof)
%description -n ghc-%{name}-prof
This package provides the Haskell %{name} profiling library.
%endif
%prep
%setup -q
%build
%ghc_lib_build
%install
%ghc_lib_install
%check
%if %{with tests}
%cabal_test
%endif
%files
%license LICENSE
%doc CHANGELOG.md README.md
%{_bindir}/%{name}
%files -n ghc-%{name} -f ghc-%{name}.files
%license LICENSE
%files -n ghc-%{name}-devel -f ghc-%{name}-devel.files
%if %{with haddock}
%files -n ghc-%{name}-doc -f ghc-%{name}-doc.files
%license LICENSE
%endif
%if %{with ghc_prof}
%files -n ghc-%{name}-prof -f ghc-%{name}-prof.files
%endif
%changelog
* Mon Jan 24 2022 Lukáš Zaoral <lzaoral@redhat.com> - 0.2.0.0-1
- Try to process files that contain errors as well.
- Remove monad transformers from the code base.
- Add a simple test-suite.
* Tue Dec 7 2021 Lukáš Zaoral <lzaoral@redhat.com> - 0.1.0.0-1
- Initial release