[devel] mailutils
Dmitry V. Levin
ldv на altlinux.org
Вт Фев 16 02:47:33 UTC 2010
On Tue, Feb 16, 2010 at 04:02:44AM +0300, Dmitry V. Levin wrote:
[...]
> Вывод: просто в mailutils.spec надо было распилить python-module-mailutils
> и поправить пути:
Альтернативный вариант исправления -- перенести всё в arch specific.
Выглядит проще, но зато не upstreamable.
--- a/mailutils.spec
+++ b/mailutils.spec
@@ -39,6 +39,9 @@ Provides: /bin/mail
Requires: libmailutils = %{version}-%{release}, guile >= 1.8, libreadline
BuildRequires: rpm-build-licenses
+# due to autopoint
+BuildRequires: cvs
+
# Automatically added by buildreq on Thu Mar 12 2009
BuildRequires: emacs-X11 flex gcc-c++ guile18-devel libgmp-devel libldap-devel libltdl-devel libncurses-devel libpam-devel libreadline-devel libwrap-devel python-devel
@@ -192,14 +195,13 @@ Group: System/Libraries
The libraries for integration with Python
%package -n python-module-mailutils
-Summary: GNU Mailutils: Python modules.
-Copyright: %gpl3plus
-Requires: libmailutils = %{version}-%{release}
-Requires: python >= 2.5
+Summary: A Python interface to Mailutils framework
+License: %gpl3plus
Group: Networking/Mail
+Requires: libmailutils = %version-%release
%description -n python-module-mailutils
-Python bindings for GNU Mailutils.
+This package contains Python bindings for GNU Mailutils.
%prep
%if %snapshot
@@ -213,24 +215,20 @@ Python bindings for GNU Mailutils.
gzip ChangeLog
%build
-
-#autoreconf -f -i -s
-
+%autoreconf
%set_verify_elf_method unresolved=relaxed
-%undefine __libtoolize
-CFLAGS="-ltinfo"
+LDFLAGS="-ltinfo"
%configure --enable-mh-utils --with-mh-bindir=%_libexecdir/mu-mh
-%make_build
+# SMP-incompatible build
+%make
%check
-
%make check
%install
-
-make install DESTDIR=%buildroot
+%makeinstall_std
install -d $RPM_BUILD_ROOT/bin
ln -s ..%_bindir/mail "$RPM_BUILD_ROOT/bin/mail"
@@ -351,9 +349,7 @@ rm -f $RPM_BUILD_ROOT%python_sitelibdir/mailutils/c_api.la
%_libdir/libmu_py.so.*
%files -n python-module-mailutils
-%dir %python_sitelibdir/mailutils
-%python_sitelibdir/mailutils/c_api.so
-%python_sitelibdir/mailutils/*.py*
+%python_sitelibdir/mailutils/
%changelog
* Sun Jan 31 2010 Sergey Y. Afonin <asy на altlinux.ru> 2.1-alt0.20091105.3
--- a/mailutils/python/mailutils/Makefile.am
+++ b/mailutils/python/mailutils/Makefile.am
@@ -17,8 +17,8 @@
## Foundation, Inc. 51 Franklin Street, Fifth Floor, Boston, MA
## 02110-1301 USA
-pythonsitedir=@PYTHON_SITE_DIR@
-pythonsite_PYTHON=\
+pythonexecdir=@PYTHON_SITE_DIR@
+pythonexec_PYTHON=\
__init__.py \
error.py \
address.py \
--
ldv
----------- следующая часть -----------
Было удалено вложение не в текстовом формате...
Имя : отсутствует
Тип : application/pgp-signature
Размер : 198 байтов
Описание: отсутствует
Url : <http://lists.altlinux.org/pipermail/devel/attachments/20100216/462b8261/attachment.bin>
Подробная информация о списке рассылки Devel