summaryrefslogtreecommitdiffstats
path: root/postgresql92/PyGreSQL.spec.diff
blob: c3ff182c412fcb58a95a6e03cda1cad8fb6d8792 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
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