X-Git-Url: https://gerrit.akraino.org/r/gitweb?p=ta%2Fcaas-logging.git;a=blobdiff_plain;f=SPECS%2Fcaas-logging.spec;fp=SPECS%2Fcaas-logging.spec;h=512800d734f81be60395e78ff899824e2eef7fe0;hp=0000000000000000000000000000000000000000;hb=e44199dbf3af9d714be1e8717707eb8ad661239f;hpb=18a4bea203375dcc595992f2b5679348958e33d0 diff --git a/SPECS/caas-logging.spec b/SPECS/caas-logging.spec new file mode 100644 index 0000000..512800d --- /dev/null +++ b/SPECS/caas-logging.spec @@ -0,0 +1,59 @@ +# Copyright 2019 Nokia + +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +Name: caas-logging +Version: %{_version} +Release: 1%{?dist} +Summary: CaaS Logging restful API and CLI plugins +License: %{_platform_license} + +Vendor: %{_platform_vendor} +Source0: %{name}-%{version}.tar.gz +BuildArch: noarch +Requires: python-flask, python2-flask-restful, python2-configparser +BuildRequires: python python-setuptools + +%description +This RPM contains CaaS Logging components (restful API and CLI plugins) for Akraino REC + +%prep +%autosetup + +%install +mkdir -p %{buildroot}%{_python_site_packages_path}/caas_logging + +mkdir -p %{buildroot}%{_python_site_packages_path}/yarf/handlers/caas_logging +rsync -ra src/caas_logging/rest-plugin/* %{buildroot}/%{_python_site_packages_path}/yarf/handlers/caas_logging + +mkdir -p %{buildroot}/opt/cmframework/activators/ +rsync -ra src/caas_logging/activator/* %{buildroot}/opt/cmframework/activators + +cd src && python setup.py install --root %{buildroot} --no-compile --install-purelib %{_python_site_packages_path} --install-scripts %{_platform_bin_path} && cd - + +%files +%defattr(0755,root,root) +%{_python_site_packages_path}/caas_logging* +%{_python_site_packages_path}/yarf/handlers/caas_logging* +/opt/cmframework/activators/caasactivator.py* + +%pre + +%post + +%preun + +%postun + +%clean +rm -rf %{buildroot}