SPECS: python-elspy.spec - build exim module

arekm arekm at pld-linux.org
Thu Sep 1 17:47:40 CEST 2005


Author: arekm                        Date: Thu Sep  1 15:47:40 2005 GMT
Module: SPECS                         Tag: HEAD
---- Log message:
- build exim module

---- Files affected:
SPECS:
   python-elspy.spec (1.2 -> 1.3) 

---- Diffs:

================================================================
Index: SPECS/python-elspy.spec
diff -u SPECS/python-elspy.spec:1.2 SPECS/python-elspy.spec:1.3
--- SPECS/python-elspy.spec:1.2	Thu Sep  1 17:09:13 2005
+++ SPECS/python-elspy.spec	Thu Sep  1 17:47:35 2005
@@ -11,9 +11,9 @@
 Source0:	http://elspy.sourceforge.net/%{module}-%{version}.tar.gz
 # Source0-md5:	5161553b58eedf8107048d0cd79c2360
 URL:		http://elspy.sourceforge.net/
-BuildRequires:	acl-devel
+BuildRequires:	exim-devel
 %pyrequires_eq	python-libs
-Requires:	exim >= 4.0
+Requires:	exim >= 4.52-4
 BuildRoot:	%{tmpdir}/%{name}-%{version}-root-%(id -u -n)
 
 %description
@@ -26,13 +26,20 @@
 %prep
 %setup -q -n %{module}-%{version}
 
+%build
+%{__cc} %{rpmcflags} %{rpmldflags} -fPIC -I%{_includedir}/exim -I%{_includedir}/python2.4 \
+        -lpython -shared %{module}.c -o %{module}.so
+
 %install
 rm -rf $RPM_BUILD_ROOT
+install -d $RPM_BUILD_ROOT%{_libdir}/exim
 
 python setup.py install \
 	--root=$RPM_BUILD_ROOT \
 	--optimize=2
 
+install %{module}.so $RPM_BUILD_ROOT%{_libdir}/exim
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -41,6 +48,7 @@
 %doc examples/*.py README.txt CHANGES.txt
 %dir %{py_sitescriptdir}/%{module}
 %attr(755,root,root) %{py_sitescriptdir}/%{module}/*.py[co]
+%attr(755,root,root) %{_libdir}/exim/%{module}.so
 
 %define date	%(echo `LC_ALL="C" date +"%a %b %d %Y"`)
 %changelog
@@ -48,6 +56,9 @@
 All persons listed below can be reached at <cvs_login>@pld-linux.org
 
 $Log$
+Revision 1.3  2005/09/01 15:47:35  arekm
+- build exim module
+
 Revision 1.2  2005/09/01 15:09:13  arekm
 - more docs
 
================================================================

---- CVS-web:
    http://cvs.pld-linux.org/SPECS/python-elspy.spec?r1=1.2&r2=1.3&f=u




More information about the pld-cvs-commit mailing list