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