diff --git a/pyparted.spec b/pyparted.spec index 2a3ad7c..ed56f68 100644 --- a/pyparted.spec +++ b/pyparted.spec @@ -10,6 +10,7 @@ Group: System Environment/Libraries URL: https://github.com/dcantrell/%{name} Source0: https://github.com/dcantrell/%{name}/releases/%{name}-%{version}.tar.gz +Patch0: patch BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(id -u -n) BuildRequires: python-devel @@ -36,6 +37,7 @@ partition tables. This package provides Python 3 bindings for parted. %prep %setup -q +%patch0 -p1 %if 0%{?with_python3} rm -rf %{py3dir} @@ -75,7 +77,7 @@ rm -rf %{buildroot} %files %defattr(-,root,root,-) -%doc AUTHORS BUGS COPYING NEWS README TODO +%doc AUTHORS COPYING NEWS README TODO %{python_sitearch}/_ped.so %{python_sitearch}/parted %{python_sitearch}/%{name}-%{version}-*.egg-info @@ -83,7 +85,7 @@ rm -rf %{buildroot} %if 0%{?with_python3} %files -n python3-pyparted %defattr(-,root,root,-) -%doc AUTHORS BUGS COPYING NEWS README TODO +%doc AUTHORS COPYING NEWS README TODO %{python3_sitearch}/_ped.*.so %{python3_sitearch}/parted %{python3_sitearch}/%{name}-%{version}-*.egg-info