X-Git-Url: http://git.pld-linux.org/?a=blobdiff_plain;f=python-linux-procfs.spec;h=ce089eb0b1afd4543bbb88a1e38ce3a126affa04;hb=7e13eda1a86c579b03e7bb61bb6e809cfb96281e;hp=97cbee87c3740e3364bc8c50c7b1c3c514d50fbe;hpb=4b34570d8688bb7754fcdba7a82cf3cd8ef43c77;p=packages%2Fpython-linux-procfs.git diff --git a/python-linux-procfs.spec b/python-linux-procfs.spec index 97cbee8..ce089eb 100644 --- a/python-linux-procfs.spec +++ b/python-linux-procfs.spec @@ -6,12 +6,12 @@ Summary: Linux /proc abstraction classes for Python 2 Summary(pl.UTF-8): Klasy abstrakcji linuksowego /proc dla Pythona 2 Name: python-linux-procfs -Version: 0.4.10 -Release: 2 +Version: 0.6 +Release: 3 License: GPL v2 Group: Libraries/Python Source0: https://www.kernel.org/pub/software/libs/python/python-linux-procfs/%{name}-%{version}.tar.xz -# Source0-md5: 561a3177990a8e530a1402b7fe177423 +# Source0-md5: 039761a2abc01d92429b9df4636344b0 URL: https://rt.wiki.kernel.org/index.php/Tuna BuildRequires: python-modules >= 2 BuildRequires: rpm-pythonprov @@ -67,6 +67,8 @@ rm -rf $RPM_BUILD_ROOT %endif %if %{with python3} +# Make sure python2 script is removed +%{__rm} -f $RPM_BUILD_ROOT%{_bindir}/pflags %py3_install %endif @@ -76,17 +78,19 @@ rm -rf $RPM_BUILD_ROOT %if %{with python2} %files %defattr(644,root,root,755) +%if %{without python3} +%attr(755,root,root) %{_bindir}/pflags +%endif %{py_sitescriptdir}/procfs %if "%{py_ver}" > "2.4" -#%{py_sitescriptdir}/python_linux_procfs-%{version}-py*.egg-info -%{py_sitescriptdir}/python_linux_procfs-0.4.9-py*.egg-info +%{py_sitescriptdir}/python_linux_procfs-%{version}-py*.egg-info %endif %endif %if %{with python3} %files -n python3-linux-procfs %defattr(644,root,root,755) +%attr(755,root,root) %{_bindir}/pflags %{py3_sitescriptdir}/procfs -#%{py3_sitescriptdir}/python_linux_procfs-%{version}-py*.egg-info -%{py3_sitescriptdir}/python_linux_procfs-0.4.9-py*.egg-info +%{py3_sitescriptdir}/python_linux_procfs-%{version}-py*.egg-info %endif