]> git.pld-linux.org Git - packages/libidn.git/blobdiff - libidn.spec
- added without python bcond
[packages/libidn.git] / libidn.spec
index e6ac06385198213be81517214789462652ca821e..be2c308512b580e50cb18d46902d1054dd69218a 100644 (file)
@@ -3,26 +3,27 @@
 #
 # 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
 Name:          libidn
-Version:       0.5.11
+Version:       0.5.20
 Release:       1
 License:       LGPL v2.1
 Group:         Libraries
 Source0:       http://josefsson.org/libidn/releases/%{name}-%{version}.tar.gz
-# Source0-md5: e4f6ca9464ecbf2fc1e837869f2f3c8d
+# Source0-md5: b8ccbdf43b8da1722a6773c4e426d059
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-python.patch
 URL:           http://www.gnu.org/software/libidn/
 BuildRequires: autoconf >= 2.59
-BuildRequires: automake >= 1.9
+BuildRequires: automake >= 1:1.9
 BuildRequires: gettext-devel >= 0.14.1
 %{?with_java:BuildRequires:    jdk}
 BuildRequires: libtool >= 2:1.5
-Buildrequires: perl-base
-BuildRequires: python-devel
+BuildRequires: perl-base
+%{?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)
@@ -122,8 +123,10 @@ domen).
 
 %{__make}
 
+%if %{with python}
 %{__make} -C contrib/idn-python \
-       INCLUDE="/usr/include/python2.3 %{rpmcflags} -I../../lib -L../../lib/.libs"
+       INCLUDE="/usr/include/python2.4 -I/usr/include/python2.3 %{rpmcflags} -I../../lib -L../../lib/.libs"
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -131,7 +134,9 @@ rm -rf $RPM_BUILD_ROOT
 %{__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}
 
@@ -176,6 +181,8 @@ rm -rf $RPM_BUILD_ROOT
 %{_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
This page took 0.069542 seconds and 4 git commands to generate.