1c1,8 < Name: PyGreSQL --- > # Sets %%pkg_name to 'PyGreSQL' if we build for scl. > %{?scl:%scl_package PyGreSQL} > # If we don't build for scl, then pkg_name is empty. > # This way, we can always use %%pkg_name for 'PyGreSQL', be it scl build or not. > %{!?scl:%global pkg_name PyGreSQL} > # %%{name} then references to either 'PyGreSQL' (not in scl) or '%%{?scl:%scl_prefix}PyGreSQL' (in scl). > > Name: %{?scl_prefix}PyGreSQL 22,25c29,30 < Provides: postgresql-python = 8.5.0-1 < Obsoletes: postgresql-python < 8.5 < < BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root --- > Provides: %{?scl_prefix}postgresql-python = 8.5.0-1 > Obsoletes: %{?scl_prefix}postgresql-python < 8.5 27c32 < BuildRequires: postgresql-devel python-devel --- > BuildRequires: %{?scl_prefix}postgresql-devel python-devel 37c42 < %setup -q --- > %setup -q -n %{pkg_name}-%{version} 46c51 < --- > %{?scl:scl enable %scl - << \EOF} 47a53 > %{?scl:EOF} 50,55c56,58 < rm -rf $RPM_BUILD_ROOT < < %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT < < %clean < rm -rf $RPM_BUILD_ROOT --- > %{?scl:scl enable %scl - << \EOF} > %{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT%{?scl:%_scl_root} > %{?scl:EOF} 61,65c64,68 < %{python_sitearch}/*.so < %{python_sitearch}/*.py < %{python_sitearch}/*.pyc < %{python_sitearch}/*.pyo < %{python_sitearch}/*.egg-info --- > %{?scl:%_scl_root}%{python_sitearch}/*.so > %{?scl:%_scl_root}%{python_sitearch}/*.py > %{?scl:%_scl_root}%{python_sitearch}/*.pyc > %{?scl:%_scl_root}%{python_sitearch}/*.pyo > %{?scl:%_scl_root}%{python_sitearch}/*.egg-info