SPECS: offlineimap.spec - install python modules, cleanups; works
zbyniu
zbyniu at pld-linux.org
Mon Oct 3 04:37:55 CEST 2005
Author: zbyniu Date: Mon Oct 3 02:37:55 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- install python modules, cleanups; works
---- Files affected:
SPECS:
offlineimap.spec (1.1 -> 1.2)
---- Diffs:
================================================================
Index: SPECS/offlineimap.spec
diff -u SPECS/offlineimap.spec:1.1 SPECS/offlineimap.spec:1.2
--- SPECS/offlineimap.spec:1.1 Mon Oct 3 03:49:42 2005
+++ SPECS/offlineimap.spec Mon Oct 3 04:37:49 2005
@@ -9,8 +9,8 @@
Source0: http://gopher.quux.org:70/devel/offlineimap/%{name}_%{version}.tar.gz
# Source0-md5: 41af0924d5e19480377616f4b1d059e1
URL: gopher://gopher.quux.org/1/devel/offlineimap
+BuildRequires: python-devel
#BuildRequires: rpm-pythonprov >= 4.1-13
-BuildArch: noarch
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
%description
@@ -28,11 +28,15 @@
%prep
%setup -q -n %{name}
sed -i 's/env python2.3/python/' *.py
-%build
-%{__make}
%install
rm -rf $RPM_BUILD_ROOT
+python ./setup.py install \
+ --optimize=2 \
+ --root=$RPM_BUILD_ROOT
+
+find $RPM_BUILD_ROOT%{py_sitescriptdir} -type f -name "*.py" | xargs rm
+
install -d $RPM_BUILD_ROOT{%{_bindir},%{_mandir}/man1}
install %{name}.1 $RPM_BUILD_ROOT%{_mandir}/man1
install %{name}.py $RPM_BUILD_ROOT%{_bindir}/%{name}
@@ -45,6 +49,7 @@
%doc ChangeLog README offlineimap.conf*
%{_mandir}/man1/*
%attr(755,root,root) %{_bindir}/*
+%{py_sitescriptdir}/%{name}
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -52,6 +57,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.2 2005/10/03 02:37:49 zbyniu
+- install python modules, cleanups; works
+
Revision 1.1 2005/10/03 01:49:42 zbyniu
- new, raw
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/offlineimap.spec?r1=1.1&r2=1.2&f=u
More information about the pld-cvs-commit
mailing list