1 |
%define name qmqtool |
2 |
%define version 1.14 |
3 |
%define release 1 |
4 |
|
5 |
|
6 |
Summary: A qmail queue manipulation program |
7 |
Name: %{name} |
8 |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
10 |
License: Artistic License |
11 |
Group: Applications/System |
12 |
BuildArch: noarch |
13 |
Url: http://jeremy.kister.net/code/qmqtool |
14 |
Source0: http://jeremy.kister.net/code/qmqtool/files/%{name}-%{version}.tgz |
15 |
Patch0: qmqtool-1.14-dont_check_qmaildir.patch |
16 |
|
17 |
Buildroot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n) |
18 |
|
19 |
%description |
20 |
qmqtool is a qmail queue manipulation program geared towards the |
21 |
viewing and safe modification of the contents in a qmail queue. |
22 |
|
23 |
%prep |
24 |
%setup -q -n %{name}-%{version} |
25 |
%patch0 -p1 |
26 |
|
27 |
%build |
28 |
./configure --qmaildir=/var/qmail |
29 |
%{__make} |
30 |
|
31 |
%install |
32 |
rm -rf %{buildroot} |
33 |
%{__mkdir_p} %{buildroot}%{_bindir} |
34 |
%{__mkdir_p} %{buildroot}%{_mandir}/man8 |
35 |
%{__install} -m 755 qmqtool %{buildroot}%{_bindir} |
36 |
%{__install} -m 644 qmqtool.8 %{buildroot}%{_mandir}/man8/ |
37 |
|
38 |
%clean |
39 |
rm -rf %{buildroot} |
40 |
|
41 |
|
42 |
%files |
43 |
%defattr(-, root, root, -) |
44 |
%doc Artistic README ChangeLog FAQ INSTALL contrib |
45 |
%{_bindir}/* |
46 |
%{_mandir}/man8/* |
47 |
|
48 |
%changelog |
49 |
* Wed Dec 24 2014 Daniel Berteaud <daniel@firewall-services.com> - 1.14-1 |
50 |
- First package |