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