[python-fdb/el6] Initial package

Philippe Makowski makowski at fedoraproject.org
Tue Nov 27 18:04:35 UTC 2012


commit 4d83b97341b37cd81bd88f4d96d563258c229bff
Author: Philippe Makowski <pmakowski at espelida.com>
Date:   Tue Nov 27 18:59:58 2012 +0100

    Initial package

 .gitignore      |    1 +
 python-fdb.spec |   90 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources         |    1 +
 3 files changed, 92 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..7152e09 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/fdb-0.9.1.tar.gz
diff --git a/python-fdb.spec b/python-fdb.spec
new file mode 100644
index 0000000..d7cee52
--- /dev/null
+++ b/python-fdb.spec
@@ -0,0 +1,90 @@
+%global with_python3 0%{?fedora} >= 17
+%global upstream_name fdb
+
+Name:           python-fdb
+Version:        0.9.1
+Release:        1%{?dist}
+Summary:        Firebird RDBMS bindings for Python
+
+Group:          Development/Libraries
+License:        BSD
+URL:            http://www.firebirdsql.org/
+Source0:        http://pypi.python.org/packages/source/f/%{upstream_name}/%{upstream_name}-%{version}.tar.gz
+
+BuildArch:      noarch      
+BuildRequires:  python2-devel
+BuildRequires:  python-setuptools
+BuildRequires:  firebird-devel
+
+Requires:       firebird-libfbclient
+
+%description
+Set of Firebird RDBMS bindings for Python. 
+
+%if 0%{?with_python3}
+%package -n python3-fdb
+Summary:        Firebird RDBMS bindings for Python
+Group:          Development/Libraries
+BuildRequires:  python3-devel
+BuildRequires:  python3-setuptools
+BuildRequires:  firebird-devel
+
+Requires:       firebird-libfbclient
+
+%description -n python3-fdb
+Set of Firebird RDBMS bindings for Python.
+%endif # with_python3
+
+%package doc
+Summary:        Documentation for %{name}
+Group:          Documentation
+License:        BSD
+
+%description doc
+Documentation files for %{name}. It works on Python 2.6+ and Python 3..
+
+%prep
+%setup -q -n %{upstream_name}-%{version}
+rm -rf %{upstream_name}.egg-info
+%if 0%{?with_python3}
+rm -rf %{py3dir}
+cp -a . %{py3dir}
+%endif # with_python3
+
+%build
+%{__python} setup.py build
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py build
+popd
+%endif # with_python3
+
+%install
+# Must do the python3 install first because the scripts in /usr/bin are
+# overwritten with every setup.py install (and we want the python2 version
+# to be the default for now).
+%if 0%{?with_python3}
+pushd %{py3dir}
+%{__python3} setup.py install -O1 --skip-build --root %{buildroot} 
+popd
+%endif # with_python3
+
+%{__python} setup.py install -O1 --skip-build --root %{buildroot} 
+ 
+%files
+%doc README LICENSE.TXT
+%{python_sitelib}/*
+
+%if 0%{?with_python3}
+%files -n python3-fdb
+%doc README LICENSE.TXT
+%{python3_sitelib}/*
+%endif # with_python3
+
+%files doc
+%doc docs/* README ReleaseNotes.txt LICENSE.TXT
+
+
+%changelog
+* Tue Nov 27 2012 Philippe Makowski <makowski at fedoraproject.org> 0.9.1-1
+- Initial package
diff --git a/sources b/sources
index e69de29..fc4c470 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+258bc5f5b2f2fec06539423abd3d7bc9  fdb-0.9.1.tar.gz


More information about the scm-commits mailing list