data-isocodes.spec 3.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293
  1. ##
  2. ## data-isocodes.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
  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 version
  24. %define V_opkg 3.24
  25. %define V_dist 3.24
  26. %define V_subdir 3.24
  27. # package information
  28. Name: data-isocodes
  29. Summary: Data: ISO Abbreviation Codes
  30. URL: http://www.openpkg.org/
  31. Vendor: OpenPKG
  32. Packager: OpenPKG Foundation e.V.
  33. Distribution: OpenPKG Community
  34. Class: BASE
  35. Group: Data
  36. License: Open Source
  37. Version: %{V_opkg}
  38. Release: 20110103
  39. # list of sources
  40. Source0: http://ftp.debian.org/debian/pool/main/i/iso-codes/iso-codes_%{V_dist}.orig.tar.bz2
  41. # build information
  42. BuildPreReq: OpenPKG, openpkg >= 20100101
  43. PreReq: OpenPKG, openpkg >= 20100101
  44. %description
  45. This data collection packages provides data files for:
  46. - ISO-3166-1 Country Codes
  47. - ISO-3166-2 Country Subdivision Codes
  48. - ISO-639-2 Language Codes
  49. - ISO-639-3 Language Subdivision Codes
  50. - ISO-4217 Currency Codes
  51. %track
  52. prog data-isocodes = {
  53. version = %{V_dist}
  54. url = http://ftp.debian.org/debian/pool/main/i/iso-codes/
  55. regex = iso-codes_(__VER__)(\.orig)?\.tar\.bz2
  56. }
  57. %prep
  58. %setup -q -n iso-codes-%{V_subdir}
  59. %build
  60. %install
  61. %{l_shtool} mkdir -f -p -m 755 \
  62. $RPM_BUILD_ROOT%{l_prefix}/share/data-isocodes
  63. %{l_shtool} install -c \
  64. iso_3166/iso_3166.xml \
  65. $RPM_BUILD_ROOT%{l_prefix}/share/data-isocodes/iso-3166-1.xml
  66. %{l_shtool} install -c \
  67. iso_3166_2/iso_3166_2.xml \
  68. $RPM_BUILD_ROOT%{l_prefix}/share/data-isocodes/iso-3166-2.xml
  69. %{l_shtool} install -c \
  70. iso_4217/iso_4217.xml \
  71. $RPM_BUILD_ROOT%{l_prefix}/share/data-isocodes/iso-4217.xml
  72. %{l_shtool} install -c \
  73. iso_639/iso_639.xml \
  74. $RPM_BUILD_ROOT%{l_prefix}/share/data-isocodes/iso-639-1.xml
  75. %{l_shtool} install -c \
  76. iso_639_3/iso_639_3.xml \
  77. $RPM_BUILD_ROOT%{l_prefix}/share/data-isocodes/iso-639-3.xml
  78. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  79. %files -f files
  80. %clean