source: projects/specs/trunk/p/python-PyGreSQL/python-PyGreSQL-vl.spec @ 8154

Revision 8154, 2.9 KB checked in by Takemikaduchi, 10 years ago (diff)

new upstream release or rebuild

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: 5%{?_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
15BuildRequires: python python-devel postgresql-devel
16Requires: postgresql
17Obsoletes: postgresql-python
18Requires: python >= %{pyver}
19Requires: mxDateTime
20
21Vendor: Project Vine
22Distribution: Vine Linux
23
24%description
25PyGreSQL package includes a module for developers to use when writing
26Python code for accessing a PostgreSQL database.
27
28%prep
29%setup -q -n %{pygresql}-%{version}
30
31%build
32python setup.py build --build-lib lib
33
34%install
35rm -rf $RPM_BUILD_ROOT
36install -d $RPM_BUILD_ROOT%{install_dir}
37install -m 755 lib/_pg.so $RPM_BUILD_ROOT%{install_dir}
38install -m 644 lib/*.py $RPM_BUILD_ROOT%{install_dir}
39touch $RPM_BUILD_ROOT%{install_dir}/__init__.py
40
41%clean
42rm -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
Note: See TracBrowser for help on using the repository browser.