2 # - prepare package with web-files and java from contrib
5 %bcond_without dotnet # don't build C# binding
6 %bcond_without java # don't 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: b1a771ed18b1ed4b83478a78057134bb
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 %{?with_java:BuildRequires: gcc-java}
30 BuildRequires: gettext-devel >= 0.14.1
31 %{?with_java:BuildRequires: gjdoc}
32 BuildRequires: libtool >= 2:1.5
33 %{?with_dotnet:BuildRequires: mono}
34 BuildRequires: perl-base
35 %{?with_python:BuildRequires: python-devel >= 1:2.3}
36 BuildRequires: texinfo >= 4.7
37 Requires(post,postun): /sbin/ldconfig
38 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41 %define _emacs_lispdir %{_datadir}/emacs/site-lisp
44 GNU Libidn is an implementation of the Stringprep, Punycode and IDNA
45 specifications defined by the IETF Internationalized Domain Names
46 (IDN) working group, used for internationalized domain names.
49 GNU Libidn to implementacja specyfikacji Stringprep, Punycode i IDNA
50 zdefiniowanych przez grupê robocz± IETF Internationalized Domain Names
51 (IDN), zajmuj±c± siê umiêdzynarodowionymi nazwami domen.
54 Summary: Header files for libidn library
55 Summary(pl): Pliki nag³ówkowe biblioteki libidn
56 Group: Development/Libraries
57 Requires: %{name} = %{version}-%{release}
60 Header files for libidn library.
62 %description devel -l pl
63 Pliki nag³ówkowe biblioteki libidn.
66 Summary: Static libidn library
67 Summary(pl): Statyczna biblioteka libidn
68 Group: Development/Libraries
69 Requires: %{name}-devel = %{version}-%{release}
72 Static libidn library.
74 %description static -l pl
75 Statyczna biblioteka libidn.
77 %package -n dotnet-libidn
78 Summary: C# binding for libidn
79 Summary(pl): Wi±zanie C# dla libidn
81 Requires: %{name} = %{version}-%{release}
83 %description -n dotnet-libidn
84 C# binding for libidn.
86 %description -n dotnet-libidn -l pl
87 Wi±zanie C# dla libidn.
89 %package -n emacs-libidn-pkg
90 Summary: IDN support files for emacs
91 Summary(pl): Obs³uga IDN dla emacsa
92 Group: Applications/Editors/Emacs
93 Requires: %{name} = %{version}-%{release}
95 %description -n emacs-libidn-pkg
96 IDN support files for emacs.
98 %description -n emacs-libidn-pkg -l pl
99 Obs³uga IDN dla emacsa.
101 %package -n java-libidn
102 Summary: Java implementation of libidn
103 Summary(pl): Implementacja libidn w Javie
107 %description -n java-libidn
108 Java implementation of libidn (internationalized domain names
111 %description -n java-libidn -l pl
112 Implementacja libidn (biblioteki umiêdzynarodowionych nazw domen) w
115 %package -n python-idn
116 Summary: Python interface to libidn
117 Summary(pl): Pythonowy interfejs do libidn
118 Group: Libraries/Python
119 Requires: %{name} = %{version}-%{release}
120 %pyrequires_eq python-libs
122 %description -n python-idn
123 Python interface to libidn (internationalized domain names library).
125 %description -n python-idn -l pl
126 Pythonowy interfejs do libidn (biblioteki umiêdzynarodowionych nazw
137 %{__aclocal} -I m4 -I gl/m4
141 JAR=%{_bindir}/fastjar \
143 %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
144 %{?with_java:--enable-java} \
145 --with-lispdir=%{_emacs_lispdir}
150 %{__make} -C contrib/idn-python \
151 INCLUDE="/usr/include/python2.4 -I/usr/include/python2.3 %{rpmcflags} -I../../lib -L../../lib/.libs"
155 rm -rf $RPM_BUILD_ROOT
158 DESTDIR=$RPM_BUILD_ROOT
161 install -D contrib/idn-python/idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
167 rm -rf $RPM_BUILD_ROOT
171 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
175 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
177 %files -f %{name}.lang
178 %defattr(644,root,root,755)
179 %doc AUTHORS ChangeLog FAQ NEWS README* THANKS TODO doc/libidn.html contrib
180 %attr(755,root,root) %{_bindir}/idn
181 %attr(755,root,root) %{_libdir}/libidn.so.*.*.*
182 %{_mandir}/man1/idn.1*
183 %{_infodir}/libidn.info*
186 %defattr(644,root,root,755)
187 %attr(755,root,root) %{_libdir}/libidn.so
190 %{_pkgconfigdir}/libidn.pc
194 %defattr(644,root,root,755)
198 %files -n dotnet-libidn
199 %defattr(644,root,root,755)
200 # why not in gac? does it work here?
201 %{_libdir}/Libidn.dll
204 %files -n emacs-libidn-pkg
205 %defattr(644,root,root,755)
206 %{_emacs_lispdir}/*.el
209 %files -n java-libidn
210 %defattr(644,root,root,755)
211 %{_datadir}/java/libidn*.jar
216 %defattr(644,root,root,755)
217 %attr(755,root,root) %{py_sitedir}/idn.so