]> git.pld-linux.org Git - packages/libidn.git/blobdiff - libidn.spec
- updated to 0.6.10, updated pl.po-update patch
[packages/libidn.git] / libidn.spec
index 60a4142c280c070c1b50f72d09bf7bf7506e8f96..921bef80de663a43ad7d6cff368ab1b7da3af7b4 100644 (file)
@@ -2,26 +2,39 @@
 # - prepare package with web-files and java from contrib
 #
 # Conditional build:
-%bcond_with    java    # build Java implementation (but Punycode*.java missing from tar???)
+%bcond_without dotnet  # don't build C# binding
+%bcond_without java    # don't build Java implementation
+%bcond_without python  # don't build python interface
 #
+%ifnarch %{ix86} %{x8664} arm hppa ppc s390 s390x
+%undefine      with_dotnet
+%endif
+%ifarch i386
+%undefine      with_dotnet
+%endif
 Summary:       Internationalized string processing library
 Summary(pl):   Biblioteka do przetwarzania umiêdzynarodowionych ³añcuchów
 Name:          libidn
-Version:       0.4.3
+Version:       0.6.10
 Release:       1
 License:       LGPL v2.1
 Group:         Libraries
 Source0:       http://josefsson.org/libidn/releases/%{name}-%{version}.tar.gz
-# Source0-md5: 037271567340efbe8b23d0aa6c50ea4a
+# Source0-md5: 443c25385059eb72e4588112af72c0c0
 Patch0:                %{name}-info.patch
 Patch1:                %{name}-python.patch
+Patch2:                %{name}-pl.po-update.patch
 URL:           http://www.gnu.org/software/libidn/
-BuildRequires: autoconf >= 2.57
-BuildRequires: automake >= 1.8
-BuildRequires: gettext-devel >= 0.14.1
-%{?with_java:BuildRequires:    jdk}
+BuildRequires: autoconf >= 2.61
+BuildRequires: automake >= 1:1.10
+%{?with_java:BuildRequires:    gcc-java}
+BuildRequires: gettext-devel >= 0.16
+%{?with_java:BuildRequires:    gjdoc}
 BuildRequires: libtool >= 2:1.5
-BuildRequires: python-devel
+%{?with_dotnet:BuildRequires:  mono}
+BuildRequires: perl-base
+%{?with_python:BuildRequires:  python-devel >= 1:2.3}
+%{?with_python:BuildRequires:  rpm-pythonprov}
 BuildRequires: texinfo >= 4.7
 Requires(post,postun): /sbin/ldconfig
 BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
@@ -63,6 +76,18 @@ Static libidn library.
 %description static -l pl
 Statyczna biblioteka libidn.
 
+%package -n dotnet-libidn
+Summary:       C# binding for libidn
+Summary(pl):   Wi±zanie C# dla libidn
+Group:         Libraries
+Requires:      %{name} = %{version}-%{release}
+
+%description -n dotnet-libidn
+C# binding for libidn.
+
+%description -n dotnet-libidn -l pl
+Wi±zanie C# dla libidn.
+
 %package -n emacs-libidn-pkg
 Summary:       IDN support files for emacs
 Summary(pl):   Obs³uga IDN dla emacsa
@@ -94,7 +119,7 @@ Summary:     Python interface to libidn
 Summary(pl):   Pythonowy interfejs do libidn
 Group:         Libraries/Python
 Requires:      %{name} = %{version}-%{release}
-%pyrequires_eq python-lib
+%pyrequires_eq python-libs
 
 %description -n python-idn
 Python interface to libidn (internationalized domain names library).
@@ -107,22 +132,29 @@ domen).
 %setup -q
 %patch0 -p1
 %patch1 -p1
+%patch2 -p1
+
+rm -f po/stamp-po
 
 %build
 %{__gettextize}
 %{__libtoolize}
-%{__aclocal} -I m4
+%{__aclocal} -I m4 -I gl/m4
 %{__autoconf}
 %{__autoheader}
 %{__automake}
+JAR=%{_bindir}/fastjar \
 %configure \
+       %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
        %{?with_java:--enable-java} \
        --with-lispdir=%{_emacs_lispdir}
 
 %{__make}
 
+%if %{with python}
 %{__make} -C contrib/idn-python \
-       INCLUDE="/usr/include/python2.3 %{rpmcflags} -I../../lib -L../../lib/.libs"
+       INCLUDE="%{py_incdir} %{rpmcflags} -I../../lib -L../../lib/.libs"
+%endif
 
 %install
 rm -rf $RPM_BUILD_ROOT
@@ -130,10 +162,14 @@ 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}
 
+rm -f $RPM_BUILD_ROOT%{_infodir}/dir
+
 %clean
 rm -rf $RPM_BUILD_ROOT
 
@@ -165,6 +201,13 @@ rm -rf $RPM_BUILD_ROOT
 %defattr(644,root,root,755)
 %{_libdir}/libidn.a
 
+%if %{with dotnet}
+%files -n dotnet-libidn
+%defattr(644,root,root,755)
+# why not in gac? does it work here?
+%{_libdir}/Libidn.dll
+%endif
+
 %files -n emacs-libidn-pkg
 %defattr(644,root,root,755)
 %{_emacs_lispdir}/*.el
@@ -172,9 +215,11 @@ rm -rf $RPM_BUILD_ROOT
 %if %{with java}
 %files -n java-libidn
 %defattr(644,root,root,755)
-%{_datadir}/java/libidn.jar
+%{_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.068788 seconds and 4 git commands to generate.