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