-
Notifications
You must be signed in to change notification settings - Fork 0
/
wahay.spec
121 lines (98 loc) · 4.48 KB
/
wahay.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
# Generated by go2rpm 1
%bcond_without check
%global goipath github.com/digitalautonomy/wahay
Version: 0.1
%gometa
%global common_description %{expand:
An easy-to-use, secure and decentralized conference call application}
%global golicenses COPYING LICENSE
%global godocs DEVELOPER.md CONTRIBUTORS README.md
Name: wahay
Release: 0.1%{?dist}
Summary: An easy-to-use, secure and decentralized conference call application (this repository is a mirror of an internal work repository)
License: GPL-3.0-only
# FIXME: Upstream uses unknown SPDX tag GPL-3.0-only!
URL: %{gourl}
Source0: %{gosource}
Requires: mumble, tor >= 0.3.5, gtk3, xclip
BuildRequires: desktop-file-utils
BuildRequires: golang(github.com/atotto/clipboard)
BuildRequires: golang(github.com/coyim/gotk3adapter/gdka)
BuildRequires: golang(github.com/coyim/gotk3adapter/gdki)
BuildRequires: golang(github.com/coyim/gotk3adapter/gliba)
BuildRequires: golang(github.com/coyim/gotk3adapter/glibi)
BuildRequires: golang(github.com/coyim/gotk3adapter/gtka)
BuildRequires: golang(github.com/coyim/gotk3adapter/gtki)
BuildRequires: golang(github.com/coyim/gotk3extra)
BuildRequires: golang(github.com/cubiest/jibberjabber)
BuildRequires: golang(github.com/digitalautonomy/grumble/pkg/logtarget)
BuildRequires: golang(github.com/digitalautonomy/grumble/server)
BuildRequires: golang(github.com/kardianos/osext)
BuildRequires: golang(github.com/sirupsen/logrus)
BuildRequires: golang(github.com/wybiral/torgo)
BuildRequires: golang(golang.org/x/crypto/scrypt)
BuildRequires: golang(golang.org/x/net/proxy)
BuildRequires: golang(golang.org/x/text/language)
BuildRequires: golang(golang.org/x/text/message)
BuildRequires: golang(golang.org/x/text/message/catalog)
%if %{with check}
# Tests
BuildRequires: golang(github.com/coyim/gotk3adapter/glib_mock)
BuildRequires: golang(github.com/coyim/gotk3adapter/gtk_mock)
BuildRequires: golang(gopkg.in/check.v1)
BuildRequires: golang(github.com/prashantv/gostub)
%endif
%description
%{common_description}
%gopkg
%prep
%goprep
%build
export GOFLAGS="-tags=gtk_3_18,glib_2_66,binary"
export BUILDTAGS="gtk_3_18 glib_2_66 binary"
%gobuild -o %{gobuilddir}/bin/wahay %{goipath}
%install
%gopkginstall
install -m 0755 -vd %{buildroot}%{_bindir}
install -m 0755 -vp %{gobuilddir}/bin/* %{buildroot}%{_bindir}/
install -d %{buildroot}/%{_mandir}/man1/
install -p packaging/ubuntu/ubuntu/usr/share/man/man1/wahay.1.gz %{buildroot}/%{_mandir}/man1/
sed "s/__NAME__/Wahay/g" gui/config_files/wahay.desktop | sed "s/__EXEC__/\/usr\/bin\/wahay/g" | sed "s/__ICON__/wahay/" | sed "s/Internet/Network/" > %{name}.desktop
desktop-file-install --dir=${RPM_BUILD_ROOT}%{_datadir}/applications %{name}.desktop
for size in 192x192 256x256 512x512; do
install -d %{buildroot}%{_datadir}/icons/hicolor/${size}/apps
install -p gui/images/wahay-${size}.png %{buildroot}%{_datadir}/icons/hicolor/${size}/apps/wahay.png
done
%if %{with check}
%check
export GOFLAGS="-tags=gtk_3_18,glib_2_66"
%gocheck
%endif
%files
%license COPYING LICENSE
%doc DEVELOPER.md CONTRIBUTORS README.md
%{_mandir}/man1/wahay.*
%{_bindir}/*
%{_datadir}/applications/*.desktop
%{_datadir}/icons/hicolor/*
%gopkgfiles
%changelog
* Fri May 5 13:00:00 -05 2023 CAD <fedora@autonomia.digital> - 0.1-1
- Release version 0.1
* Mon May 1 06:00:00 -05 2023 CAD <fedora@autonomia.digital> - 0-0.7.20230430git87d0bcf
- Upgrade versions, upgrade golang version, move to modules and build for more Fedora versions
* Wed Jul 8 14:00:00 -05 2020 rafael <rafael@autonomia.digital> - 0.0.6.20200708git8ef10bbe
- Upgrade to commit 8ef10bbed3f77e02cd1724395d63432eb6d04682
- Support for group chat
- Hosting user can be Mumble Superuser, that way it is possible to mute, ban users or other admin tasks
- Fix other bugs
* Wed May 27 11:00:00 -05 2020 rafael <rafael@autonomia.digital> - 0.0.5.20200527gitff0495e
- Upgrade to commit ff0495ef8d538a9ce53f9bf889b8d0077c2c9204
* Mon Mar 30 14:48:00 -05 2020 rafael <rafael@autonomia.digital> - 0.0.4.20200331git971d012
- Upgrade to commit 971d012c63c4c1220e8e082a63f02ec0e16c382a
- Add gtk3 as a dependency
* Mon Mar 30 14:48:00 -05 2020 rafael <rafael@autonomia.digital> - 0.0.3.20200331git3906ea6
- Upgrade to commit 3906ea63d21872d25893e247322f0ee34d00a499
* Tue Mar 24 13:19:24 -05 2020 rafael <rafael@autonomia.digital> - 0-0.2.20200318git4abfed1
* Mon Mar 18 13:19:24 -05 2020 rafael <rafael@autonomia.digital> - 0-0.1.20200318git4abfed1
- Initial package