3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
7 # http://www.apache.org/licenses/LICENSE-2.0
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
18 Summary: CaaS Logging restful API and CLI plugins
19 License: %{_platform_license}
21 Vendor: %{_platform_vendor}
22 Source0: %{name}-%{version}.tar.gz
24 Requires: python-flask, python2-flask-restful, python2-configparser
25 BuildRequires: python python-setuptools
28 This RPM contains CaaS Logging components (restful API and CLI plugins) for Akraino REC
34 mkdir -p %{buildroot}%{_python_site_packages_path}/caas_logging
36 mkdir -p %{buildroot}%{_python_site_packages_path}/yarf/handlers/caas_logging
37 rsync -ra src/caas_logging/rest-plugin/* %{buildroot}/%{_python_site_packages_path}/yarf/handlers/caas_logging
39 mkdir -p %{buildroot}/opt/cmframework/activators/
40 rsync -ra src/caas_logging/activator/* %{buildroot}/opt/cmframework/activators
42 cd src && python setup.py install --root %{buildroot} --no-compile --install-purelib %{_python_site_packages_path} --install-scripts %{_platform_bin_path} && cd -
45 %defattr(0755,root,root)
46 %{_python_site_packages_path}/caas_logging*
47 %{_python_site_packages_path}/yarf/handlers/caas_logging*
48 /opt/cmframework/activators/caasactivator.py*