2 # - prepare package with web-files and java from contrib
5 %bcond_without dotnet # don't build C# binding
6 %bcond_with java # build Java implementation
7 %bcond_without python # don't build python interface
9 %ifnarch %{ix86} %{x8664} arm hppa ppc s390 s390x
15 Summary: Internationalized string processing library
16 Summary(pl): Biblioteka do przetwarzania umiêdzynarodowionych ³añcuchów
22 Source0: http://josefsson.org/libidn/releases/%{name}-%{version}.tar.gz
23 # Source0-md5: 4991ab5ce647c89fa4812d9a1700a8f6
24 Patch0: %{name}-info.patch
25 Patch1: %{name}-python.patch
26 URL: http://www.gnu.org/software/libidn/
27 BuildRequires: autoconf >= 2.59
28 BuildRequires: automake >= 1:1.9
29 BuildRequires: gettext-devel >= 0.14.1
30 %{?with_java:BuildRequires: jdk}
31 BuildRequires: libtool >= 2:1.5
32 %{?with_dotnet:BuildRequires: mono}
33 BuildRequires: perl-base
34 %{?with_python:BuildRequires: python-devel >= 1:2.3}
35 BuildRequires: texinfo >= 4.7
36 Requires(post,postun): /sbin/ldconfig
37 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
40 %define _emacs_lispdir %{_datadir}/emacs/site-lisp
43 GNU Libidn is an implementation of the Stringprep, Punycode and IDNA
44 specifications defined by the IETF Internationalized Domain Names
45 (IDN) working group, used for internationalized domain names.
48 GNU Libidn to implementacja specyfikacji Stringprep, Punycode i IDNA
49 zdefiniowanych przez grupê robocz± IETF Internationalized Domain Names
50 (IDN), zajmuj±c± siê umiêdzynarodowionymi nazwami domen.
53 Summary: Header files for libidn library
54 Summary(pl): Pliki nag³ówkowe biblioteki libidn
55 Group: Development/Libraries
56 Requires: %{name} = %{version}-%{release}
59 Header files for libidn library.
61 %description devel -l pl
62 Pliki nag³ówkowe biblioteki libidn.
65 Summary: Static libidn library
66 Summary(pl): Statyczna biblioteka libidn
67 Group: Development/Libraries
68 Requires: %{name}-devel = %{version}-%{release}
71 Static libidn library.
73 %description static -l pl
74 Statyczna biblioteka libidn.
76 %package -n dotnet-libidn
77 Summary: C# binding for libidn
78 Summary(pl): Wi±zanie C# dla libidn
80 Requires: %{name} = %{version}-%{release}
82 %description -n dotnet-libidn
83 C# binding for libidn.
85 %description -n dotnet-libidn -l pl
86 Wi±zanie C# dla libidn.
88 %package -n emacs-libidn-pkg
89 Summary: IDN support files for emacs
90 Summary(pl): Obs³uga IDN dla emacsa
91 Group: Applications/Editors/Emacs
92 Requires: %{name} = %{version}-%{release}
94 %description -n emacs-libidn-pkg
95 IDN support files for emacs.
97 %description -n emacs-libidn-pkg -l pl
98 Obs³uga IDN dla emacsa.
100 %package -n java-libidn
101 Summary: Java implementation of libidn
102 Summary(pl): Implementacja libidn w Javie
106 %description -n java-libidn
107 Java implementation of libidn (internationalized domain names
110 %description -n java-libidn -l pl
111 Implementacja libidn (biblioteki umiêdzynarodowionych nazw domen) w
114 %package -n python-idn
115 Summary: Python interface to libidn
116 Summary(pl): Pythonowy interfejs do libidn
117 Group: Libraries/Python
118 Requires: %{name} = %{version}-%{release}
119 %pyrequires_eq python-libs
121 %description -n python-idn
122 Python interface to libidn (internationalized domain names library).
124 %description -n python-idn -l pl
125 Pythonowy interfejs do libidn (biblioteki umiêdzynarodowionych nazw
136 %{__aclocal} -I m4 -I gl/m4
141 %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
142 %{?with_java:--enable-java} \
143 --with-lispdir=%{_emacs_lispdir}
148 %{__make} -C contrib/idn-python \
149 INCLUDE="/usr/include/python2.4 -I/usr/include/python2.3 %{rpmcflags} -I../../lib -L../../lib/.libs"
153 rm -rf $RPM_BUILD_ROOT
156 DESTDIR=$RPM_BUILD_ROOT
159 install -D contrib/idn-python/idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
165 rm -rf $RPM_BUILD_ROOT
169 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
173 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
175 %files -f %{name}.lang
176 %defattr(644,root,root,755)
177 %doc AUTHORS ChangeLog FAQ NEWS README* THANKS TODO doc/libidn.html contrib
178 %attr(755,root,root) %{_bindir}/idn
179 %attr(755,root,root) %{_libdir}/libidn.so.*.*.*
180 %{_mandir}/man1/idn.1*
181 %{_infodir}/libidn.info*
184 %defattr(644,root,root,755)
185 %attr(755,root,root) %{_libdir}/libidn.so
188 %{_pkgconfigdir}/libidn.pc
192 %defattr(644,root,root,755)
196 %files -n dotnet-libidn
197 %defattr(644,root,root,755)
198 # why not in gac? does it work here?
199 %{_libdir}/Libidn.dll
202 %files -n emacs-libidn-pkg
203 %defattr(644,root,root,755)
204 %{_emacs_lispdir}/*.el
207 %files -n java-libidn
208 %defattr(644,root,root,755)
209 %{_datadir}/java/libidn*.jar
214 %defattr(644,root,root,755)
215 %attr(755,root,root) %{py_sitedir}/idn.so