source: projects/specs/branches/6/p/python-PyGreSQL/python-PyGreSQL-vl.spec @ 3416

Revision 3416, 2.7 KB checked in by owa, 13 years ago (diff)

python-psycopg2,PyGreSQL

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