-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgonzofilter.spec
48 lines (35 loc) · 1017 Bytes
/
gonzofilter.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
%bcond_without srpm
%global debug_package %{nil}
%undefine _missing_build_ids_terminate_build
Name: gonzofilter
Version: 0.5.3
Release: 1%{?dist}
Summary: Bayes classifying spam mail filter
URL: https://github.com/gsauthof/gonzofilter
License: GPLv3+
Source: https://example.org/gonzofilter.tar
BuildRequires: golang-bin
BuildRequires: golang-etcd-bbolt-devel
BuildRequires: golang-x-sys-devel
BuildRequires: golang-x-text-devel
%description
Bayes classifying spam mail filter
%prep
%if %{with srpm}
%autosetup -n gonzofilter
%endif
# TODO remove GOPATH when we don't want to support old
# module-ignorant Go versions, anymore ...
%build
GO111MODULE=off GOPATH=$HOME/go:/usr/share/gocode go build
%install
mkdir -p %{buildroot}/usr/bin
cp gonzofilter %{buildroot}/usr/bin
%check
GO111MODULE=off GOPATH=$HOME/go:/usr/share/gocode go test -v
%files
/usr/bin/gonzofilter
%doc README.md
%changelog
* Thu Sep 17 2020 Georg Sauthoff <mail@gms.tf> - 0.5.0-1
- initial packaging