]> git.pld-linux.org Git - packages/libidn.git/blame - libidn.spec
- updated to 1.12
[packages/libidn.git] / libidn.spec
CommitLineData
2bd4615b 1# TODO:
b7ba59bb 2# - prepare package with web-files and java from contrib
2bd4615b 3#
2815d157 4# Conditional build:
acc88d94
ER
5%if "%{pld_release}" == "ac"
6%bcond_with dotnet # don't build C# binding
7%bcond_with java # don't build Java implementation
8%else
a59bf416
ER
9%bcond_without dotnet # don't build C# binding
10%bcond_without java # don't build Java implementation
acc88d94 11%endif
6f6febb4 12%bcond_without python # don't build python interface
2815d157 13#
4c6b08d0 14%ifnarch %{ix86} %{x8664} alpha arm hppa ppc s390 s390x sparc sparcv9 sparc64
043a7186
JB
15%undefine with_dotnet
16%endif
17%ifarch i386
18%undefine with_dotnet
19%endif
e2c9e4f6 20Summary: Internationalized string processing library
21d86bf8 21Summary(pl.UTF-8): Biblioteka do przetwarzania umiędzynarodowionych łańcuchów
e2c9e4f6 22Name: libidn
1780f5c9 23Version: 1.12
9b67f080 24Release: 1
658a2f28 25License: LGPL v2.1+ (library), GPL v3+ (utilities)
e2c9e4f6 26Group: Libraries
268ecb6e 27Source0: http://ftp.gnu.org/gnu/libidn/%{name}-%{version}.tar.gz
1780f5c9 28# Source0-md5: 49db2165868d3ec2af00e0b7d0924dd8
e2c9e4f6 29Patch0: %{name}-info.patch
47ca58ee 30Patch1: %{name}-python.patch
e2c9e4f6 31URL: http://www.gnu.org/software/libidn/
b3692cda
JB
32BuildRequires: autoconf >= 2.61
33BuildRequires: automake >= 1:1.10
b5892520 34%{?with_java:BuildRequires: gcc-java}
1ff0f822 35BuildRequires: gettext-devel >= 0.17
b5892520 36%{?with_java:BuildRequires: gjdoc}
5498ae81 37BuildRequires: libtool >= 2:1.5
043a7186 38%{?with_dotnet:BuildRequires: mono}
f22ac790 39BuildRequires: perl-base
6f6febb4 40%{?with_python:BuildRequires: python-devel >= 1:2.3}
5ea30155 41%{?with_python:BuildRequires: rpm-pythonprov}
a281a682 42BuildRequires: rpmbuild(macros) >= 1.384
acc88d94 43BuildRequires: rpm >= 4.4.9-56
faf69423 44BuildRequires: texinfo >= 4.7
e2c9e4f6
JB
45Requires(post,postun): /sbin/ldconfig
46BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
47
ab54d2cd
JB
48# is it correct?
49%define _emacs_lispdir %{_datadir}/emacs/site-lisp
50
e2c9e4f6
JB
51%description
52GNU Libidn is an implementation of the Stringprep, Punycode and IDNA
53specifications defined by the IETF Internationalized Domain Names
54(IDN) working group, used for internationalized domain names.
55
3591cf04 56%description -l pl.UTF-8
e2c9e4f6 57GNU Libidn to implementacja specyfikacji Stringprep, Punycode i IDNA
3591cf04
JR
58zdefiniowanych przez grupę roboczą IETF Internationalized Domain Names
59(IDN), zajmującą się umiędzynarodowionymi nazwami domen.
e2c9e4f6
JB
60
61%package devel
62Summary: Header files for libidn library
21d86bf8 63Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libidn
658a2f28 64License: LGPL v2.1+
e2c9e4f6 65Group: Development/Libraries
5498ae81 66Requires: %{name} = %{version}-%{release}
e2c9e4f6
JB
67
68%description devel
69Header files for libidn library.
70
3591cf04
JR
71%description devel -l pl.UTF-8
72Pliki nagłówkowe biblioteki libidn.
e2c9e4f6
JB
73
74%package static
75Summary: Static libidn library
21d86bf8 76Summary(pl.UTF-8): Statyczna biblioteka libidn
658a2f28 77License: LGPL v2.1+
e2c9e4f6 78Group: Development/Libraries
5498ae81 79Requires: %{name}-devel = %{version}-%{release}
e2c9e4f6
JB
80
81%description static
82Static libidn library.
83
3591cf04 84%description static -l pl.UTF-8
e2c9e4f6
JB
85Statyczna biblioteka libidn.
86
043a7186
JB
87%package -n dotnet-libidn
88Summary: C# binding for libidn
21d86bf8 89Summary(pl.UTF-8): Wiązanie C# dla libidn
658a2f28 90License: LGPL v2.1+
043a7186
JB
91Group: Libraries
92Requires: %{name} = %{version}-%{release}
93
94%description -n dotnet-libidn
95C# binding for libidn.
96
3591cf04
JR
97%description -n dotnet-libidn -l pl.UTF-8
98Wiązanie C# dla libidn.
043a7186 99
ab54d2cd
JB
100%package -n emacs-libidn-pkg
101Summary: IDN support files for emacs
21d86bf8 102Summary(pl.UTF-8): Obsługa IDN dla emacsa
658a2f28 103License: GPL v3+
ab54d2cd 104Group: Applications/Editors/Emacs
5498ae81 105Requires: %{name} = %{version}-%{release}
ab54d2cd
JB
106
107%description -n emacs-libidn-pkg
108IDN support files for emacs.
109
3591cf04
JR
110%description -n emacs-libidn-pkg -l pl.UTF-8
111Obsługa IDN dla emacsa.
ab54d2cd 112
2815d157
JB
113%package -n java-libidn
114Summary: Java implementation of libidn
21d86bf8 115Summary(pl.UTF-8): Implementacja libidn w Javie
658a2f28 116License: LGPL v2.1+
2815d157
JB
117Group: Libraries
118Requires: jre
119
120%description -n java-libidn
121Java implementation of libidn (internationalized domain names
122library).
123
3591cf04
JR
124%description -n java-libidn -l pl.UTF-8
125Implementacja libidn (biblioteki umiędzynarodowionych nazw domen) w
2815d157
JB
126Javie.
127
128%package -n python-idn
129Summary: Python interface to libidn
21d86bf8 130Summary(pl.UTF-8): Pythonowy interfejs do libidn
658a2f28 131License: LGPL v2.1+
2815d157
JB
132Group: Libraries/Python
133Requires: %{name} = %{version}-%{release}
f671595e 134%pyrequires_eq python-libs
2815d157
JB
135
136%description -n python-idn
137Python interface to libidn (internationalized domain names library).
138
3591cf04
JR
139%description -n python-idn -l pl.UTF-8
140Pythonowy interfejs do libidn (biblioteki umiędzynarodowionych nazw
2815d157
JB
141domen).
142
e2c9e4f6
JB
143%prep
144%setup -q
b6e8491f 145%patch0 -p1
47ca58ee 146%patch1 -p1
48e22e2d
JB
147
148rm -f po/stamp-po
b6e8491f 149
5e5a643e
ER
150# avoid different builds having different timestamps
151# see http://lists.pld-linux.org/mailman/pipermail/pld-devel-en/2008-August/020363.html
1780f5c9 152d='$Date: 2009-01-23 15:10:29 $'
aa2c1e29 153d=${d#?Date: }; d=${d%%%% *}; d=$(date -d "$d" '+%d %B %Y')
5e5a643e
ER
154%{__sed} -i -e "s,@value{UPDATED},$d,g" doc/libidn.texi
155
e2c9e4f6 156%build
8c25db64 157%{__gettextize}
ecce1191 158%{__libtoolize}
9242c4a5 159%{__aclocal} -I m4 -I gl/m4 -I lib/gl/m4
ecce1191
JB
160%{__autoconf}
161%{__autoheader}
162%{__automake}
949ca3bf 163JAR=%{_bindir}/fastjar \
ab54d2cd 164%configure \
043a7186 165 %{?with_dotnet:--enable-csharp=mono}%{!?with_dotnet:--disable-csharp} \
2815d157 166 %{?with_java:--enable-java} \
ab54d2cd 167 --with-lispdir=%{_emacs_lispdir}
e2c9e4f6
JB
168
169%{__make}
170
6f6febb4 171%if %{with python}
2815d157 172%{__make} -C contrib/idn-python \
e349ab8a 173 INCLUDE="%{py_incdir} %{rpmcflags} -I../../lib -L../../lib/.libs"
acc88d94 174mv contrib/idn-python/idn.so python-idn.so
6f6febb4 175%endif
2815d157 176
e2c9e4f6
JB
177%install
178rm -rf $RPM_BUILD_ROOT
179
180%{__make} install \
181 DESTDIR=$RPM_BUILD_ROOT
182
6f6febb4 183%if %{with python}
acc88d94 184install -D python-idn.so $RPM_BUILD_ROOT%{py_sitedir}/idn.so
6f6febb4 185%endif
2815d157 186
8c25db64
JB
187%find_lang %{name}
188
777b5108
ER
189rm -f $RPM_BUILD_ROOT%{_infodir}/dir
190
e2c9e4f6
JB
191%clean
192rm -rf $RPM_BUILD_ROOT
193
194%post
195/sbin/ldconfig
196[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
197
198%postun
199/sbin/ldconfig
200[ ! -x /usr/sbin/fix-info-dir ] || /usr/sbin/fix-info-dir %{_infodir} >/dev/null 2>&1
201
8c25db64 202%files -f %{name}.lang
e2c9e4f6 203%defattr(644,root,root,755)
1b4dcaf7 204%doc AUTHORS ChangeLog FAQ NEWS README* THANKS TODO doc/libidn.html contrib
e2c9e4f6
JB
205%attr(755,root,root) %{_bindir}/idn
206%attr(755,root,root) %{_libdir}/libidn.so.*.*.*
1ff0f822 207%attr(755,root,root) %ghost %{_libdir}/libidn.so.11
e2c9e4f6
JB
208%{_mandir}/man1/idn.1*
209%{_infodir}/libidn.info*
98b8400c 210%{_infodir}/libidn-*.png
e2c9e4f6
JB
211
212%files devel
213%defattr(644,root,root,755)
214%attr(755,root,root) %{_libdir}/libidn.so
215%{_libdir}/libidn.la
1ff0f822
JB
216%{_includedir}/idn-*.h
217%{_includedir}/idna.h
218%{_includedir}/pr29.h
219%{_includedir}/punycode.h
220%{_includedir}/stringprep.h
221%{_includedir}/tld.h
e2c9e4f6 222%{_pkgconfigdir}/libidn.pc
1ff0f822
JB
223%{_mandir}/man3/idna_*.3*
224%{_mandir}/man3/pr29_*.3*
225%{_mandir}/man3/punycode_*.3*
226%{_mandir}/man3/stringprep*.3*
227%{_mandir}/man3/tld_*.3*
e2c9e4f6
JB
228
229%files static
230%defattr(644,root,root,755)
231%{_libdir}/libidn.a
ab54d2cd 232
043a7186
JB
233%if %{with dotnet}
234%files -n dotnet-libidn
235%defattr(644,root,root,755)
236# why not in gac? does it work here?
237%{_libdir}/Libidn.dll
238%endif
239
ab54d2cd
JB
240%files -n emacs-libidn-pkg
241%defattr(644,root,root,755)
242%{_emacs_lispdir}/*.el
2815d157
JB
243
244%if %{with java}
245%files -n java-libidn
246%defattr(644,root,root,755)
754537de 247%{_datadir}/java/libidn*.jar
2815d157
JB
248%endif
249
6f6febb4 250%if %{with python}
2815d157
JB
251%files -n python-idn
252%defattr(644,root,root,755)
253%attr(755,root,root) %{py_sitedir}/idn.so
6f6febb4 254%endif
This page took 0.093867 seconds and 4 git commands to generate.