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} alpha arm hppa ppc s390 s390x sparc sparcv9 sparc64
15 Summary: Internationalized string processing library
16 Summary(pl.UTF-8): Biblioteka do przetwarzania umiędzynarodowionych łańcuchów
22 Source0: http://josefsson.org/libidn/releases/%{name}-%{version}.tar.gz
23 # Source0-md5: dd0222d0961fb432e81e08df43cfb36f
24 Patch0: %{name}-info.patch
25 Patch1: %{name}-python.patch
26 Patch2: %{name}-pl.po-update.patch
27 URL: http://www.gnu.org/software/libidn/
28 BuildRequires: autoconf >= 2.61
29 BuildRequires: automake >= 1:1.10
30 %{?with_java:BuildRequires: gcc-java}
31 BuildRequires: gettext-devel >= 0.16
32 %{?with_java:BuildRequires: gjdoc}
33 BuildRequires: libtool >= 2:1.5
34 %{?with_dotnet:BuildRequires: mono}
35 BuildRequires: perl-base
36 %{?with_python:BuildRequires: python-devel >= 1:2.3}
37 %{?with_python:BuildRequires: rpm-pythonprov}
38 BuildRequires: texinfo >= 4.7
39 Requires(post,postun): /sbin/ldconfig
40 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
43 %define _emacs_lispdir %{_datadir}/emacs/site-lisp
46 GNU Libidn is an implementation of the Stringprep, Punycode and IDNA
47 specifications defined by the IETF Internationalized Domain Names
48 (IDN) working group, used for internationalized domain names.
50 %description -l pl.UTF-8
51 GNU Libidn to implementacja specyfikacji Stringprep, Punycode i IDNA
52 zdefiniowanych przez grupę roboczą IETF Internationalized Domain Names
53 (IDN), zajmującą się umiędzynarodowionymi nazwami domen.
56 Summary: Header files for libidn library
57 Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libidn
58 Group: Development/Libraries
59 Requires: %{name} = %{version}-%{release}
62 Header files for libidn library.
64 %description devel -l pl.UTF-8
65 Pliki nagłówkowe biblioteki libidn.
68 Summary: Static libidn library
69 Summary(pl.UTF-8): Statyczna biblioteka libidn
70 Group: Development/Libraries
71 Requires: %{name}-devel = %{version}-%{release}
74 Static libidn library.
76 %description static -l pl.UTF-8
77 Statyczna biblioteka libidn.
79 %package -n dotnet-libidn
80 Summary: C# binding for libidn
81 Summary(pl.UTF-8): Wiązanie C# dla libidn
83 Requires: %{name} = %{version}-%{release}
85 %description -n dotnet-libidn
86 C# binding for libidn.
88 %description -n dotnet-libidn -l pl.UTF-8
89 Wiązanie C# dla libidn.
91 %package -n emacs-libidn-pkg
92 Summary: IDN support files for emacs
93 Summary(pl.UTF-8): Obsługa IDN dla emacsa
94 Group: Applications/Editors/Emacs
95 Requires: %{name} = %{version}-%{release}
97 %description -n emacs-libidn-pkg
98 IDN support files for emacs.
100 %description -n emacs-libidn-pkg -l pl.UTF-8
101 Obsługa IDN dla emacsa.
103 %package -n java-libidn
104 Summary: Java implementation of libidn
105 Summary(pl.UTF-8): Implementacja libidn w Javie
109 %description -n java-libidn
110 Java implementation of libidn (internationalized domain names
113 %description -n java-libidn -l pl.UTF-8
114 Implementacja libidn (biblioteki umiędzynarodowionych nazw domen) w
117 %package -n python-idn
118 Summary: Python interface to libidn
119 Summary(pl.UTF-8): Pythonowy interfejs do libidn
120 Group: Libraries/Python
121 Requires: %{name} = %{version}-%{release}
122 %pyrequires_eq python-libs
124 %description -n python-idn
125 Python interface to libidn (internationalized domain names library).
127 %description -n python-idn -l pl.UTF-8
128 Pythonowy interfejs do libidn (biblioteki umiędzynarodowionych nazw
142 %{__aclocal} -I m4 -I gl/m4 -I lib/gl/m4
146 JAR=%{_bindir}/fastjar \
148 %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
149 %{?with_java:--enable-java} \
150 --with-lispdir=%{_emacs_lispdir}
155 %{__make} -C contrib/idn-python \
156 INCLUDE="%{py_incdir} %{rpmcflags} -I../../lib -L../../lib/.libs"
160 rm -rf $RPM_BUILD_ROOT
163 DESTDIR=$RPM_BUILD_ROOT
166 install -D contrib/idn-python/idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
171 rm -f $RPM_BUILD_ROOT%{_infodir}/dir
174 rm -rf $RPM_BUILD_ROOT
178 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
182 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
184 %files -f %{name}.lang
185 %defattr(644,root,root,755)
186 %doc AUTHORS ChangeLog FAQ NEWS README* THANKS TODO doc/libidn.html contrib
187 %attr(755,root,root) %{_bindir}/idn
188 %attr(755,root,root) %{_libdir}/libidn.so.*.*.*
189 %{_mandir}/man1/idn.1*
190 %{_infodir}/libidn.info*
193 %defattr(644,root,root,755)
194 %attr(755,root,root) %{_libdir}/libidn.so
197 %{_pkgconfigdir}/libidn.pc
201 %defattr(644,root,root,755)
205 %files -n dotnet-libidn
206 %defattr(644,root,root,755)
207 # why not in gac? does it work here?
208 %{_libdir}/Libidn.dll
211 %files -n emacs-libidn-pkg
212 %defattr(644,root,root,755)
213 %{_emacs_lispdir}/*.el
216 %files -n java-libidn
217 %defattr(644,root,root,755)
218 %{_datadir}/java/libidn*.jar
223 %defattr(644,root,root,755)
224 %attr(755,root,root) %{py_sitedir}/idn.so