]> git.pld-linux.org Git - packages/libidn.git/blobdiff - libidn.spec
- added without python bcond
[packages/libidn.git] / libidn.spec
index 9a56f29d951fe8dd3a7054d745bad97a98130209..be2c308512b580e50cb18d46902d1054dd69218a 100644 (file)
@@ -3,16 +3,17 @@
 #
 # 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.18
+Version:       0.5.20
 Release:       1
 License:       LGPL v2.1
 Group:         Libraries
 Source0:       http://josefsson.org/libidn/releases/%{name}-%{version}.tar.gz
-# Source0-md5: fcaa0168fd1c46516f1eb31241dd183c
+# Source0-md5: b8ccbdf43b8da1722a6773c4e426d059
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-python.patch
 URL:           http://www.gnu.org/software/libidn/
@@ -22,7 +23,7 @@ BuildRequires:        gettext-devel >= 0.14.1
 %{?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)
@@ -122,8 +123,10 @@ domen).
 
 %{__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
@@ -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.092872 seconds and 4 git commands to generate.