From 015bf47fba1bf84ae8f3a64229d155b8cc5c2a9f Mon Sep 17 00:00:00 2001 From: Edouard Bourguignon Date: Nov 05 2016 15:59:47 +0000 Subject: keep package name --- diff --git a/glances.spec b/glances.spec index 0bd3375..3aeb8f9 100644 --- a/glances.spec +++ b/glances.spec @@ -1,7 +1,6 @@ -%global srcname glances %global sum CLI curses based monitoring tool -Name: %{srcname} +Name: glances Version: 2.7.1 Release: 1%{?dist} Summary: %{sum} @@ -24,12 +23,12 @@ Glances uses the PsUtil library to get information from your system. It is developed in Python. -%package -n python2-%{srcname} -%{?python_provide:%python_provide python2-%{srcname}} +%package -n python2-%{name} +%{?python_provide:%python_provide python2-%{name}} Requires: python-setuptools Requires: python2-psutil >= 2.0.0 Summary: %{sum} -%{?python_provide:%python_provide python2-%{srcname}} +%{?python_provide:%python_provide python2-%{name}} %description -n python2-%{srcname} Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD. @@ -39,13 +38,13 @@ Glances uses the PsUtil library to get information from your system. It is developed in Python. -%package -n %{srcname} -%{?python_provide:%python_provide python3-%{srcname}} +%package -n %{name} +%{?python_provide:%python_provide python3-%{name}} Requires: python3-setuptools Requires: python3-psutil >= 2.0.0 Summary: %{sum} -%description -n %{srcname} +%description -n %{name} Glances is a CLI curses based monitoring tool for both GNU/Linux and BSD. Glances uses the PsUtil library to get information from your system. @@ -54,7 +53,7 @@ It is developed in Python. %prep -%autosetup -n %{srcname}-%{version} +%autosetup -n %{name}-%{version} %build %py2_build @@ -75,21 +74,21 @@ It is developed in Python. rm -rf %{buildroot} -%files -n python2-%{srcname} +%files -n python2-%{name} %defattr(-,root,root,-) %doc AUTHORS COPYING README.rst NEWS %license COPYING -%{python2_sitelib}/%{srcname}/ +%{python2_sitelib}/%{name}/ %{python2_sitelib}/Glances-%{version}-py%{python2_version}.egg-info/ %exclude %{_datadir}/doc/glances %{_datadir}/man/man1/glances.1.gz -%files -n %{srcname} +%files -n %{name} %defattr(-,root,root,-) %doc AUTHORS COPYING README.rst NEWS %license COPYING %{_bindir}/glances -%{python3_sitelib}/%{srcname}/ +%{python3_sitelib}/%{name}/ %{python3_sitelib}/Glances-%{version}-py%{python3_version}.egg-info/ %exclude %{_datadir}/doc/glances %{_datadir}/man/man1/glances.1.gz