summaryrefslogtreecommitdiffstats
path: root/postgresql92/PyGreSQL.spec.diff
diff options
context:
space:
mode:
authorHonza Horák <hhorak@redhat.com>2012-10-03 13:25:17 +0200
committerHonza Horák <hhorak@redhat.com>2012-10-03 13:25:17 +0200
commit975f12a1e2dc660651b0892e168f6c0d7de96687 (patch)
tree548289fd0e9ed87b57cb553d6033930cf4d122a4 /postgresql92/PyGreSQL.spec.diff
parente6d4cfcd1e40e8d7a0271f1b66f62b0b757110df (diff)
downloaddsc-975f12a1e2dc660651b0892e168f6c0d7de96687.tar.gz
dsc-975f12a1e2dc660651b0892e168f6c0d7de96687.tar.xz
dsc-975f12a1e2dc660651b0892e168f6c0d7de96687.zip
add original spec files and diff files
Diffstat (limited to 'postgresql92/PyGreSQL.spec.diff')
-rw-r--r--postgresql92/PyGreSQL.spec.diff56
1 files changed, 56 insertions, 0 deletions
diff --git a/postgresql92/PyGreSQL.spec.diff b/postgresql92/PyGreSQL.spec.diff
new file mode 100644
index 0000000..c3ff182
--- /dev/null
+++ b/postgresql92/PyGreSQL.spec.diff
@@ -0,0 +1,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