1 | %{expand: %%define pyver %(python -c 'import sys;print(sys.version[0:3])')} |
---|
2 | %define pygresql PyGreSQL |
---|
3 | %define install_dir %{_libdir}/python%{pyver}/site-packages/%{pygresql} |
---|
4 | |
---|
5 | Summary: A Python interface for PostgreSQL database. |
---|
6 | Summary(ja): PostgreSQL DB にアクセスするための Python モジュール |
---|
7 | Name: python-%{pygresql} |
---|
8 | Version: 4.0 |
---|
9 | Release: 5%{?_dist_release} |
---|
10 | License: BSD |
---|
11 | Group: Applications/Databases |
---|
12 | URL: http://www.druid.net/pygresql/ |
---|
13 | Source: ftp://ftp.pygresql.org/pub/distrib/PyGreSQL-%{version}.tgz |
---|
14 | Buildroot: %{_tmppath}/%{pygresql}-%{version}-root |
---|
15 | BuildRequires: python python-devel postgresql-devel |
---|
16 | Requires: postgresql |
---|
17 | Obsoletes: postgresql-python |
---|
18 | Requires: python >= %{pyver} |
---|
19 | Requires: mxDateTime |
---|
20 | |
---|
21 | Vendor: Project Vine |
---|
22 | Distribution: Vine Linux |
---|
23 | |
---|
24 | %description |
---|
25 | PyGreSQL package includes a module for developers to use when writing |
---|
26 | Python code for accessing a PostgreSQL database. |
---|
27 | |
---|
28 | %prep |
---|
29 | %setup -q -n %{pygresql}-%{version} |
---|
30 | |
---|
31 | %build |
---|
32 | python setup.py build --build-lib lib |
---|
33 | |
---|
34 | %install |
---|
35 | rm -rf $RPM_BUILD_ROOT |
---|
36 | install -d $RPM_BUILD_ROOT%{install_dir} |
---|
37 | install -m 755 lib/_pg.so $RPM_BUILD_ROOT%{install_dir} |
---|
38 | install -m 644 lib/*.py $RPM_BUILD_ROOT%{install_dir} |
---|
39 | touch $RPM_BUILD_ROOT%{install_dir}/__init__.py |
---|
40 | |
---|
41 | %clean |
---|
42 | rm -rf $RPM_BUILD_ROOT |
---|
43 | |
---|
44 | %files |
---|
45 | %defattr(-,root,root) |
---|
46 | %doc docs |
---|
47 | %dir %{_libdir}/python?.?/site-packages/%{pygresql} |
---|
48 | %{_libdir}/python?.?/site-packages/%{pygresql}/_pg.so |
---|
49 | %{_libdir}/python?.?/site-packages/%{pygresql}/*.py |
---|
50 | |
---|
51 | %changelog |
---|
52 | * Sun Jan 12 2014 Yoji TOYODA <bsyamato@sea.plala.or.jp> 4.0-5 |
---|
53 | - rebuild with VineSeed environment |
---|
54 | |
---|
55 | * Mon Apr 12 2010 Shu KONNO <owa@bg.wakwak.com> 4.0-4 |
---|
56 | - rebuilt with postgresql-9.0.3 |
---|
57 | |
---|
58 | * Wed Feb 17 2010 Shu KONNO <owa@bg.wakwak.com> 4.0-3 |
---|
59 | - rebuilt with postgresql-8.4.1 |
---|
60 | |
---|
61 | * Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-2 |
---|
62 | - rebuilt with postgresql-8.4.0 |
---|
63 | |
---|
64 | * Mon May 04 2009 Shu KONNO <owa@bg.wakwak.com> 4.0-1vl5 |
---|
65 | - updated to 4.0 |
---|
66 | |
---|
67 | * Sun Jul 20 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-2vl5 |
---|
68 | - rebuilt with python-2.5.2 |
---|
69 | |
---|
70 | * Sat Jul 05 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-1vl5 |
---|
71 | - applied new versioning policy, and spec in utf-8 |
---|
72 | - rebuilt with postgresql-8.3.3 |
---|
73 | |
---|
74 | * Sun Jan 27 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl5 |
---|
75 | - rebuilt |
---|
76 | |
---|
77 | * Tue Jan 08 2008 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl4 |
---|
78 | - rebuilt with postgresql-8.2.6 |
---|
79 | |
---|
80 | * Sat Dec 01 2007 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl3 |
---|
81 | - changed source url |
---|
82 | |
---|
83 | * Wed Oct 24 2007 Ryoichi INAGAKI <ryo1@bc.wakwak.com> 3.8.1-0vl2 |
---|
84 | - rebuilt with postgresql 8.2.5 |
---|
85 | |
---|
86 | * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.8.1-0vl1 |
---|
87 | - changed url |
---|
88 | - updated PyGreSQL to 3.8.1 |
---|
89 | - rebuilt for x86_64 architecture support |
---|
90 | |
---|
91 | * Thu Jun 02 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl3 |
---|
92 | - dropped "Provides: postgresql-python" |
---|
93 | - added Distribution and Vendor lines |
---|
94 | |
---|
95 | * Sun Apr 03 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl2 |
---|
96 | - rebuilt with python 2.4.1 |
---|
97 | |
---|
98 | * Sun Mar 20 2005 Shu KONNO <owa@bg.wakwak.com> 3.6.2-0vl1 |
---|
99 | - created new |
---|
100 | |
---|