zope-cmf.spec 3.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. ##
  2. ## zope-cmf.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: zope-cmf
  26. Summary: Zope Content Management Framework
  27. URL: http://cmf.zope.org/
  28. Vendor: Zope Corporation
  29. Packager: OpenPKG
  30. Distribution: OpenPKG
  31. Class: EVAL
  32. Group: Web
  33. License: Zope Public License
  34. Version: 1.5.3
  35. Release: 20050807
  36. # list of sources
  37. Source0: http://www.zope.org/Products/CMF/CMF-%{version}/CMF-%{version}.tar.gz
  38. # build information
  39. Prefix: %{l_prefix}
  40. BuildRoot: %{l_buildroot}
  41. BuildPreReq: OpenPKG, openpkg >= 20040130
  42. PreReq: OpenPKG, openpkg >= 20040130
  43. PreReq: zope
  44. AutoReq: no
  45. AutoReqProv: no
  46. %description
  47. The Zope Content Management Framework (CMF) is a set of add-on
  48. products for the Zope application server. The CMF provides a set
  49. of services and plug-in interfaces for building content management
  50. sites, along with default implementations of the plugins.
  51. %track
  52. prog zope-cmf = {
  53. version = %{version}
  54. url = http://www.zope.org/Products/CMF/
  55. regex = CMF-(\d+\.\d+\.\d+)/
  56. }
  57. %prep
  58. %setup -q -n CMF-%{version}
  59. %build
  60. %install
  61. rm -rf $RPM_BUILD_ROOT
  62. # set of products to install
  63. CMF_PRODUCTS="CMFCore CMFDefault CMFTopic CMFCalendar DCWorkflow"
  64. # install product libraries
  65. %{l_shtool} mkdir -f -p -m 755 \
  66. $RPM_BUILD_ROOT%{l_prefix}/lib/zope-cmf
  67. for product in $CMF_PRODUCTS; do
  68. cp -r $product $RPM_BUILD_ROOT%{l_prefix}/lib/zope-cmf/
  69. done
  70. # link products into Zope instance home
  71. %{l_shtool} mkdir -f -p -m 755 \
  72. $RPM_BUILD_ROOT%{l_prefix}/var/zope/Products
  73. for product in $CMF_PRODUCTS; do
  74. %{l_shtool} mkln -s \
  75. $RPM_BUILD_ROOT%{l_prefix}/lib/zope-cmf/$product \
  76. $RPM_BUILD_ROOT%{l_prefix}/var/zope/Products/$product
  77. done
  78. # determine installation files
  79. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT %{l_files_std}
  80. %files -f files
  81. %clean
  82. rm -rf $RPM_BUILD_ROOT
  83. %post
  84. if [ $1 -eq 1 ]; then
  85. ( echo "You have successfully installed Zope-CMF."
  86. echo "In order to use it, first restart Zope:"
  87. echo " \$ $RPM_INSTALL_PREFIX/etc/rc zope restart"
  88. echo "Then, login to its management interface under"
  89. echo " http://localhost:8080/manage"
  90. echo "to add and configure a CMF site."
  91. ) | %{l_rpmtool} msg -b -t notice
  92. fi