Blame cassandra.spec

2a3c276
%{?scl:%scl_package cassandra}
2a3c276
%{!?scl:%global pkg_name %{name}}
2a3c276
2a3c276
%global allocated_gid 143
2a3c276
%global allocated_uid 143
2a3c276
2a3c276
Name:		%{?scl_prefix}cassandra
2a3c276
Version:	3.9
2a3c276
Release:	1%{?dist}
2a3c276
Summary:	OpenSource database Apache Cassandra
2a3c276
# Apache (v2.0) BSD (3 clause):
2a3c276
# ./src/java/org/apache/cassandra/utils/vint/VIntCoding.java
2a3c276
License:	ASL 2.0 and BSD
2a3c276
URL:		http://cassandra.apache.org/
2a3c276
Source0:	https://github.com/apache/%{pkg_name}/archive/%{pkg_name}-%{version}.tar.gz
2a3c276
Source1:	%{pkg_name}.logrotate
2a3c276
Source2:	%{pkg_name}d.service
2a3c276
Source3:	%{pkg_name}-tmpfile
2a3c276
# pom files are not generated but used are the ones from mavencentral
2a3c276
# because of orphaned mavent-ant-task package doing the work in this case
2a3c276
# failed koji build: http://koji.fedoraproject.org/koji/taskinfo?taskID=15542960
2a3c276
Source4:	http://central.maven.org/maven2/org/apache/%{pkg_name}/%{pkg_name}-all/%{version}/%{pkg_name}-all-%{version}.pom
2a3c276
Source5:	http://central.maven.org/maven2/org/apache/%{pkg_name}/%{pkg_name}-thrift/%{version}/%{pkg_name}-thrift-%{version}.pom
2a3c276
Source6:	http://central.maven.org/maven2/org/apache/%{pkg_name}/%{pkg_name}-clientutil/%{version}/%{pkg_name}-clientutil-%{version}.pom
2a3c276
Source7:	http://central.maven.org/maven2/org/apache/%{pkg_name}/%{pkg_name}-parent/%{version}/%{pkg_name}-parent-%{version}.pom
2a3c276
2a3c276
# fix encoding, naming, classpaths and dependencies
2a3c276
Patch0:		%{pkg_name}-%{version}-build.patch
2a3c276
# airline0.7 imports fix in cassandra source, which is dependent on 0.6 version
2a3c276
# https://issues.apache.org/jira/browse/CASSANDRA-12994
2a3c276
Patch1:		%{pkg_name}-%{version}-airline0.7.patch
2a3c276
# modify installed scripts
2a3c276
Patch2:		%{pkg_name}-%{version}-scripts.patch
2a3c276
# https://bugzilla.redhat.com/show_bug.cgi?id=1340876
2a3c276
# remove "Open" infix from all hppc classes
2a3c276
# https://issues.apache.org/jira/browse/CASSANDRA-12995X
2a3c276
Patch3:		%{pkg_name}-%{version}-hppc.patch
2a3c276
# changes autoclosable issue with TTransport in thrift
2a3c276
# https://bugzilla.redhat.com/show_bug.cgi?id=1183877
2a3c276
Patch4:		%{pkg_name}-%{version}-thrift.patch
2a3c276
# add two more parameters for SubstituteLogger constructor in slf4j
2a3c276
# https://issues.apache.org/jira/browse/CASSANDRA-12996
2a3c276
Patch5:		%{pkg_name}-%{version}-slf4j.patch
2a3c276
# remove net.mintern:primitive as it will be removed in next upstream release
2a3c276
# https://github.com/apache/cassandra/commit/8f0d5a295d34972ef719574df4aa1b59bf9e8478
2a3c276
Patch6:		%{pkg_name}-%{version}-remove-primitive.patch
2a3c276
2a3c276
%{?scl:Requires: %scl_runtime}
2a3c276
Requires(pre):	shadow-utils
2a3c276
%{?systemd_requires}
2a3c276
BuildRequires:	systemd
2a3c276
BuildRequires:	%{?scl_prefix_maven}maven-local
2a3c276
BuildRequires:	%{?scl_prefix_java_common}ant
2a3c276
BuildRequires:	%{?scl_prefix_java_common}ecj
2a3c276
BuildRequires:	%{?scl_prefix}jamm
2a3c276
BuildRequires:	%{?scl_prefix}stream-lib
2a3c276
BuildRequires:	%{?scl_prefix}metrics
2a3c276
BuildRequires:	%{?scl_prefix}metrics-jvm
2a3c276
BuildRequires:	%{?scl_prefix}json_simple
2a3c276
BuildRequires:	%{?scl_prefix}compile-command-annotations
2a3c276
BuildRequires:	%{?scl_prefix}jBCrypt
2a3c276
BuildRequires:	%{?scl_prefix}concurrent-trees
2a3c276
BuildRequires:	%{?scl_prefix}logback
2a3c276
BuildRequires:	%{?scl_prefix}metrics-reporter-config
2a3c276
BuildRequires:	%{?scl_prefix}compress-lzf
2a3c276
BuildRequires:	%{?scl_prefix}disruptor-thrift-server
2a3c276
BuildRequires:	%{?scl_prefix}airline
2a3c276
BuildRequires:	%{?scl_prefix}jmh
2a3c276
BuildRequires:	%{?scl_prefix}byteman
2a3c276
BuildRequires:	%{?scl_prefix}HdrHistogram
2a3c276
BuildRequires:	%{?scl_prefix}sigar-java
2a3c276
BuildRequires:	%{?scl_prefix}jackson
2a3c276
BuildRequires:	%{?scl_prefix}antlr3-tool
2a3c276
# using high-scale-lib from stephenc, no Cassandra original
2a3c276
#BuildRequires:	 mvn(com.boundary:high-scale-lib)
2a3c276
BuildRequires:	%{?scl_prefix}high-scale-lib
2a3c276
# using repackaging of the snowball stemmer so that it's available on Maven Central 
2a3c276
#BuildRequires:	mvn(com.github.rholder:snowball-stemmer)
2a3c276
BuildRequires:	%{?scl_prefix}snowball-java
2a3c276
# probably won't need in the future
2a3c276
BuildRequires:	%{?scl_prefix}concurrentlinkedhashmap-lru
2a3c276
# in rh-maven33: 1.4.3, needed: 1.6.0
2a3c276
BuildRequires:	%{?scl_prefix_maven}jflex
2a3c276
# in rh-java-common: 1.7.4, needed: 1.7.7
2a3c276
BuildRequires:	%{?scl_prefix_java_common}log4j-over-slf4j
2a3c276
# in rh-java-common: 1.7.4, needed: 1.7.7
2a3c276
BuildRequires:	%{?scl_prefix_java_common}jcl-over-slf4j
2a3c276
# in rh-java-common: 1.9.2, needed: 1.9.4
2a3c276
BuildRequires:	%{?scl_prefix_java_common}ant-junit
2a3c276
# in rh-java-common: 4.0.28, needed: 4.0.39.Final
2a3c276
BuildRequires:	%{?scl_prefix_java_common}netty
2a3c276
# in cassandra39: 0.9.1, needed: 0.9.2
2a3c276
BuildRequires:	%{?scl_prefix}libthrift-java
2a3c276
# TODO
2a3c276
BuildRequires:	%{?scl_prefix}cassandra-java-driver
2a3c276
BuildRequires:	%{?scl_prefix}lz4-java
2a3c276
BuildRequires:	%{?scl_prefix}snappy-java
2a3c276
BuildRequires:	%{?scl_prefix}ohc
2a3c276
BuildRequires:	%{?scl_prefix}ohc-core-j8
2a3c276
BuildRequires:	%{?scl_prefix}hppc
2a3c276
BuildRequires:	%{?scl_prefix}caffeine
2a3c276
# the SCL version of the package depends on rh-maven33 collection
2a3c276
#%{?scl:Requires: %%scl_require rh-maven33}
2a3c276
2a3c276
# temporarly removed as it is optional
2a3c276
# using hadoop-common instead of hadoop-core, no Cassandra original
2a3c276
#BuildRequires:	mvn(org.apache.hadoop:hadoop-core)
2a3c276
#BuildRequires:	hadoop-common
2a3c276
#BuildRequires:	hadoop-mapreduce
2a3c276
2a3c276
%description
2a3c276
Cassandra is a partitioned row store. Rows are organized into tables with
2a3c276
a required primary key. Partitioning means that Cassandra can distribute your
2a3c276
data across multiple machines in an application-transparent matter. Cassandra
2a3c276
will automatically repartition as machines are added / removed from the cluster.
2a3c276
Row store means that like relational databases, Cassandra organizes data by
2a3c276
rows and columns. The Cassandra Query Language (CQL) is a close relative of SQL.
2a3c276
Database Pure Java Driver. It was developed specifically as a lightweight
2a3c276
JDBC connector for use with MySQL and MariaDB database servers.
2a3c276
2a3c276
%package parent
2a3c276
Summary:	Parent POM for %{pkg_name}
2a3c276
2a3c276
%description parent
2a3c276
Parent POM for %{pkg_name}.
2a3c276
2a3c276
%package thrift
2a3c276
Summary:	Thrift for %{pkg_name}
2a3c276
Requires:	%{pkg_name} = %{version}-%{release}
2a3c276
2a3c276
%description thrift
2a3c276
Allows portable (across programming languages) access to the database. Thrift
2a3c276
accomplishes this by generated source code for the programming language in
2a3c276
question based on a Thrift IDL file describing the service.
2a3c276
2a3c276
%package clientutil
2a3c276
Summary:	Client utilities for %{pkg_name}
2a3c276
Requires:	%{pkg_name} = %{version}-%{release}
2a3c276
Requires:	python-cassandra-driver
2a3c276
2a3c276
%description clientutil
2a3c276
Utilities usable by client for %{pkg_name}
2a3c276
2a3c276
# source codes of cqlshlib are not python3 compatible, therefore using python2
2a3c276
%package python2-cqlshlib
2a3c276
Summary:	Commandline interface for %{name}
2a3c276
BuildRequires:	python2-devel
2a3c276
BuildRequires:	Cython
2a3c276
Requires:	%{name} = %{version}-%{release}
2a3c276
Requires:	python-cassandra-driver
2a3c276
Provides:	cqlsh
2a3c276
%{?python_provide:%python_provide python2-cqlshlib}
2a3c276
2a3c276
%description python2-cqlshlib
2a3c276
Commandline client used to communicate with %{pkg_name} server.
2a3c276
2a3c276
%package stress
2a3c276
Summary:	Stress testing utility for %{pkg_name}
2a3c276
Requires:	%{pkg_name} = %{version}-%{release}
2a3c276
2a3c276
%description stress
2a3c276
The cassandra-stress tool is a Java-based stress testing utility
2a3c276
for benchmarking and load testing a Cassandra cluster.
2a3c276
2a3c276
%package javadoc
2a3c276
Summary:	Javadoc for %{pkg_name}
2a3c276
2a3c276
%description javadoc
2a3c276
This package contains the API documentation for %{pkg_name}.
2a3c276
2a3c276
%prep
2a3c276
%setup -qcn %{pkg_name}-%{version}
2a3c276
cp -pr %{pkg_name}-%{pkg_name}-%{version}/* .
2a3c276
rm -r %{pkg_name}-%{pkg_name}-%{version}
2a3c276
2a3c276
# remove binary and library files
2a3c276
find -name "*.class" -print -delete
2a3c276
find -name "*.jar" -print -delete
2a3c276
find -name "*.zip" -print -delete
2a3c276
#./lib/futures-2.1.6-py2.py3-none-any.zip
2a3c276
#./lib/six-1.7.3-py2.py3-none-any.zip
2a3c276
#./lib/cassandra-driver-internal-only-2.6.0c2.post.zip
2a3c276
find -name "*.so" -print -delete
2a3c276
find -name "*.dll" -print -delete
2a3c276
find -name "*.sl" -print -delete
2a3c276
find -name "*.dylib" -print -delete
2a3c276
rm -r lib/sigar-bin/sigar-x86-winnt.lib
2a3c276
find -name "*.exe" -print -delete
2a3c276
find -name "*.bat" -print -delete
2a3c276
find -name "*.pyc" -print -delete
2a3c276
find -name "*py.class" -print -delete
2a3c276
2a3c276
# remove hadoop
2a3c276
rm src/java/org/apache/cassandra/client/RingCache.java
2a3c276
rm -r src/java/org/apache/cassandra/hadoop
2a3c276
rm test/unit/org/apache/cassandra/client/TestRingCache.java
2a3c276
rm test/unit/org/apache/cassandra/hadoop/ColumnFamilyInputFormatTest.java
2a3c276
2a3c276
# build jar repositories for dependencies
2a3c276
build-jar-repository lib antlr3
2a3c276
build-jar-repository lib stringtemplate4
2a3c276
build-jar-repository lib jsr-305
2a3c276
build-jar-repository lib commons-lang3
2a3c276
build-jar-repository lib libthrift
2a3c276
build-jar-repository lib slf4j/api
2a3c276
build-jar-repository lib guava
2a3c276
build-jar-repository lib jamm
2a3c276
build-jar-repository lib stream-lib
2a3c276
build-jar-repository lib metrics/metrics-core
2a3c276
build-jar-repository lib metrics/metrics-jvm
2a3c276
build-jar-repository lib json_simple
2a3c276
build-jar-repository lib antlr3-runtime
2a3c276
build-jar-repository lib compile-command-annotations
2a3c276
# https://bugzilla.redhat.com/show_bug.cgi?id=1308556
2a3c276
build-jar-repository lib high-scale-lib/high-scale-lib
2a3c276
build-jar-repository lib cassandra-java-driver/cassandra-driver-core
2a3c276
build-jar-repository lib netty/netty-all
2a3c276
build-jar-repository lib lz4-java
2a3c276
build-jar-repository lib snappy-java
2a3c276
build-jar-repository lib jBCrypt
2a3c276
build-jar-repository lib concurrentlinkedhashmap-lru
2a3c276
build-jar-repository lib ohc/ohc-core
2a3c276
# temporarly removed because it is optional
2a3c276
#build-jar-repository lib hadoop/hadoop-common
2a3c276
build-jar-repository lib snakeyaml
2a3c276
build-jar-repository lib jackson/jackson-core-asl
2a3c276
build-jar-repository lib jackson/jackson-mapper-asl
2a3c276
build-jar-repository lib ecj
2a3c276
build-jar-repository lib objectweb-asm/asm
2a3c276
build-jar-repository lib commons-math3
2a3c276
# temporarly removed because it is optional
2a3c276
#build-jar-repository lib hadoop/hadoop-mapreduce-client-core
2a3c276
build-jar-repository lib concurrent-trees
2a3c276
build-jar-repository lib hppc
2a3c276
build-jar-repository lib snowball-java
2a3c276
build-jar-repository lib logback/logback-classic
2a3c276
build-jar-repository lib logback/logback-core
2a3c276
build-jar-repository lib metrics-reporter-config/reporter-config
2a3c276
build-jar-repository lib metrics-reporter-config/reporter-config-base
2a3c276
build-jar-repository lib joda-time
2a3c276
build-jar-repository lib compress-lzf
2a3c276
build-jar-repository lib disruptor-thrift-server
2a3c276
build-jar-repository lib commons-cli
2a3c276
build-jar-repository lib airline
2a3c276
build-jar-repository lib jna
2a3c276
build-jar-repository lib sigar
2a3c276
# temporarly removed because it is optional
2a3c276
#build-jar-repository lib hadoop/hadoop-annotations
2a3c276
build-jar-repository lib jflex
2a3c276
build-jar-repository lib java_cup
2a3c276
build-jar-repository lib commons-codec
2a3c276
build-jar-repository lib caffeine
2a3c276
# test dependencies
2a3c276
build-jar-repository lib junit
2a3c276
build-jar-repository lib ant
2a3c276
build-jar-repository lib ant/ant-junit
2a3c276
build-jar-repository lib hamcrest/core
2a3c276
build-jar-repository lib apache-commons-io
2a3c276
build-jar-repository lib byteman/byteman-bmunit
2a3c276
build-jar-repository lib commons-collections
2a3c276
build-jar-repository lib jmh/jmh-core
2a3c276
build-jar-repository lib HdrHistogram
2a3c276
# binaries dependencies
2a3c276
build-jar-repository lib javax.inject
2a3c276
2a3c276
# build patch
2a3c276
%patch0 -p1
2a3c276
# airline patch
2a3c276
%patch1 -p1
2a3c276
# scripts patch
2a3c276
%patch2 -p1
2a3c276
# hppc patch
2a3c276
%patch3 -p1
2a3c276
# thrift patch
2a3c276
%patch4 -p1
2a3c276
# slf4j patch
2a3c276
%patch5 -p1
2a3c276
# remove primitive patch
2a3c276
%patch6 -p1
2a3c276
2a3c276
# copy pom files
2a3c276
mkdir build
2a3c276
cp -p %{SOURCE4} build/%{pkg_name}-%{version}.pom
2a3c276
cp -p %{SOURCE5} build/%{pkg_name}-thrift-%{version}.pom
2a3c276
cp -p %{SOURCE6} build/%{pkg_name}-clientutil-%{version}.pom
2a3c276
cp -p %{SOURCE7} build/%{pkg_name}-%{version}-parent.pom
2a3c276
2a3c276
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
2a3c276
# update dependencies that are not correct in the downloaded pom files
2a3c276
%pom_change_dep com.boundary: com.github.stephenc.high-scale-lib: build/%{name}-%{version}.pom
2a3c276
%pom_change_dep com.github.rholder:snowball-stemmer org.tartarus:snowball build/%{name}-thrift-%{version}.pom
2a3c276
2a3c276
# remove primitve as a dependency
2a3c276
%pom_remove_dep -r :primitive build/%{pkg_name}-thrift-%{version}.pom
2a3c276
2a3c276
%mvn_package "org.apache.%{pkg_name}:%{pkg_name}-parent:pom:%{version}" parent
2a3c276
%mvn_package ":%{pkg_name}-thrift" thrift
2a3c276
%mvn_package ":%{pkg_name}-clientutil" clientutil
2a3c276
%mvn_package ":%{pkg_name}-stress" stress
2a3c276
%{?scl:EOF}
2a3c276
2a3c276
%build
2a3c276
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
2a3c276
ant jar javadoc -Drelease=true 
2a3c276
%{?scl:EOF}
2a3c276
2a3c276
# Build the cqlshlib Python module
2a3c276
pushd pylib
2a3c276
%py2_build
2a3c276
popd
2a3c276
2a3c276
%install
2a3c276
%{?scl:scl enable %{scl_maven} %{scl} - << "EOF"}
2a3c276
%mvn_artifact build/%{pkg_name}-%{version}-parent.pom
2a3c276
%mvn_artifact build/%{pkg_name}-%{version}.pom  build/%{pkg_name}-%{version}.jar
2a3c276
%mvn_artifact build/%{pkg_name}-thrift-%{version}.pom  build/%{pkg_name}-thrift-%{version}.jar
2a3c276
%mvn_artifact build/%{pkg_name}-clientutil-%{version}.pom  build/%{pkg_name}-clientutil-%{version}.jar
2a3c276
%mvn_artifact org.apache.cassandra:%{pkg_name}-stress:%{version} build/tools/lib/%{pkg_name}-stress.jar
2a3c276
2a3c276
%mvn_install -J build/javadoc/
2a3c276
%{?scl:EOF}
2a3c276
2a3c276
# Install the cqlshlib Python module
2a3c276
pushd pylib
2a3c276
%py2_install
2a3c276
popd
2a3c276
2a3c276
# create data dir
2a3c276
mkdir -p %{buildroot}%{_sharedstatedir}/%{pkg_name}
2a3c276
2a3c276
# logs directory plus files
2a3c276
mkdir -p %{buildroot}%{_localstatedir}/log/%{pkg_name}
2a3c276
install -p -D -m 644 "%{SOURCE1}"  %{buildroot}%{_sysconfdir}/logrotate.d/%{pkg_name}
2a3c276
install -p -D -m 755 bin/%{pkg_name} %{buildroot}%{_bindir}/%{pkg_name}
2a3c276
install -p -D -m 755 bin/%{pkg_name}.in.sh %{buildroot}%{_bindir}/%{pkg_name}.in.sh
2a3c276
install -p -D -m 755 conf/%{pkg_name}-env.sh %{buildroot}%{_sysconfdir}/%{pkg_name}-env.sh
2a3c276
install -p -D -m 644 conf/%{pkg_name}.yaml %{buildroot}%{_sysconfdir}/%{pkg_name}.yaml
2a3c276
install -p -D -m 644 conf/jvm.options %{buildroot}%{_sysconfdir}/jvm.options
2a3c276
install -p -D -m 644 conf/logback-tools.xml %{buildroot}%{_sysconfdir}/logback-tools.xml
2a3c276
install -p -D -m 644 conf/logback.xml %{buildroot}%{_sysconfdir}/logback.xml
2a3c276
install -p -D -m 755 bin/cqlsh.py %{buildroot}%{_bindir}/cqlsh
2a3c276
install -p -D -m 755 bin/nodetool %{buildroot}%{_bindir}/nodetool
2a3c276
install -p -D -m 755 bin/sstableloader %{buildroot}%{_bindir}/sstableloader
2a3c276
install -p -D -m 755 bin/sstablescrub %{buildroot}%{_bindir}/sstablescrub
2a3c276
install -p -D -m 755 bin/sstableupgrade %{buildroot}%{_bindir}/sstableupgrade
2a3c276
install -p -D -m 755 bin/sstableutil %{buildroot}%{_bindir}/sstableutil
2a3c276
install -p -D -m 755 bin/sstableverify %{buildroot}%{_bindir}/sstableverify
2a3c276
install -p -D -m 755 tools/bin/sstabledump %{buildroot}%{_bindir}/sstabledump
2a3c276
install -p -D -m 755 tools/bin/sstableexpiredblockers %{buildroot}%{_bindir}/sstableexpiredblockers
2a3c276
install -p -D -m 755 tools/bin/sstablelevelreset %{buildroot}%{_bindir}/sstablelevelreset
2a3c276
install -p -D -m 755 tools/bin/sstablemetadata %{buildroot}%{_bindir}/sstablemetadata
2a3c276
install -p -D -m 755 tools/bin/sstableofflinerelevel %{buildroot}%{_bindir}/sstableofflinerelevel
2a3c276
install -p -D -m 755 tools/bin/sstablerepairedset %{buildroot}%{_bindir}/sstablerepairedset
2a3c276
install -p -D -m 755 tools/bin/sstablesplit %{buildroot}%{_bindir}/sstablesplit
2a3c276
install -p -D -m 755 tools/bin/%{pkg_name}-stress %{buildroot}%{_bindir}/%{pkg_name}-stress
2a3c276
install -p -D -m 755 tools/bin/%{pkg_name}-stressd %{buildroot}%{_bindir}/%{pkg_name}-stressd
2a3c276
2a3c276
# install cassandrad.service
2a3c276
install -p -D -m 644 "%{SOURCE2}"  %{buildroot}%{_unitdir}/%{pkg_name}d.service
2a3c276
2a3c276
%pre
2a3c276
getent group %{pkg_name} >/dev/null || groupadd -f -g %{allocated_gid} -r %{pkg_name}
2a3c276
if ! getent passwd %{pkg_name} >/dev/null ; then
2a3c276
  if ! getrnt passwd %{allocated_uid} >/dev/null ; then
2a3c276
    useradd -r -u %{allocated_uid} -g %{pkg_name} -d %{_sharedstatedir}/%{pkg_name} \
2a3c276
      -s /sbin/nologin -c "Cassandra Database Server" %{pkg_name}
2a3c276
  else
2a3c276
    useradd -r -g %{pkg_name} -d %{_sharedstatedir}/%{pkg_name} -s /sbin/nologin \
2a3c276
      -c "Cassandra Database Server" %{pkg_name}
2a3c276
  fi
2a3c276
fi
2a3c276
exit 0
2a3c276
2a3c276
%post
2a3c276
%systemd_post %{pkg_name}d.service
2a3c276
2a3c276
%preun
2a3c276
%systemd_preun %{pkg_name}d.service
2a3c276
2a3c276
%postun
2a3c276
%systemd_postun_with_restart %{pkg_name}d.service
2a3c276
2a3c276
%files -f .mfiles
2a3c276
%doc README.asc CHANGES.txt NEWS.txt
2a3c276
%license LICENSE.txt NOTICE.txt
2a3c276
%dir %attr(755, %{pkg_name}, root) %{_sharedstatedir}/%{pkg_name}
2a3c276
%dir %attr(750, %{pkg_name}, root) %{_localstatedir}/log/%{pkg_name}
2a3c276
%attr(755, root, root) %{_bindir}/%{pkg_name}
2a3c276
%attr(755, root, root) %{_bindir}/%{pkg_name}.in.sh
2a3c276
%config(noreplace) %{_sysconfdir}/%{pkg_name}-env.sh
2a3c276
%config(noreplace) %{_sysconfdir}/%{pkg_name}.yaml
2a3c276
%config(noreplace) %{_sysconfdir}/jvm.options
2a3c276
%config(noreplace) %{_sysconfdir}/logback-tools.xml
2a3c276
%config(noreplace) %{_sysconfdir}/logback.xml
2a3c276
%config(noreplace) %{_sysconfdir}/logrotate.d/%{pkg_name}
2a3c276
%{_unitdir}/%{pkg_name}d.service
2a3c276
2a3c276
%files parent -f .mfiles-parent
2a3c276
%license LICENSE.txt NOTICE.txt
2a3c276
2a3c276
%files thrift -f .mfiles-thrift
2a3c276
%license LICENSE.txt NOTICE.txt
2a3c276
2a3c276
%files clientutil -f .mfiles-clientutil
2a3c276
%license LICENSE.txt NOTICE.txt
2a3c276
%attr(755, root, root) %{_bindir}/nodetool
2a3c276
%attr(755, root, root) %{_bindir}/sstableloader
2a3c276
%attr(755, root, root) %{_bindir}/sstablescrub
2a3c276
%attr(755, root, root) %{_bindir}/sstableupgrade
2a3c276
%attr(755, root, root) %{_bindir}/sstableutil
2a3c276
%attr(755, root, root) %{_bindir}/sstableverify
2a3c276
%attr(755, root, root) %{_bindir}/sstabledump
2a3c276
%attr(755, root, root) %{_bindir}/sstableexpiredblockers
2a3c276
%attr(755, root, root) %{_bindir}/sstablelevelreset
2a3c276
%attr(755, root, root) %{_bindir}/sstablemetadata
2a3c276
%attr(755, root, root) %{_bindir}/sstableofflinerelevel
2a3c276
%attr(755, root, root) %{_bindir}/sstablerepairedset
2a3c276
%attr(755, root, root) %{_bindir}/sstablesplit
2a3c276
2a3c276
%files python2-cqlshlib
2a3c276
%doc conf/cqlshrc.sample
2a3c276
%license LICENSE.txt NOTICE.txt
2a3c276
%attr(755, root, root) %{_bindir}/cqlsh
2a3c276
%{python2_sitearch}/cqlshlib
2a3c276
%{python2_sitearch}/%{pkg_name}_pylib-0.0.0-py%{python2_version}.egg-info
2a3c276
2a3c276
%files stress -f .mfiles-stress
2a3c276
%license LICENSE.txt NOTICE.txt
2a3c276
%attr(755, root, root) %{_bindir}/%{pkg_name}-stress
2a3c276
%attr(755, root, root) %{_bindir}/%{pkg_name}-stressd
2a3c276
%attr(755, root, root) %{_bindir}/%{pkg_name}.in.sh
2a3c276
2a3c276
%files javadoc -f .mfiles-javadoc
2a3c276
%license LICENSE.txt NOTICE.txt
2a3c276
2a3c276
%changelog
2a3c276
* Thu Dec 01 2016 Tomas Repik <trepik@redhat.com> - 3.9-1
2a3c276
- initial package