-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.spec
59 lines (48 loc) · 1.78 KB
/
template.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
%define version @@@Version@@@
%define builddir postfix-logsums-%{version}
Name: postfix-logsums
Version: %{version}
Release: @@@Release@@@%{?dist}
Summary: A log analyzer/summarizer for the Postfix MTA.
Group: Development/Languages/Python
License: LGPL-3
Distribution: Frank Brehm
URL: https://github.com/pixelpark/postfix-logsums
Source0: postfix-logsums.%{version}.tar.gz
BuildRequires: python@@@py_version_nodot@@@
BuildRequires: python@@@py_version_nodot@@@-libs
BuildRequires: python@@@py_version_nodot@@@-devel
BuildRequires: python@@@py_version_nodot@@@-setuptools
BuildRequires: python@@@py_version_nodot@@@-babel
BuildRequires: python@@@py_version_nodot@@@-fb-logging >= 0.5.0
Requires: python@@@py_version_nodot@@@
Requires: python@@@py_version_nodot@@@-libs
Requires: python@@@py_version_nodot@@@-babel
Recommends: python@@@py_version_nodot@@@-pyyaml
BuildArch: noarch
%description
A log analyzer/summarizer for the Postfix MTA.
It provides both a Python module postfix_logsums as well
as the executable script postfix-logsums based on the
latter module. The Python module may be used as an API.
This package provides the following script:
* postfix-logsums - The executable script for analyzing Postfix logs.
This is the Python@@@py_version_nodot@@@ version.
%prep
echo "Preparing '${builddir}-' ..."
%setup -n %{builddir}
%build
cd ../%{builddir}
python@@@py_version_dot@@@ setup.py build
%install
cd ../%{builddir}
echo "Buildroot: %{buildroot}"
python@@@py_version_dot@@@ setup.py install --prefix=%{_prefix} --root=%{buildroot}
%files
%defattr(-,root,root,-)
%license LICENSE
%doc LICENSE README.md requirements.txt debian/changelog
%{_bindir}/*
%{_datadir}/*
%{python3_sitelib}/*
%changelog