30 Distribution: OpenPKG Community |
30 Distribution: OpenPKG Community |
31 Class: BASE |
31 Class: BASE |
32 Group: DNS |
32 Group: DNS |
33 License: LGPL |
33 License: LGPL |
34 Version: 1.25 |
34 Version: 1.25 |
35 Release: 20120529 |
35 Release: 20120800 |
36 |
36 |
37 # list of sources |
37 # list of sources |
38 Source0: ftp://ftp.gnu.org/pub/gnu/libidn/libidn-%{version}.tar.gz |
38 Source0: ftp://ftp.gnu.org/pub/gnu/libidn/libidn-%{version}.tar.gz |
39 Patch0: libidn.patch |
39 Patch0: libidn.patch |
40 |
40 |
41 # build information |
41 # build information |
42 BuildPreReq: OpenPKG, openpkg >= 20100101 |
42 BuildPreReq: OpenPKG, openpkg >= 20100101, make |
43 PreReq: OpenPKG, openpkg >= 20100101 |
43 PreReq: OpenPKG, openpkg >= 20100101 |
44 BuildPreReq: libiconv |
44 BuildPreReq: libiconv |
45 PreReq: libiconv |
45 PreReq: libiconv |
46 |
46 |
47 %description |
47 %description |
57 data from the system's native representation into UTF-8, and |
57 data from the system's native representation into UTF-8, and |
58 one function to perform the Stringprep processing. Adding a |
58 one function to perform the Stringprep processing. Adding a |
59 new Stringprep profile for your application within the API is |
59 new Stringprep profile for your application within the API is |
60 straightforward. The Punycode API consists of one encoding function |
60 straightforward. The Punycode API consists of one encoding function |
61 and one decoding function. The IDNA API consists of the ToASCII |
61 and one decoding function. The IDNA API consists of the ToASCII |
62 and ToUnicode functions, as well as an high-level interface for |
62 and ToUnicode functions, as well as an high level interface for |
63 converting entire domain names to and from the ACE encoded form. |
63 converting entire domain names to and from the ACE encoded form. |
64 |
64 |
65 %track |
65 %track |
66 prog libidn = { |
66 prog libidn = { |
67 version = %{version} |
67 version = %{version} |
76 -e 's;^\(SUBDIRS = .*\) doc \(.*\)$;\1 \2;' \ |
76 -e 's;^\(SUBDIRS = .*\) doc \(.*\)$;\1 \2;' \ |
77 Makefile.in |
77 Makefile.in |
78 %{l_shtool} subst \ |
78 %{l_shtool} subst \ |
79 -e 's;^\(Libs: -L${libdir} -lidn\)$;\1 @LTLIBICONV@;' \ |
79 -e 's;^\(Libs: -L${libdir} -lidn\)$;\1 @LTLIBICONV@;' \ |
80 libidn.pc.in |
80 libidn.pc.in |
|
81 %{l_shtool} subst \ |
|
82 -e 's;^\(const gchar \*const g_utf8_skip\);static \1;' \ |
|
83 lib/nfkc.c |
81 |
84 |
82 %build |
85 %build |
83 CC="%{l_cc}" \ |
86 CC="%{l_cc}" \ |
84 CFLAGS="%{l_cflags -O}" \ |
87 CFLAGS="%{l_cflags -O}" \ |
85 CPPFLAGS="%{l_cppflags}" \ |
88 CPPFLAGS="%{l_cppflags}" \ |
93 --disable-shared \ |
96 --disable-shared \ |
94 --disable-nls |
97 --disable-nls |
95 %{l_make} %{l_mflags -O} |
98 %{l_make} %{l_mflags -O} |
96 |
99 |
97 %install |
100 %install |
98 %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT" |
101 %{l_make} %{l_mflags} install DESTDIR="$RPM_BUILD_ROOT" |
99 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
102 strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true |
100 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
103 rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir |
101 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/emacs |
104 rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/emacs |
102 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/Libidn.dll |
105 rm -f $RPM_BUILD_ROOT%{l_prefix}/lib/Libidn.dll |
103 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |
106 %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \ |