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