Skip to content

Commit

Permalink
Backport to el6
Browse files Browse the repository at this point in the history
  • Loading branch information
traylenator committed May 30, 2018
1 parent 7f0e9d4 commit 7a4dbee
Showing 1 changed file with 17 additions and 16 deletions.
33 changes: 17 additions & 16 deletions python-collectd_cvmfs.spec
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,27 @@

Name: python-%{pypi_name}
Version: 1.0.2
Release: 1%{?dist}
Release: 1%{?dist}.1
Summary: Collectd plugin to monitor CvmFS Clients

License: ASL 2.0
URL: https://github.com/cvmfs/collectd-cvmfs
Source0: https://github.com/cvmfs/collectd-cvmfs/archive/%{version}/collectd-cvmfs-%{version}.tar.gz
BuildArch: noarch

BuildRequires: python3-devel
BuildRequires: python3dist(setuptools)
BuildRequires: python2-devel
BuildRequires: python-setuptools

%description
Collectd module for CvmFS clients

%package -n python3-%{pypi_name}
%package -n python2-%{pypi_name}
Summary: %{summary}
%{?python_provide:%python_provide python3-%{pypi_name}}

Requires: python3dist(psutil)
Requires: python3dist(pyxattr)
Requires: collectd-python
%description -n python3-%{pypi_name}
Requires: python-psutil
Requires: pyxattr
Requires: collectd
%description -n python2-%{pypi_name}
Collectd module for CvmFS clients


Expand All @@ -34,18 +33,20 @@ Collectd module for CvmFS clients
rm -rf %{pypi_name}.egg-info

%build
%py3_build
%{__python} setup.py build

%install
%py3_install
%{__python} setup.py install -O1 --skip-build --root %{buildroot}

%files -n python3-%{pypi_name}
%doc README.rst NEWS.txt
%license LICENSE
%{python3_sitelib}/%{pypi_name}
%{python3_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%files -n python2-%{pypi_name}
%doc README.rst NEWS.txt LICENSE
%{python2_sitelib}/%{pypi_name}
%{python2_sitelib}/%{pypi_name}-%{version}-py?.?.egg-info
%{_prefix}/share/collectd/%{pypi_name}.db

%changelog
* Wed May 30 2018 Steve Traylen <[email protected]> - 1.0.1-1 1
- Backport to el6

* Fri May 25 2018 Steve Traylen <[email protected]> - 1.0.1-1
- Initial package.

0 comments on commit 7a4dbee

Please sign in to comment.