]>
Commit | Line | Data |
---|---|---|
202121ed | 1 | Summary: PostgreSQL module for Python |
cb4638fd | 2 | Summary(pl.UTF-8): Moduł PostgreSQL dla Pythona |
202121ed | 3 | Name: python-PyGreSQL |
ac394cfb | 4 | Version: 3.8.1 |
28f45705 | 5 | Release: 2 |
202121ed JB |
6 | License: BSD-like |
7 | Group: Libraries/Python | |
d944c52e | 8 | Source0: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-%{version}.tgz |
ac394cfb | 9 | # Source0-md5: 5575979dac93c9c5795d7693a8f91c86 |
202121ed JB |
10 | URL: http://www.pygresql.org/ |
11 | BuildRequires: postgresql-backend-devel | |
12 | BuildRequires: postgresql-devel | |
92324e45 | 13 | BuildRequires: python-devel >= 1:2.5 |
ac394cfb | 14 | BuildRequires: rpm-pythonprov |
202121ed JB |
15 | %pyrequires_eq python |
16 | Obsoletes: python-postgresql | |
17 | BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n) | |
18 | ||
19 | %description | |
20 | PyGreSQL is a Python module that interfaces to a PostgreSQL database. | |
21 | It embeds the PostgreSQL query library to allow easy use of the | |
22 | powerful PostgreSQL features from a Python script. | |
23 | ||
a5e108f1 JR |
24 | %description -l pl.UTF-8 |
25 | PyGreSQL to moduł Pythona będący interfejsem do bazy danych | |
26 | PostgreSQL. Osadza bibliotekę zapytań PostgreSQL, aby umożliwić łatwe | |
27 | korzystanie z potężnych możliwości PostgreSQL-a w skryptach Pythona. | |
202121ed JB |
28 | |
29 | %prep | |
d944c52e | 30 | %setup -q -n PyGreSQL-%{version} |
202121ed JB |
31 | |
32 | %build | |
33 | ./setup.py build_ext \ | |
34 | -I/usr/include/postgresql/server | |
35 | ||
36 | %install | |
37 | rm -rf $RPM_BUILD_ROOT | |
38 | install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
39 | ||
40 | python setup.py install \ | |
41 | --optimize=2 \ | |
42 | --root=$RPM_BUILD_ROOT | |
43 | ||
44 | install tutorial/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version} | |
45 | ||
540d26df MG |
46 | find $RPM_BUILD_ROOT%{py_sitedir} -type f -name "*.py" -exec rm -rf {} \; |
47 | ||
202121ed JB |
48 | %clean |
49 | rm -rf $RPM_BUILD_ROOT | |
50 | ||
51 | %files | |
52 | %defattr(644,root,root,755) | |
ac394cfb | 53 | %doc docs/* |
202121ed | 54 | %attr(755,root,root) %{py_sitedir}/_pg.so |
92324e45 JB |
55 | %{py_sitedir}/*.py[co] |
56 | %{py_sitedir}/PyGreSQL-*.egg-info | |
202121ed | 57 | %{_examplesdir}/%{name}-%{version} |