Build on EL5
This commit is contained in:
@@ -18,6 +18,7 @@ include cid2spf.py
|
|||||||
include spfquery.py
|
include spfquery.py
|
||||||
include test.py
|
include test.py
|
||||||
include sample.py
|
include sample.py
|
||||||
|
include milter-template.py
|
||||||
include spfmilter.py
|
include spfmilter.py
|
||||||
include spfmilter.rc
|
include spfmilter.rc
|
||||||
include spfmilter.cfg
|
include spfmilter.cfg
|
||||||
|
|||||||
+6
-3
@@ -19,7 +19,7 @@
|
|||||||
%endif
|
%endif
|
||||||
# RH9, other systems (single ps line per process)
|
# RH9, other systems (single ps line per process)
|
||||||
%ifos Linux
|
%ifos Linux
|
||||||
%define python python2.4
|
%define python python
|
||||||
%else
|
%else
|
||||||
%define python python
|
%define python python
|
||||||
%endif
|
%endif
|
||||||
@@ -35,7 +35,7 @@ Version: %{version}
|
|||||||
Release: %{release}
|
Release: %{release}
|
||||||
Source: %{name}-%{version}.tar.gz
|
Source: %{name}-%{version}.tar.gz
|
||||||
#Patch: %{name}-%{version}.patch
|
#Patch: %{name}-%{version}.patch
|
||||||
Copyright: GPL
|
License: GPL
|
||||||
Group: Development/Libraries
|
Group: Development/Libraries
|
||||||
BuildRoot: %{_tmppath}/%{name}-buildroot
|
BuildRoot: %{_tmppath}/%{name}-buildroot
|
||||||
Prefix: %{_prefix}
|
Prefix: %{_prefix}
|
||||||
@@ -87,6 +87,7 @@ env CFLAGS="$RPM_OPT_FLAGS" LDFLAGS="$LDFLAGS" %{python} setup.py build
|
|||||||
%install
|
%install
|
||||||
rm -rf $RPM_BUILD_ROOT
|
rm -rf $RPM_BUILD_ROOT
|
||||||
%{python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
%{python} setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
|
||||||
|
grep '.pyc$' INSTALLED_FILES | sed -e 's/c$/o/' >>INSTALLED_FILES
|
||||||
mkdir -p $RPM_BUILD_ROOT/var/log/milter
|
mkdir -p $RPM_BUILD_ROOT/var/log/milter
|
||||||
mkdir -p $RPM_BUILD_ROOT/etc/mail
|
mkdir -p $RPM_BUILD_ROOT/etc/mail
|
||||||
mkdir $RPM_BUILD_ROOT/var/log/milter/save
|
mkdir $RPM_BUILD_ROOT/var/log/milter/save
|
||||||
@@ -210,6 +211,7 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%dir /var/log/milter
|
%dir /var/log/milter
|
||||||
%dir /var/log/milter/save
|
%dir /var/log/milter/save
|
||||||
%config %{libdir}/bms.py
|
%config %{libdir}/bms.py
|
||||||
|
%{libdir}/bms.py?
|
||||||
%config(noreplace) /var/log/milter/strike3.txt
|
%config(noreplace) /var/log/milter/strike3.txt
|
||||||
%config(noreplace) /var/log/milter/softfail.txt
|
%config(noreplace) /var/log/milter/softfail.txt
|
||||||
%config(noreplace) /var/log/milter/fail.txt
|
%config(noreplace) /var/log/milter/fail.txt
|
||||||
@@ -222,8 +224,9 @@ rm -rf $RPM_BUILD_ROOT
|
|||||||
%files spf
|
%files spf
|
||||||
%defattr(-,root,root)
|
%defattr(-,root,root)
|
||||||
%dir /var/log/milter
|
%dir /var/log/milter
|
||||||
%{libdir}/spfmilter.py
|
%{libdir}/spfmilter.py*
|
||||||
%config(noreplace) /etc/mail/spfmilter.cfg
|
%config(noreplace) /etc/mail/spfmilter.cfg
|
||||||
|
/etc/rc.d/init.d/spfmilter
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
* Fri Jan 05 2007 Stuart Gathman <stuart@bmsi.com> 0.8.8-1
|
* Fri Jan 05 2007 Stuart Gathman <stuart@bmsi.com> 0.8.8-1
|
||||||
|
|||||||
Reference in New Issue
Block a user