libidn.spec 3.9 KB

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