libunicode.spec 2.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. ##
  2. ## libunicode.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2021 OpenPKG Project <http://openpkg.org/>
  4. ##
  5. ## Permission to use, copy, modify, and distribute this software for
  6. ## any purpose with or without fee is hereby granted, provided that
  7. ## the above copyright notice and this permission notice appear in all
  8. ## copies.
  9. ##
  10. ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
  11. ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
  12. ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
  13. ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
  14. ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
  15. ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
  16. ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
  17. ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
  18. ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
  19. ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
  20. ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
  21. ## SUCH DAMAGE.
  22. ##
  23. # package information
  24. Name: libunicode
  25. Summary: Courier Unicode Library
  26. URL: http://www.courier-mta.org/unicode/
  27. Vendor: Sam Varshavchik
  28. Packager: OpenPKG Project
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Libraries
  32. License: GPL
  33. Version: 2.2.2.20210321
  34. Release: 20210323
  35. # list of sources
  36. Source0: http://vorboss.dl.sourceforge.net/courier/courier-unicode-%{version}.tar.bz2
  37. # build information
  38. BuildPreReq: OpenPKG, openpkg >= 20160101
  39. PreReq: OpenPKG, openpkg >= 20160101
  40. %description
  41. This library implements several algorithms related to the Unicode
  42. Standard: Look up uppercase, lowercase, and titlecase equivalents of
  43. a unicode character; Implementation of grapheme and work breaking
  44. rules; Implementation of line breaking rules; Several ancillary
  45. functions, like looking up the unicode character that corresponds
  46. to some HTML 4.0 entity (such as “&amp;”, for example), and
  47. determining the normal width or a double-width status of a unicode
  48. character. Also, an adaptation of the iconv(3) API for this unicode
  49. library.
  50. %track
  51. prog libunicode = {
  52. version = %{version}
  53. url = http://www.courier-mta.org/download.html
  54. regex = courier-unicode-(__VER__)\.tar\.bz2
  55. }
  56. %prep
  57. %setup -q -n courier-unicode-%{version}
  58. %build
  59. CC="%{l_cc}" \
  60. CFLAGS="%{l_cflags -O}" \
  61. CPPFLAGS="%{l_cppflags}" \
  62. LDFLAGS="%{l_ldflags}" \
  63. ./configure \
  64. --prefix=%{l_prefix} \
  65. --mandir=%{l_prefix}/man \
  66. --disable-shared
  67. %{l_make} %{l_mflags -O}
  68. %install
  69. %{l_make} %{l_mflags} install AM_MAKEFLAGS="DESTDIR=$RPM_BUILD_ROOT"
  70. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  71. %files -f files
  72. %clean