neo4j.spec 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128
  1. ##
  2. ## neo4j.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 information
  24. Name: neo4j
  25. Summary: Graph Database
  26. URL: http://neo4j.org/
  27. Vendor: Neo Technology
  28. Packager: OpenPKG Foundation e.V.
  29. Distribution: OpenPKG Community
  30. Class: EVAL
  31. Group: Datbase
  32. License: AGPL
  33. Version: 1.4.M04
  34. Release: 20110611
  35. # list of sources
  36. Source0: http://dist.neo4j.org/neo4j-community-%{version}-unix.tar.gz
  37. Source1: neo4j-server.sh
  38. Source2: neo4j-shell.sh
  39. Source3: neo4j-graph.properties
  40. Source4: neo4j-log4j.properties
  41. Source5: neo4j-server.properties
  42. Source6: rc.neo4j
  43. # build information
  44. BuildPreReq: OpenPKG, openpkg >= 20100101
  45. PreReq: OpenPKG, openpkg >= 20100101
  46. BuildPreReq: java, JAVA-JDK
  47. PreReq: java, JAVA-JDK
  48. %description
  49. Neo4j is a graph database, a fully transactional database that
  50. stores data structured as graphs. A graph is a flexible data
  51. structure that allows for a more agile and rapid style of
  52. development. You work with a flexible graph network consisting
  53. of nodes, relationships and properties. Neo4j has a disk-based,
  54. native storage manager completely optimized for storing graph
  55. structures for maximum performance and scalability. It allows
  56. massive scalability. Neo4j can handle graphs of several billion
  57. nodes/relationships/properties on a single machine and can be
  58. sharded to scale out across multiple machines. Neo4j also provides a
  59. powerful traversal framework for high-speed traversals in the node
  60. space. Neo4j can be used an an embedded database or as a standlone
  61. server speaking REST.
  62. %track
  63. prog neo4j = {
  64. version = %{version}
  65. url = http://neo4j.org/download/
  66. regex = neo4j-community-(\d+\.\d+(?:\.\d+)?(?:\.M\d+)?)-unix\.tar\.gz
  67. }
  68. %prep
  69. %setup -q -n neo4j-community-%{version}
  70. %build
  71. %install
  72. # create installation hierarchy
  73. %{l_shtool} mkdir -f -p -m 755 \
  74. $RPM_BUILD_ROOT%{l_prefix}/bin \
  75. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
  76. $RPM_BUILD_ROOT%{l_prefix}/etc/neo4j \
  77. $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/common \
  78. $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/server \
  79. $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/plugin \
  80. $RPM_BUILD_ROOT%{l_prefix}/var/neo4j/db \
  81. $RPM_BUILD_ROOT%{l_prefix}/var/neo4j/run \
  82. $RPM_BUILD_ROOT%{l_prefix}/var/neo4j/log
  83. # install program components
  84. %{l_shtool} install -c -m 644 \
  85. lib/*.jar $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/common/
  86. %{l_shtool} install -c -m 644 \
  87. system/lib/*.jar $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/server/
  88. # install startup wrappers
  89. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  90. %{SOURCE neo4j-server.sh} \
  91. $RPM_BUILD_ROOT%{l_prefix}/bin/neo4j-server
  92. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  93. %{SOURCE neo4j-shell.sh} \
  94. $RPM_BUILD_ROOT%{l_prefix}/bin/neo4j-shell
  95. # install configuration files
  96. %{l_shtool} install -c -m 644 %{l_value -s -a} \
  97. %{SOURCE neo4j-server.properties} \
  98. %{SOURCE neo4j-graph.properties} \
  99. %{SOURCE neo4j-log4j.properties} \
  100. $RPM_BUILD_ROOT%{l_prefix}/etc/neo4j/
  101. # install run-command script
  102. %{l_shtool} install -c -m 755 %{l_value -s -a} \
  103. %{SOURCE rc.neo4j} \
  104. $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
  105. # determine installation files
  106. %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
  107. %{l_files_std} \
  108. '%config %{l_prefix}/etc/neo4j/*' \
  109. '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/neo4j/*'
  110. %files -f files
  111. %clean