Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:loosi
python-carbon
python-carbon.spec
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File python-carbon.spec of Package python-carbon
# # spec file for package python-carbon # # Copyright (c) 2014 SUSE LINUX Products GmbH, Nuernberg, Germany. # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed # upon. The license for this file, and modifications and additions to the # file, is the same license as for the pristine package itself (unless the # license for the pristine package is not an Open Source License, in which # case the license is the MIT License). An "Open Source License" is a # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. # Please submit bugfixes or comments via http://bugs.opensuse.org/ Name: carbon Version: 0.9.13 Release: 0 License: Apache-2.0 Summary: Backend data caching and persistence daemon for Graphite Url: http://graphite-project.github.com Group: Development/Languages/Python Source: %{name}-%{version}.tar.gz Source1: carbon-cache.service # PATCH-FIX-OPENSUSE remove-opt.patch tserong@suse.com -- don't use /opt tree Patch0: remove-opt.patch # PATCH-FIX-OPENSUSE remove-daemonize.patch tserong@suse.com -- remove daemonize for twisted 13.2.0 compatibility Patch1: remove-daemonize.patch %{?systemd_requires} BuildRequires: systemd BuildRequires: python-devel BuildRequires: python-setuptools Requires: python-whisper >= %{version}, python-twisted-core >= 8.0 Requires(pre): shadow BuildRoot: %{_tmppath}/%{name}-%{version}-build %if 0%{?suse_version} && 0%{?suse_version} <= 1110 %{!?python_sitelib: %global python_sitelib %(python -c "from distutils.sysconfig import get_python_lib; print get_python_lib()")} %else BuildArch: noarch %endif %description Twisted daemon that listens for time-series data and writes this data out to whisper databases, relays the data or aggregates the data. Carbon is a data collection and storage agent. %prep %setup -q #%patch0 -p1 #%patch1 -p1 %build python setup.py build %install python setup.py install --prefix=%{_prefix} --root=%{buildroot} install -Dp -m 0644 %{SOURCE1} %{buildroot}%{_unitdir}/carbon-cache.service mkdir -p %{buildroot}%{_sbindir} ln -s -f %{_sbindir}/service %{buildroot}%{_sbindir}/rccarbon-cache pushd %{buildroot}/usr/bin/ %{__mv} carbon-aggregator.py carbon-aggregator %{__mv} carbon-cache.py carbon-cache %{__mv} carbon-client.py carbon-client %{__mv} carbon-relay.py carbon-relay %{__mv} validate-storage-schemas.py validate-storage-schemas popd %{__mkdir_p} %{buildroot}%{_localstatedir}/log/carbon %{__mkdir_p} %{buildroot}%{_localstatedir}/lib/carbon # Install example configuration files %{__mkdir_p} %{buildroot}%{_sysconfdir}/carbon %{__install} -Dp -m0644 conf/carbon.conf.example %{buildroot}%{_sysconfdir}/carbon/ %{__install} -Dp -m0644 conf/storage-schemas.conf.example %{buildroot}%{_sysconfdir}/carbon/ %files %defattr(-,root,root,-) %doc LICENSE conf/* %dir %{_sysconfdir}/carbon %{_bindir}/carbon* %{_bindir}/validate-storage-schemas %config(noreplace) %{_sysconfdir}/carbon/* %attr(0755,-,-) %{python_sitelib}/carbon/amqp_publisher.py %attr(0755,-,-) %{python_sitelib}/carbon/amqp_listener.py %{python_sitelib}/* # These next two are here as they're referenced by the example config %{_localstatedir}/log/carbon %{_localstatedir}/lib/carbon %{_unitdir}/carbon-cache.service %{_sbindir}/rccarbon-cache %pre %service_add_pre carbon-cache.service %post %service_add_post carbon-cache.service %preun %service_del_preun carbon-cache.service %postun %service_del_postun carbon-cache.service %changelog
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor