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

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

python-psycopg2,PyGreSQL

Line 
1%define _zope2_pythonlibs %{_var}/lib/Zope2/lib/python
2%define _zope2_installdir %{_var}/lib/Zope2/Products
3%define _product ZPsycopgDA
4Summary: psycopg2 is a PostgreSQL database adapter for Python
5Summary(ja): psycopg2 は Python の PostgreSQL 用データベースアダプタです
6Name: python-psycopg2
7Group: Applications/Databases
8Version: 2.4
9Release: 1%{?_dist_release}
10License: LGPL or ZPL
11Source: http://initd.org/pub/software/psycopg/psycopg2-%{version}.tar.gz
12Patch0: psycopg2-2.2.2-DA.patch
13BuildRequires: python-devel
14BuildRequires: postgresql-devel
15BuildRequires: python-egenix-mx-base
16Requires: python
17Requires: postgresql-libs
18BuildRoot: %{_tmppath}/psycopg-%{version}-root
19Distribution: Vine Linux
20Vendor: Project Vine
21Packager: owa
22
23%description
24psycopg is a PostgreSQL database adapter for the Python programming
25language. This is version 2, a complete rewrite of the original code to
26provide new-style classes for connection and cursor objects and other
27sweet candies. Like the original, psycopg 2 was written with the aim of
28being very small and fast, and stable as a rock.
29
30%package doc
31Summary: Documentation for psycopg python PostgreSQL database adapter
32Group: Applications/Databases
33%description doc
34Documenation and example files for the psycopg python PostgreSQL
35database adapter.
36
37%package %{_product}
38Summary: ZPsycopgDA is a PostgreSQL database adapter product for Zope
39Group: Development/Web Applications
40Requires: %{name} == %{version}
41Requires: Zope2-zserver >= 2.12
42Provides: %{_product}
43
44%description %{_product}
45ZPsycopgDA is a PostgreSQL database adapter product for Zope.
46
47
48%prep
49%setup -q -n psycopg2-%{version}
50%patch0 -p1 -b .DA
51
52
53%build
54python setup.py build
55
56
57%install
58rm -rf $RPM_BUILD_ROOT
59python setup.py install \
60        --root $RPM_BUILD_ROOT \
61        --install-lib %{python_sitearch} \
62        ;
63mkdir -p $RPM_BUILD_ROOT%{_zope2_pythonlibs}
64ln -sf %{python_sitearch}/psycopg2 $RPM_BUILD_ROOT%{_zope2_pythonlibs}
65ln -sf %{python_sitearch}/psycopg2-%{version}-py%{pyver}.egg-info $RPM_BUILD_ROOT%{_zope2_pythonlibs}
66
67find %{_product} -name CVS | xargs rm -fr
68mkdir -p $RPM_BUILD_ROOT%{_zope2_installdir}
69cp -pR %{_product} $RPM_BUILD_ROOT%{_zope2_installdir}
70
71
72%clean
73rm -rf $RPM_BUILD_ROOT
74
75
76%preun %{_product}
77if [ $1 = 0 ]; then
78        rm -rf %{_zope2_installdir}/%{_product}/*.pyc
79fi
80
81
82%files
83%defattr(-,root,root)
84%{python_sitearch}/psycopg2
85%{python_sitearch}/psycopg2-%{version}-py*.egg-info
86
87%files doc
88%defattr(-,root,root)
89%doc AUTHORS INSTALL README doc
90
91%files %{_product}
92%defattr(-,Zope2,Zope2)
93%{_zope2_pythonlibs}/psycopg2
94%{_zope2_pythonlibs}/psycopg2-%{version}-py*.egg-info
95%{_zope2_installdir}/%{_product}
96
97
98%changelog
99* Tue Apr 12 2011 Shu KONNO <owa@bg.wakwak.com> 2.4-1
100- updated psycopg2 to 2.4
101
102* Wed Dec 15 2010 Shu KONNO <owa@bg.wakwak.com> 2.2.2-1
103- updated psycopg2 to 2.2.2
104- added psycopg2-2.2.2-DA.patch
105
106* Wed Feb 17 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.13-1
107- updated psycopg2 to 2.0.13
108
109* Tue Feb 02 2010 Shu KONNO <owa@bg.wakwak.com> 2.0.11-2
110- rebuild with python-2.6
111
112* Wed Jul 08 2009 Shu KONNO <owa@bg.wakwak.com> 2.0.11-1
113- updated psycopg2 to 2.0.11
114- built with postgresql-8.4.0
115
116* Mon May 04 2009 Shu KONNO <owa@bg.wakwak.com> python-psycopg2-2.0.10-1vl5
117- updated psycopg2 to 2.0.10
118
119* Wed Dec 31 2008 Shu KONNO <owa@bg.wakwak.com> python-psycopg2-2.0.8-1vl5
120- updated psycopg2 to 2.0.8
121
122* Thu Jul 17 2008 Shu KONNO <owa@bg.wakwak.com> python-psycopg2-2.0.7-1vl5
123- packaged new
124
Note: See TracBrowser for help on using the repository browser.