Skip to content

Commit

Permalink
feature(packaging): debian and rpm packaging
Browse files Browse the repository at this point in the history
Signed-off-by: Dusan Malusev <[email protected]>
  • Loading branch information
Dusan Malusev committed Dec 23, 2024
1 parent 01e0694 commit 9af5deb
Show file tree
Hide file tree
Showing 31 changed files with 176 additions and 1,043 deletions.
49 changes: 0 additions & 49 deletions SCYLLA-VERSION-GEN

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
116 changes: 0 additions & 116 deletions dist/common/cassandra.in.sh

This file was deleted.

File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions dist/debian/compat
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
11
13 changes: 13 additions & 0 deletions dist/debian/control
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Source: cassandra-stress
Section: misc
Priority: extra
Maintainer: Dusan Malusev <[email protected]>
Homepage: http://www.scylladb.com
Standards-Version: 3.9.5
Rules-Requires-Root: no

Package: cassandra-stress
Architecture: all
Recommends: ntp | time-daemon
Description: Cassandra Stress Tool
Depends: openjdk-11-jre-headless | openjdk-11-jre | oracle-java11-set-default, procps, libsnappy-java, libsnappy-jni
23 changes: 0 additions & 23 deletions dist/debian/control.template

This file was deleted.

File renamed without changes.
2 changes: 0 additions & 2 deletions dist/debian/debian/TODO

This file was deleted.

1 change: 0 additions & 1 deletion dist/debian/debian/compat

This file was deleted.

15 changes: 0 additions & 15 deletions dist/debian/debian/scylla-tools.install

This file was deleted.

81 changes: 0 additions & 81 deletions dist/debian/debian_files_gen.py

This file was deleted.

File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,3 @@ etc/scylla/cassandra/jvm*.options
usr/bin/scylla-sstableloader
opt/scylladb/share/cassandra/bin/cassandra.in.sh
opt/scylladb/share/cassandra/lib/*.jar
opt/scylladb/share/cassandra/doc/cql3/CQL.css
opt/scylladb/share/cassandra/doc/cql3/CQL.html
opt/scylladb/share/cassandra/bin/scylla-sstableloader
4 changes: 4 additions & 0 deletions dist/debian/scylla-tools.install
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
opt/scylladb/share/cassandra/bin/cassandra-stress
opt/scylladb/share/cassandra/bin/cassandra-stressd
usr/bin/cassandra-stress
usr/bin/cassandra-stressd
File renamed without changes.
File renamed without changes.
54 changes: 54 additions & 0 deletions dist/redhat/cassandra-stress.spec
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
Name: cassandra-stress
Version: %{version}
Release: %{release}%{?dist}
Summary: Scylla Cassandra Stress
Group: Applications/Databases

License: Apache
URL: http://www.scylladb.com/
Source0: %{reloc_pkg}
BuildArch: noarch
Requires:
AutoReqProv: no

%description

%package core
License: Apache
URL: http://www.scylladb.com/
BuildArch: noarch
Summary: Core files for Scylla tools
Version: %{version}
Release: %{release}%{?dist}
Requires: jre-11-headless

%global __brp_python_bytecompile %{nil}
%global __brp_mangle_shebangs %{nil}

%prep
%setup -q -n scylla-tools


%build

%install
rm -rf $RPM_BUILD_ROOT
./install.sh --root "$RPM_BUILD_ROOT"

%files
/opt/scylladb/share/cassandra-stress/bin/cassandra-stress
/opt/scylladb/share/cassandra-stress/bin/cassandra-stressd
%{_bindir}/cassandra-stress
%{_bindir}/cassandra-stressd

%files core
%{_sysconfdir}/scylla/cassandra-stress/cassandra-env.sh
%{_sysconfdir}/scylla/cassandra-stress/logback.xml
%{_sysconfdir}/scylla/cassandra-stress/logback-tools.xml
%{_sysconfdir}/scylla/cassandra-stress/jvm*.options
/opt/scylladb/share/cassandra-stress/bin/cassandra.in.sh
/opt/scylladb/share/cassandra-stress/lib/*.jar

%changelog
* Fri Aug 7 2015 Takuya ASADA Takuya ASADA <[email protected]>
- inital version of scylla-tools.spec
Loading

0 comments on commit 9af5deb

Please sign in to comment.