File project.diff of Package python-gobject

--- python-gobject.spec.orig
+++ python-gobject.spec
@@ -16,8 +16,6 @@
 #
 
 
-%bcond_with common-devel
-
 %{?!python_module:%define python_module() python-%{**} python3-%{**}}
 %define skip_python2 1
 %{?sle15_python_module_pythons}
@@ -95,9 +93,7 @@ Group:          Development/Languages/Py
 Requires:       %{name} = %{version}
 Requires:       %{name}-Gdk = %{version}
 Requires:       %{name}-cairo = %{version}
-%if %{with common-devel}
 Requires:       %{name}-common-devel = %{version}
-%endif
 Requires:       python-devel
 
 %description devel
@@ -150,7 +146,7 @@ find %{buildroot} "(" -name '*.la' -or -
 
 %{?python_compileall}
 
-%if %{without common-devel}
+%if %{with common-devel}
 %{python_expand #
 # No common-devel package so we place all files for the devel package
 mkdir -p %{buildroot}%{$python_sitearch}/gi/share
@@ -187,11 +183,6 @@ sed -i "s|%{_prefix}|%{$python_sitearch}
 %pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/keysyms.*
 %pycache_only %exclude %{python_sitearch}/gi/overrides/__pycache__/Pango.*
 
-%if %{without common-devel}
-%exclude %{python_sitearch}/gi/include
-%exclude %{python_sitearch}/gi/share
-%endif
-
 %files %{python_files Gdk}
 %{python_sitearch}/gi/_gtktemplate.py
 %{python_sitearch}/gi/overrides/Gdk.*
@@ -212,15 +203,8 @@ sed -i "s|%{_prefix}|%{$python_sitearch}
 %files %{python_files devel}
 %doc README.rst
 
-%if %{without common-devel}
-# no common-devel package so all devel files should be here
-%{python_sitearch}/gi/share/
-%{python_sitearch}/gi/include/
-%else
-
 %files -n %{name}-common-devel
 %{_includedir}/pygobject-3.0/
 %{_libdir}/pkgconfig/pygobject-3.0.pc
-%endif
 
 %changelog
openSUSE Build Service is sponsored by