-
Notifications
You must be signed in to change notification settings - Fork 11
/
gms-utils.spec
135 lines (118 loc) · 2.91 KB
/
gms-utils.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
%bcond_without srpm
# Do out-of-source-tree builds
# Only required in Fedora < f33 as this is the new default
%if 0%{?fedora} < 33
%undefine __cmake_in_source_build
%endif
# pq require C++17 - only required for Fedora <= 33
%if 0%{?fedora} <= 33
%global optflags %{optflags} -std=gnu++17
%endif
Name: gms-utils
Version: 0.6.7
Release: 1%{?dist}
Summary: Collection of command line utilities
URL: https://github.com/gsauthof/utility
License: GPLv3+
Source: https://example.org/gms-utils.tar.gz
BuildRequires: cmake
BuildRequires: gcc-c++
# Required by the check target
BuildRequires: python3-pytest
BuildRequires: python3-distro
BuildRequires: python3-psutil
# i.e. because of pgrep
BuildRequires: procps-ng
# i.e. because of gcore
BuildRequires: gdb
BuildRequires: python3-dnf
# i.e. for test suite
BuildRequires: lz4
# i.e. for hcheck
BuildRequires: libcurl-devel
%if %{__isa_bits} == 64
BuildRequires: glibc-devel(%{__isa_name}-32)
%endif
# for check-cert
Requires: gnutls-utils
Requires: python3-dns
# for matrixto
Requires: python3-matrix-nio
# workaround missing matrix-nio depedency: https://bugzilla.redhat.com/show_bug.cgi?id=1925689
Requires: python3-crypto
# for user_installed
Requires: python3-dnf
%description
Collection of command line utilities.
%prep
%if %{with srpm}
%autosetup -n gms-utils
%endif
%build
%cmake
%cmake_build
%install
%cmake_install
mkdir -p %{buildroot}/usr/local/bin
# resolve conflict with glibc-common
mv %{buildroot}/usr/bin/pldd %{buildroot}/usr/local/bin/
# resolve conflict with obs-build
mv %{buildroot}/usr/bin/unrpm %{buildroot}/usr/local/bin/
%check
# for ctests there is also the ctest macro
%cmake_build --target check
%files
/usr/bin/addrof
/usr/bin/adjtimex
/usr/bin/arsort
/usr/bin/ascii
/usr/bin/check-cert
/usr/bin/check-dnsbl
/usr/bin/chromium-extensions
/usr/bin/cpufreq
/usr/bin/dcat
/usr/bin/detect-size
/usr/bin/devof
/usr/bin/disas
/usr/bin/exec
/usr/bin/firefox-addons
/usr/bin/gs-ext
/usr/bin/hcheck
/usr/bin/inhibit
/usr/bin/isempty
/usr/bin/latest-kernel-running
/usr/bin/lockf
/usr/bin/lsata
/usr/bin/macgen
/usr/bin/matrixto
/usr/bin/oldprocs
/usr/bin/pargs
/usr/bin/pdfmerge
/usr/local/bin/pldd
/usr/bin/pq
/usr/bin/pwhatch
/usr/bin/remove
/usr/bin/reset-tmux
/usr/bin/ripdvd
/usr/bin/searchb
/usr/bin/silence
/usr/bin/swap
/usr/local/bin/unrpm
/usr/bin/user-installed
/usr/bin/wipedev
%doc README.md
%changelog
* Sun Jan 31 2021 Georg Sauthoff <[email protected]> - 0.5.4-1
- add matrixto, inhibit
* Fri Jan 1 2021 Georg Sauthoff <[email protected]> - 0.5.3-1
- add wipedev
* Sun Dec 13 2020 Georg Sauthoff <[email protected]> - 0.5.2-1
- add pq
* Sat Sep 19 2020 Georg Sauthoff <[email protected]> - 0.5.1-1
- bump version
* Sun Sep 06 2020 Georg Sauthoff <[email protected]> - 0.5.0-3
- fix check-cert depedency
* Fri Aug 21 2020 Georg Sauthoff <[email protected]> - 0.5.0-2
- fix check-dnsbl depedency
* Wed Aug 12 2020 Georg Sauthoff <[email protected]> - 0.5.0-1
- initial packaging