mirror of https://github.com/apache/cassandra
rpm spec file updates
Patch by Nate McCall for CASSANDRA-1890 git-svn-id: https://svn.apache.org/repos/asf/cassandra/branches/cassandra-0.7@1051691 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
2a6df9a65b
commit
9f79f8bde1
|
|
@ -2,22 +2,27 @@
|
|||
|
||||
%global username cassandra
|
||||
|
||||
%define relname %{name}-%{version}-%{release}
|
||||
|
||||
Name: apache-cassandra
|
||||
Version: 0.7.0
|
||||
Release: 1%{?dist}
|
||||
Release: rc3
|
||||
Summary: Cassandra is a highly scalable, eventually consistent, distributed, structured key-value store.
|
||||
|
||||
Group: Development/Libraries
|
||||
License: BSD
|
||||
License: Apache Software License
|
||||
URL: http://cassandra.apache.org/
|
||||
Source0: http://www.ibiblio.org/pub/mirrors/apache/%{username}/%{version}/%{name}-%{version}-src.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
|
||||
Source0: http://www.ibiblio.org/pub/mirrors/apache/%{username}/%{version}/%{relname}-src.tar.gz
|
||||
BuildRoot: %{_tmppath}/%{relname}-root-%(%{__id_u} -n)
|
||||
|
||||
BuildRequires: java-devel
|
||||
BuildRequires: jpackage-utils
|
||||
BuildRequires: ant
|
||||
BuildRequires: ant-nodeps
|
||||
|
||||
Conflicts: cassandra
|
||||
Obsoletes: cassandra07
|
||||
|
||||
Requires: java >= 1.6.0
|
||||
Requires: jna >= 3.2.7
|
||||
Requires: jpackage-utils
|
||||
|
|
@ -35,10 +40,10 @@ and the data model from Google's BigTable. Like Dynamo, Cassandra is
|
|||
eventually consistent. Like BigTable, Cassandra provides a ColumnFamily-based
|
||||
data model richer than typical key/value systems.
|
||||
|
||||
For more information see http://incubator.apache.org/cassandra
|
||||
For more information see http://cassandra.apache.org/
|
||||
|
||||
%prep
|
||||
%setup -q -n %{name}-%{version}-src
|
||||
%setup -q -n %{relname}-src
|
||||
|
||||
%build
|
||||
ant clean jar -Drelease=true
|
||||
|
|
@ -65,7 +70,8 @@ mv bin/cassandra.in.sh %{buildroot}/usr/share/%{username}
|
|||
mv bin/cassandra %{buildroot}/usr/sbin
|
||||
rm bin/*.bat
|
||||
cp -p bin/* %{buildroot}/usr/bin
|
||||
cp build/%{name}-%{version}.jar %{buildroot}/usr/share/%{username}/lib
|
||||
# Handle the case of interim SNAPHOST builds
|
||||
cp build/%{relname}*jar %{buildroot}/usr/share/%{username}/lib
|
||||
mkdir -p %{buildroot}/var/lib/%{username}/commitlog
|
||||
mkdir -p %{buildroot}/var/lib/%{username}/data
|
||||
mkdir -p %{buildroot}/var/lib/%{username}/saved_caches
|
||||
|
|
|
|||
Loading…
Reference in New Issue