libidn.spec 4.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110
  1. ##
  2. ## libidn.spec -- OpenPKG RPM Specification
  3. ## Copyright (c) 2000-2004 The OpenPKG Project <http://www.openpkg.org/>
  4. ## Copyright (c) 2000-2004 Ralf S. Engelschall <rse@engelschall.com>
  5. ## Copyright (c) 2000-2004 Cable & Wireless <http://www.cw.com/>
  6. ##
  7. ## Permission to use, copy, modify, and distribute this software for
  8. ## any purpose with or without fee is hereby granted, provided that
  9. ## the above copyright notice and this permission notice appear in all
  10. ## copies.
  11. ##
  12. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  13. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  14. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  15. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  16. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  17. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  18. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  19. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  20. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  21. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  22. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  23. ## SUCH DAMAGE.
  24. ##
  25. # package information
  26. Name: libidn
  27. Summary: International Domain Name (IDN) Library
  28. URL: http://josefsson.org/libidn/
  29. Vendor: Simon Josefsson
  30. Packager: The OpenPKG Project
  31. Distribution: OpenPKG
  32. Class: PLUS
  33. Group: DNS
  34. License: LGPL
  35. Version: 0.5.6
  36. Release: 20041011
  37. # list of sources
  38. Source0: http://josefsson.org/libidn/releases/libidn-%{version}.tar.gz
  39. Patch0: libidn.patch
  40. # build information
  41. Prefix: %{l_prefix}
  42. BuildRoot: %{l_buildroot}
  43. BuildPreReq: OpenPKG, openpkg >= 20040130
  44. PreReq: OpenPKG, openpkg >= 20040130
  45. BuildPreReq: libiconv
  46. PreReq: libiconv
  47. AutoReq: no
  48. AutoReqProv: no
  49. %description
  50. GNU Libidn is an implementation of the Stringprep, Punycode and
  51. IDNA specifications defined by the IETF Internationalized Domain
  52. Names (IDN) working group, used for internationalized domain names.
  53. The library contains a generic Stringprep implementation that
  54. does Unicode 3.2 NFKC normalization, mapping and prohibitation of
  55. characters, and bidirectional character handling. Profiles for
  56. iSCSI, Kerberos 5, Nameprep, SASL and XMPP are included. Punycode
  57. and ASCII Compatible Encoding (ACE) via IDNA are supported. The
  58. Stringprep API consists of two main functions, one for converting
  59. data from the system's native representation into UTF-8, and
  60. one function to perform the Stringprep processing. Adding a
  61. new Stringprep profile for your application within the API is
  62. straightforward. The Punycode API consists of one encoding function
  63. and one decoding function. The IDNA API consists of the ToASCII
  64. and ToUnicode functions, as well as an high-level interface for
  65. converting entire domain names to and from the ACE encoded form.
  66. %track
  67. prog libidn = {
  68. version = %{version}
  69. url = http://josefsson.org/libidn/releases/
  70. regex = libidn-(__VER__)\.tar\.gz
  71. }
  72. %prep
  73. %setup -q
  74. %patch -p0
  75. %build
  76. CC="%{l_cc}" \
  77. CFLAGS="%{l_cflags -O}" \
  78. CPPFLAGS="%{l_cppflags}" \
  79. LDFLAGS="%{l_ldflags}" \
  80. ./configure \
  81. --prefix=%{l_prefix} \
  82. --includedir=%{l_prefix}/include/libidn \
  83. --with-libiconv-prefix=%{l_prefix} \
  84. --disable-shared \
  85. --disable-nls
  86. %{l_make} %{l_mflags -O}
  87. %install
  88. rm -rf $RPM_BUILD_ROOT
  89. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  90. strip $RPM_BUILD_ROOT%{l_prefix}/bin/* >/dev/null 2>&1 || true
  91. rm -f $RPM_BUILD_ROOT%{l_prefix}/info/dir
  92. rm -rf $RPM_BUILD_ROOT%{l_prefix}/share/emacs
  93. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  94. %{l_files_std} \
  95. '%not %dir %{l_prefix}/lib/pkgconfig'
  96. %files -f files
  97. %clean
  98. rm -rf $RPM_BUILD_ROOT