]> git.pld-linux.org Git - packages/python-PyGreSQL.git/blame - python-PyGreSQL.spec
- release 2 (by relup.sh)
[packages/python-PyGreSQL.git] / python-PyGreSQL.spec
CommitLineData
202121ed 1Summary: PostgreSQL module for Python
cb4638fd 2Summary(pl.UTF-8): Moduł PostgreSQL dla Pythona
202121ed 3Name: python-PyGreSQL
562d4db3 4Version: 4.1.1
7999f1e8 5Release: 2
202121ed
JB
6License: BSD-like
7Group: Libraries/Python
562d4db3
JK
8Source0: http://www.pygresql.org/files/PyGreSQL-%{version}.tgz
9# Source0-md5: 71d0b8c5a382f635572eb52fee47cd08
202121ed
JB
10URL: http://www.pygresql.org/
11BuildRequires: postgresql-backend-devel
12BuildRequires: postgresql-devel
562d4db3 13BuildRequires: python-devel >= 1:2.6
ac394cfb 14BuildRequires: rpm-pythonprov
202121ed
JB
15%pyrequires_eq python
16Obsoletes: python-postgresql
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%description
20PyGreSQL is a Python module that interfaces to a PostgreSQL database.
21It embeds the PostgreSQL query library to allow easy use of the
22powerful PostgreSQL features from a Python script.
23
a5e108f1
JR
24%description -l pl.UTF-8
25PyGreSQL to moduł Pythona będący interfejsem do bazy danych
26PostgreSQL. Osadza bibliotekę zapytań PostgreSQL, aby umożliwić łatwe
27korzystanie 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
37rm -rf $RPM_BUILD_ROOT
38install -d $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
39
b05e6f42 40%py_install
202121ed
JB
41
42install tutorial/*.py $RPM_BUILD_ROOT%{_examplesdir}/%{name}-%{version}
43
540d26df
MG
44find $RPM_BUILD_ROOT%{py_sitedir} -type f -name "*.py" -exec rm -rf {} \;
45
202121ed
JB
46%clean
47rm -rf $RPM_BUILD_ROOT
48
49%files
50%defattr(644,root,root,755)
ac394cfb 51%doc docs/*
202121ed 52%attr(755,root,root) %{py_sitedir}/_pg.so
92324e45
JB
53%{py_sitedir}/*.py[co]
54%{py_sitedir}/PyGreSQL-*.egg-info
202121ed 55%{_examplesdir}/%{name}-%{version}
This page took 0.092428 seconds and 4 git commands to generate.