| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128 |
- ##
- ## neo4j.spec -- OpenPKG RPM Package Specification
- ## Copyright (c) 2000-2011 OpenPKG Foundation e.V. <http://openpkg.net/>
- ##
- ## Permission to use, copy, modify, and distribute this software for
- ## any purpose with or without fee is hereby granted, provided that
- ## the above copyright notice and this permission notice appear in all
- ## copies.
- ##
- ## THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED
- ## WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
- ## MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
- ## IN NO EVENT SHALL THE AUTHORS AND COPYRIGHT HOLDERS AND THEIR
- ## CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
- ## SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
- ## LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF
- ## USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
- ## ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
- ## OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT
- ## OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
- ## SUCH DAMAGE.
- ##
- # package information
- Name: neo4j
- Summary: Graph Database
- URL: http://neo4j.org/
- Vendor: Neo Technology
- Packager: OpenPKG Foundation e.V.
- Distribution: OpenPKG Community
- Class: EVAL
- Group: Datbase
- License: AGPL
- Version: 1.4.M04
- Release: 20110611
- # list of sources
- Source0: http://dist.neo4j.org/neo4j-community-%{version}-unix.tar.gz
- Source1: neo4j-server.sh
- Source2: neo4j-shell.sh
- Source3: neo4j-graph.properties
- Source4: neo4j-log4j.properties
- Source5: neo4j-server.properties
- Source6: rc.neo4j
- # build information
- BuildPreReq: OpenPKG, openpkg >= 20100101
- PreReq: OpenPKG, openpkg >= 20100101
- BuildPreReq: java, JAVA-JDK
- PreReq: java, JAVA-JDK
- %description
- Neo4j is a graph database, a fully transactional database that
- stores data structured as graphs. A graph is a flexible data
- structure that allows for a more agile and rapid style of
- development. You work with a flexible graph network consisting
- of nodes, relationships and properties. Neo4j has a disk-based,
- native storage manager completely optimized for storing graph
- structures for maximum performance and scalability. It allows
- massive scalability. Neo4j can handle graphs of several billion
- nodes/relationships/properties on a single machine and can be
- sharded to scale out across multiple machines. Neo4j also provides a
- powerful traversal framework for high-speed traversals in the node
- space. Neo4j can be used an an embedded database or as a standlone
- server speaking REST.
- %track
- prog neo4j = {
- version = %{version}
- url = http://neo4j.org/download/
- regex = neo4j-community-(\d+\.\d+(?:\.\d+)?(?:\.M\d+)?)-unix\.tar\.gz
- }
- %prep
- %setup -q -n neo4j-community-%{version}
- %build
- %install
- # create installation hierarchy
- %{l_shtool} mkdir -f -p -m 755 \
- $RPM_BUILD_ROOT%{l_prefix}/bin \
- $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d \
- $RPM_BUILD_ROOT%{l_prefix}/etc/neo4j \
- $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/common \
- $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/server \
- $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/plugin \
- $RPM_BUILD_ROOT%{l_prefix}/var/neo4j/db \
- $RPM_BUILD_ROOT%{l_prefix}/var/neo4j/run \
- $RPM_BUILD_ROOT%{l_prefix}/var/neo4j/log
- # install program components
- %{l_shtool} install -c -m 644 \
- lib/*.jar $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/common/
- %{l_shtool} install -c -m 644 \
- system/lib/*.jar $RPM_BUILD_ROOT%{l_prefix}/lib/neo4j/server/
- # install startup wrappers
- %{l_shtool} install -c -m 755 %{l_value -s -a} \
- %{SOURCE neo4j-server.sh} \
- $RPM_BUILD_ROOT%{l_prefix}/bin/neo4j-server
- %{l_shtool} install -c -m 755 %{l_value -s -a} \
- %{SOURCE neo4j-shell.sh} \
- $RPM_BUILD_ROOT%{l_prefix}/bin/neo4j-shell
- # install configuration files
- %{l_shtool} install -c -m 644 %{l_value -s -a} \
- %{SOURCE neo4j-server.properties} \
- %{SOURCE neo4j-graph.properties} \
- %{SOURCE neo4j-log4j.properties} \
- $RPM_BUILD_ROOT%{l_prefix}/etc/neo4j/
- # install run-command script
- %{l_shtool} install -c -m 755 %{l_value -s -a} \
- %{SOURCE rc.neo4j} \
- $RPM_BUILD_ROOT%{l_prefix}/etc/rc.d/
- # determine installation files
- %{l_rpmtool} files -v -ofiles -r$RPM_BUILD_ROOT \
- %{l_files_std} \
- '%config %{l_prefix}/etc/neo4j/*' \
- '%attr(-,%{l_rusr},%{l_rgrp}) %{l_prefix}/var/neo4j/*'
- %files -f files
- %clean
|