]> git.pld-linux.org Git - packages/libidn.git/blame - libidn.spec
- updated to 1.5
[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
fe07bd32 18Version: 1.5
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
fe07bd32 23# Source0-md5: 5d95424a76fb7356f54e7fba83eb3379
e2c9e4f6 24Patch0: %{name}-info.patch
47ca58ee 25Patch1: %{name}-python.patch
e2c9e4f6 26URL: http://www.gnu.org/software/libidn/
b3692cda
JB
27BuildRequires: autoconf >= 2.61
28BuildRequires: automake >= 1:1.10
b5892520 29%{?with_java:BuildRequires: gcc-java}
1ff0f822 30BuildRequires: gettext-devel >= 0.17
b5892520 31%{?with_java:BuildRequires: gjdoc}
5498ae81 32BuildRequires: libtool >= 2:1.5
043a7186 33%{?with_dotnet:BuildRequires: mono}
f22ac790 34BuildRequires: perl-base
6f6febb4 35%{?with_python:BuildRequires: python-devel >= 1:2.3}
5ea30155 36%{?with_python:BuildRequires: rpm-pythonprov}
a281a682 37BuildRequires: rpmbuild(macros) >= 1.384
faf69423 38BuildRequires: texinfo >= 4.7
e2c9e4f6
JB
39Requires(post,postun): /sbin/ldconfig
40BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
41
ab54d2cd
JB
42# is it correct?
43%define _emacs_lispdir %{_datadir}/emacs/site-lisp
44
e2c9e4f6
JB
45%description
46GNU Libidn is an implementation of the Stringprep, Punycode and IDNA
47specifications defined by the IETF Internationalized Domain Names
48(IDN) working group, used for internationalized domain names.
49
3591cf04 50%description -l pl.UTF-8
e2c9e4f6 51GNU Libidn to implementacja specyfikacji Stringprep, Punycode i IDNA
3591cf04
JR
52zdefiniowanych przez grupę roboczą IETF Internationalized Domain Names
53(IDN), zajmującą się umiędzynarodowionymi nazwami domen.
e2c9e4f6
JB
54
55%package devel
56Summary: Header files for libidn library
21d86bf8 57Summary(pl.UTF-8): Pliki nagłówkowe biblioteki libidn
658a2f28 58License: LGPL v2.1+
e2c9e4f6 59Group: Development/Libraries
5498ae81 60Requires: %{name} = %{version}-%{release}
e2c9e4f6
JB
61
62%description devel
63Header files for libidn library.
64
3591cf04
JR
65%description devel -l pl.UTF-8
66Pliki nagłówkowe biblioteki libidn.
e2c9e4f6
JB
67
68%package static
69Summary: Static libidn library
21d86bf8 70Summary(pl.UTF-8): Statyczna biblioteka libidn
658a2f28 71License: LGPL v2.1+
e2c9e4f6 72Group: Development/Libraries
5498ae81 73Requires: %{name}-devel = %{version}-%{release}
e2c9e4f6
JB
74
75%description static
76Static libidn library.
77
3591cf04 78%description static -l pl.UTF-8
e2c9e4f6
JB
79Statyczna biblioteka libidn.
80
043a7186
JB
81%package -n dotnet-libidn
82Summary: C# binding for libidn
21d86bf8 83Summary(pl.UTF-8): Wiązanie C# dla libidn
658a2f28 84License: LGPL v2.1+
043a7186
JB
85Group: Libraries
86Requires: %{name} = %{version}-%{release}
87
88%description -n dotnet-libidn
89C# binding for libidn.
90
3591cf04
JR
91%description -n dotnet-libidn -l pl.UTF-8
92Wiązanie C# dla libidn.
043a7186 93
ab54d2cd
JB
94%package -n emacs-libidn-pkg
95Summary: IDN support files for emacs
21d86bf8 96Summary(pl.UTF-8): Obsługa IDN dla emacsa
658a2f28 97License: GPL v3+
ab54d2cd 98Group: Applications/Editors/Emacs
5498ae81 99Requires: %{name} = %{version}-%{release}
ab54d2cd
JB
100
101%description -n emacs-libidn-pkg
102IDN support files for emacs.
103
3591cf04
JR
104%description -n emacs-libidn-pkg -l pl.UTF-8
105Obsługa IDN dla emacsa.
ab54d2cd 106
2815d157
JB
107%package -n java-libidn
108Summary: Java implementation of libidn
21d86bf8 109Summary(pl.UTF-8): Implementacja libidn w Javie
658a2f28 110License: LGPL v2.1+
2815d157
JB
111Group: Libraries
112Requires: jre
113
114%description -n java-libidn
115Java implementation of libidn (internationalized domain names
116library).
117
3591cf04
JR
118%description -n java-libidn -l pl.UTF-8
119Implementacja libidn (biblioteki umiędzynarodowionych nazw domen) w
2815d157
JB
120Javie.
121
122%package -n python-idn
123Summary: Python interface to libidn
21d86bf8 124Summary(pl.UTF-8): Pythonowy interfejs do libidn
658a2f28 125License: LGPL v2.1+
2815d157
JB
126Group: Libraries/Python
127Requires: %{name} = %{version}-%{release}
f671595e 128%pyrequires_eq python-libs
2815d157
JB
129
130%description -n python-idn
131Python interface to libidn (internationalized domain names library).
132
3591cf04
JR
133%description -n python-idn -l pl.UTF-8
134Pythonowy interfejs do libidn (biblioteki umiędzynarodowionych nazw
2815d157
JB
135domen).
136
e2c9e4f6
JB
137%prep
138%setup -q
b6e8491f 139%patch0 -p1
47ca58ee 140%patch1 -p1
48e22e2d
JB
141
142rm -f po/stamp-po
fe07bd32
JB
143# we don't have libtool 2.1b
144rm m4/libtool.m4 m4/lt*.m4
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.085092 seconds and 4 git commands to generate.