punbb-ext-standard.spec 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990
  1. ##
  2. ## punbb-ext-standard.spec -- OpenPKG RPM Package Specification
  3. ## Copyright (c) 2000-2010 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 1.3s20100511
  25. %define V_snapshot 20100511
  26. # package information
  27. Name: punbb-ext-standard
  28. Summary: PunBB Extensions: Standard
  29. URL: http://punbb.informer.com/extensions/
  30. Vendor: Rickard Andersson et al.
  31. Packager: OpenPKG Foundation e.V.
  32. Distribution: OpenPKG Community
  33. Class: EVAL
  34. Group: CMS
  35. License: GPL
  36. Version: %{V_opkg}
  37. Release: 20100511
  38. # list of sources
  39. Source0: http://download.openpkg.org/components/versioned/punbb/punbb-extensions-%{V_snapshot}.tar.gz
  40. Patch0: punbb-ext-standard.patch
  41. # build information
  42. BuildPreReq: OpenPKG, openpkg >= 20100101
  43. PreReq: OpenPKG, openpkg >= 20100101
  44. PreReq: punbb
  45. %description
  46. This is a package of standard PunBB extensions.
  47. %track
  48. prog punbb-ext-standard = {
  49. version = %{V_snapshot}
  50. url = http://download.openpkg.org/components/versioned/punbb/
  51. regex = punbb-extensions-(__VER__)\.tar\.gz
  52. }
  53. %prep
  54. %setup -q -n punbb-extensions
  55. %patch -p0
  56. %build
  57. %install
  58. # create installation hierarchy
  59. rm -rf $RPM_BUILD_ROOT
  60. %{l_shtool} mkdir -f -p -m 755 \
  61. $RPM_BUILD_ROOT%{l_prefix}/lib/punbb/extensions
  62. # install extensions
  63. find . -name ".svn" -type d -print | xargs rm -rf
  64. find . -name "*.orig" -type f -print | xargs rm -f
  65. rm -rf pun_repository
  66. cp -rp pun* $RPM_BUILD_ROOT%{l_prefix}/lib/punbb/extensions/
  67. # determine installation files
  68. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  69. %{l_files_std} \
  70. '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb/extensions' \
  71. '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb/extensions/*' \
  72. '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb/extensions/*/*' \
  73. '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/lib/punbb/extensions/*/*/*'
  74. %files -f files
  75. %clean