SPECS: libidn.spec - added without python bcond
sparky
sparky at pld-linux.org
Sat Dec 10 14:56:12 CET 2005
Author: sparky Date: Sat Dec 10 13:56:12 2005 GMT
Module: SPECS Tag: HEAD
---- Log message:
- added without python bcond
---- Files affected:
SPECS:
libidn.spec (1.43 -> 1.44)
---- Diffs:
================================================================
Index: SPECS/libidn.spec
diff -u SPECS/libidn.spec:1.43 SPECS/libidn.spec:1.44
--- SPECS/libidn.spec:1.43 Fri Oct 28 00:14:46 2005
+++ SPECS/libidn.spec Sat Dec 10 14:56:06 2005
@@ -4,6 +4,7 @@
#
# Conditional build:
%bcond_with java # build Java implementation
+%bcond_without python # don't build python interface
#
Summary: Internationalized string processing library
Summary(pl): Biblioteka do przetwarzania umiędzynarodowionych łańcuchów
@@ -23,7 +24,7 @@
%{?with_java:BuildRequires: jdk}
BuildRequires: libtool >= 2:1.5
BuildRequires: perl-base
-BuildRequires: python-devel >= 1:2.3
+%{?with_python:BuildRequires: python-devel >= 1:2.3}
BuildRequires: texinfo >= 4.7
Requires(post,postun): /sbin/ldconfig
BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -123,8 +124,10 @@
%{__make}
+%if %{with python}
%{__make} -C contrib/idn-python \
INCLUDE="/usr/include/python2.4 -I/usr/include/python2.3 %{rpmcflags} -I../../lib -L../../lib/.libs"
+%endif
%install
rm -rf $RPM_BUILD_ROOT
@@ -132,7 +135,9 @@
%{__make} install \
DESTDIR=$RPM_BUILD_ROOT
+%if %{with python}
install -D contrib/idn-python/idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
+%endif
%find_lang %{name}
@@ -177,9 +182,11 @@
%{_datadir}/java/libidn*.jar
%endif
+%if %{with python}
%files -n python-idn
%defattr(644,root,root,755)
%attr(755,root,root) %{py_sitedir}/idn.so
+%endif
%define date %(echo `LC_ALL="C" date +"%a %b %d %Y"`)
%changelog
@@ -187,6 +194,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.44 2005/12/10 13:56:06 sparky
+- added without python bcond
+
Revision 1.43 2005/10/27 22:14:46 qboosh
- updated to 0.5.20
================================================================
---- CVS-web:
http://cvs.pld-linux.org/SPECS/libidn.spec?r1=1.43&r2=1.44&f=u
More information about the pld-cvs-commit
mailing list