urpmi.spec 4.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116
  1. ##
  2. ## urpmi.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2006 OpenPKG Foundation e.V. <http://openpkg.net/>
  4. ## Copyright (c) 2000-2006 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. # FIXME: rse: blindly packaged, still not tested at all under run-time
  25. # package version
  26. %define V_urpmi 4.8.17
  27. %define V_urpm 1.40
  28. %define V_mdv_packdrakeng 1.01
  29. %define V_mdv_distribconf 1.01
  30. # package information
  31. Name: urpmi
  32. Summary: RPM Installer
  33. URL: http://www.urpmi.org/
  34. Vendor: Mandrakesoft
  35. Packager: OpenPKG
  36. Distribution: OpenPKG
  37. Class: EVAL
  38. Group: Bootstrapping
  39. License: GPL
  40. Version: %{V_urpmi}
  41. Release: 20060403
  42. # list of sources
  43. Source0: http://www.cpan.org/authors/id/R/RG/RGARCIA/urpmi-%{V_urpmi}.tar.gz
  44. Source1: http://www.cpan.org/authors/id/R/RG/RGARCIA/URPM-%{V_urpm}.tar.gz
  45. Source2: http://www.cpan.org/authors/id/R/RG/RGARCIA/MDV-Packdrakeng-%{V_mdv_packdrakeng}.tar.gz
  46. Source3: http://www.cpan.org/authors/id/R/RG/RGARCIA/MDV-Distribconf-%{V_mdv_distribconf}.tar.gz
  47. Patch0: urpmi.patch
  48. # build information
  49. Prefix: %{l_prefix}
  50. BuildRoot: %{l_buildroot}
  51. BuildPreReq: OpenPKG, openpkg >= 20040130, perl, perl-openpkg
  52. PreReq: OpenPKG, openpkg >= 20040130, perl, perl-locale
  53. AutoReq: no
  54. AutoReqProv: no
  55. %description
  56. URPMI is a frontend for the RedHat Package Manager (RPM).
  57. %track
  58. prog urpmi:urpmi = {
  59. version = %{V_urpmi}
  60. url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  61. regex = urpmi-(__VER__)\.tar\.gz
  62. }
  63. prog urpmi:URPM = {
  64. version = %{V_urpm}
  65. url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  66. regex = URPM-(__VER__)\.tar\.gz
  67. }
  68. prog urpmi:MDV-Packdrakeng = {
  69. version = %{V_mdv_packdrakeng}
  70. url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  71. regex = MDV-Packdrakeng-(__VER__)\.tar\.gz
  72. }
  73. prog urpmi:MDV-Distribconf = {
  74. version = %{V_mdv_distribconf}
  75. url = http://www.cpan.org/authors/id/R/RG/RGARCIA/
  76. regex = MDV-Distribconf-(__VER__)\.tar\.gz
  77. }
  78. %prep
  79. %setup -q -c
  80. %setup -q -D -T -a 1
  81. %setup -q -D -T -a 2
  82. %setup -q -D -T -a 3
  83. %patch -p0
  84. %build
  85. %install
  86. rm -rf $RPM_BUILD_ROOT
  87. ( cd urpmi-%{V_urpmi}
  88. %{l_shtool} subst \
  89. -e "s;/etc/urpmi;%{l_prefix}/etc/urpmi;" \
  90. urpmq urpm/cfg.pm urpm.pm
  91. ) || exit $?
  92. %{l_prefix}/bin/perl-openpkg prepare
  93. %{l_prefix}/bin/perl-openpkg -d MDV-Distribconf-%{V_mdv_distribconf} configure build install
  94. %{l_prefix}/bin/perl-openpkg -d MDV-Packdrakeng-%{V_mdv_packdrakeng} configure build install
  95. %{l_prefix}/bin/perl-openpkg -d URPM-%{V_urpm} configure build install
  96. %{l_prefix}/bin/perl-openpkg -d urpmi-%{V_urpmi} configure build install
  97. %{l_prefix}/bin/perl-openpkg -F perl-openpkg-files fixate cleanup
  98. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  99. %{l_files_std} `cat perl-openpkg-files`
  100. %files -f files
  101. %clean
  102. rm -rf $RPM_BUILD_ROOT