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: 20181e7009337e539c2f9a06b10915ec
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.59
29 BuildRequires: automake >= 1:1.9
30 %{?with_java:BuildRequires: gcc-java}
31 BuildRequires: gettext-devel >= 0.14.1
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 BuildRequires: texinfo >= 4.7
38 Requires(post,postun): /sbin/ldconfig
39 BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
42 %define _emacs_lispdir %{_datadir}/emacs/site-lisp
45 GNU Libidn is an implementation of the Stringprep, Punycode and IDNA
46 specifications defined by the IETF Internationalized Domain Names
47 (IDN) working group, used for internationalized domain names.
50 GNU Libidn to implementacja specyfikacji Stringprep, Punycode i IDNA
51 zdefiniowanych przez grupê robocz± IETF Internationalized Domain Names
52 (IDN), zajmuj±c± siê umiêdzynarodowionymi nazwami domen.
55 Summary: Header files for libidn library
56 Summary(pl): Pliki nag³ówkowe biblioteki libidn
57 Group: Development/Libraries
58 Requires: %{name} = %{version}-%{release}
61 Header files for libidn library.
63 %description devel -l pl
64 Pliki nag³ówkowe biblioteki libidn.
67 Summary: Static libidn library
68 Summary(pl): Statyczna biblioteka libidn
69 Group: Development/Libraries
70 Requires: %{name}-devel = %{version}-%{release}
73 Static libidn library.
75 %description static -l pl
76 Statyczna biblioteka libidn.
78 %package -n dotnet-libidn
79 Summary: C# binding for libidn
80 Summary(pl): Wi±zanie C# dla libidn
82 Requires: %{name} = %{version}-%{release}
84 %description -n dotnet-libidn
85 C# binding for libidn.
87 %description -n dotnet-libidn -l pl
88 Wi±zanie C# dla libidn.
90 %package -n emacs-libidn-pkg
91 Summary: IDN support files for emacs
92 Summary(pl): Obs³uga IDN dla emacsa
93 Group: Applications/Editors/Emacs
94 Requires: %{name} = %{version}-%{release}
96 %description -n emacs-libidn-pkg
97 IDN support files for emacs.
99 %description -n emacs-libidn-pkg -l pl
100 Obs³uga IDN dla emacsa.
102 %package -n java-libidn
103 Summary: Java implementation of libidn
104 Summary(pl): Implementacja libidn w Javie
108 %description -n java-libidn
109 Java implementation of libidn (internationalized domain names
112 %description -n java-libidn -l pl
113 Implementacja libidn (biblioteki umiêdzynarodowionych nazw domen) w
116 %package -n python-idn
117 Summary: Python interface to libidn
118 Summary(pl): Pythonowy interfejs do libidn
119 Group: Libraries/Python
120 Requires: %{name} = %{version}-%{release}
121 %pyrequires_eq python-libs
123 %description -n python-idn
124 Python interface to libidn (internationalized domain names library).
126 %description -n python-idn -l pl
127 Pythonowy interfejs do libidn (biblioteki umiêdzynarodowionych nazw
141 %{__aclocal} -I m4 -I gl/m4
145 JAR=%{_bindir}/fastjar \
147 %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
148 %{?with_java:--enable-java} \
149 --with-lispdir=%{_emacs_lispdir}
154 %{__make} -C contrib/idn-python \
155 INCLUDE="/usr/include/python2.4 -I/usr/include/python2.3 %{rpmcflags} -I../../lib -L../../lib/.libs"
159 rm -rf $RPM_BUILD_ROOT
162 DESTDIR=$RPM_BUILD_ROOT
165 install -D contrib/idn-python/idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
171 rm -rf $RPM_BUILD_ROOT
175 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
179 [ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
181 %files -f %{name}.lang
182 %defattr(644,root,root,755)
183 %doc AUTHORS ChangeLog FAQ NEWS README* THANKS TODO doc/libidn.html contrib
184 %attr(755,root,root) %{_bindir}/idn
185 %attr(755,root,root) %{_libdir}/libidn.so.*.*.*
186 %{_mandir}/man1/idn.1*
187 %{_infodir}/libidn.info*
190 %defattr(644,root,root,755)
191 %attr(755,root,root) %{_libdir}/libidn.so
194 %{_pkgconfigdir}/libidn.pc
198 %defattr(644,root,root,755)
202 %files -n dotnet-libidn
203 %defattr(644,root,root,755)
204 # why not in gac? does it work here?
205 %{_libdir}/Libidn.dll
208 %files -n emacs-libidn-pkg
209 %defattr(644,root,root,755)
210 %{_emacs_lispdir}/*.el
213 %files -n java-libidn
214 %defattr(644,root,root,755)
215 %{_datadir}/java/libidn*.jar
220 %defattr(644,root,root,755)
221 %attr(755,root,root) %{py_sitedir}/idn.so