-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7f0e9d4
commit 7a4dbee
Showing
1 changed file
with
17 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
||
|
||
|
@@ -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. |