summaryrefslogtreecommitdiffstats
path: root/python-ZODB3/F-13/python-ZODB3.spec
blob: dd16974d463121d8934caac5126d4d5c7c8a4354 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
%{!?python_sitearch: %define python_sitearch %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)")}

Name:           python-ZODB3
Version:        3.9.3
Release:        1%{?dist}
Summary:        Zope Object Database: Object Database and Persistence
Group:          Development/Libraries
License:        ZPLv2.1
URL:            http://pypi.python.org/pypi/ZODB3
Source0:        http://pypi.python.org/packages/source/Z/ZODB3/ZODB3-%{version}.tar.gz
BuildRoot:      %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)

BuildRequires:  python-devel
# The following are needed if the %%check section is re-enabled.
#BuildRequires:  python-transaction
#BuildRequires:  python-zdaemon
#BuildRequires:  python-zope-interface
#BuildRequires:  python-zope-proxy
#BuildRequires:  python-zope-testing
Requires:       python-transaction
Requires:       python-zc-lockfile
Requires:       python-ZConfig
Requires:       python-zdaemon
Requires:       python-zope-event
Requires:       python-zope-interface
Requires:       python-zope-proxy
Requires:       python-zope-testing

Requires:       python-ZEO
Requires:       python-BTrees
Requires:       python-persistent


%description
The Zope Object Database provides an object-oriented database for Python
that provides a high-degree of transparency. Applications can take
advantage of object database features with few, if any, changes to
application logic. ZODB includes features such as a plugable storage
interface, rich transaction support, and undo.


%package     -n python-BTrees
Summary:        Zope Object Database: BTrees library
Group:          Development/Libraries
License:        ZPLv2.1
Requires:       python-transaction
Requires:       python-zc-lockfile
Requires:       python-ZConfig
Requires:       python-zdaemon
Requires:       python-zope-event
Requires:       python-zope-interface
Requires:       python-zope-proxy
Requires:       python-zope-testing

%description -n python-BTrees
A BTree library for Python. Part of python-ZODB3.

%package     -n python-persistent
Summary:        Zope Object Database: Object Persistence
Group:          Development/Libraries
License:        ZPLv2.1
Requires:       python-transaction
Requires:       python-zc-lockfile
Requires:       python-ZConfig
Requires:       python-zdaemon
Requires:       python-zope-event
Requires:       python-zope-interface
Requires:       python-zope-proxy
Requires:       python-zope-testing

%description -n python-persistent
A Python object persistence framework.

%package     -n python-ZEO
Summary:        Zope Object Database: Zope Enterprise Objects
Group:          Development/Libraries
License:        ZPLv2.1
Requires:       python-transaction
Requires:       python-zc-lockfile
Requires:       python-ZConfig
Requires:       python-zdaemon
Requires:       python-zope-event
Requires:       python-zope-interface
Requires:       python-zope-proxy
Requires:       python-zope-testing

%description -n python-ZEO
ZEO is an add-on for Zope that allows multiple processes to connect
to a single ZODB storage.


%prep
%setup -q -n ZODB3-%{version}
for script in src/{ZODB,ZEO}/{zeoctl.py,scripts/{*.py,*/*.py}}; do
  if head -n 1 "$script" | grep -q '#!'; then
    sed -i '1,1d' "$script"
  fi
done


%build
CFLAGS="$RPM_OPT_FLAGS" %{__python} setup.py build


%install
rm -rf $RPM_BUILD_ROOT
%{__python} setup.py install -O1 --skip-build --root $RPM_BUILD_ROOT
mkdir -p $RPM_BUILD_ROOT%{_libexecdir}/%{name}
for binary in fsdump fsoids fsrefs fstail mkzeoinst repozo runzeo zeoctl \
    zeopack zeopasswd; do
  mv $RPM_BUILD_ROOT{%{_bindir}/${binary},%{_libexecdir}/%{name}/${binary}}
done


# Disabled because tests fail for some reason I don't have the time to
# examine/fix.
#%%check
#%{__python} setup.py test

 
%clean
rm -rf $RPM_BUILD_ROOT


%files
%defattr(-,root,root,-)
%doc HISTORY.txt README.txt
%{python_sitearch}/ZODB*
%{_libexecdir}/%{name}
%{_includedir}/python?.?/ZODB3

%files -n python-BTrees
%defattr(-,root,root,-)
%{python_sitearch}/BTrees

%files -n python-persistent
%defattr(-,root,root,-)
%{python_sitearch}/persistent

%files -n python-ZEO
%defattr(-,root,root,-)
%{python_sitearch}/ZEO


%changelog
* Wed Oct 28 2009 Conrad Meyer <konrad@tylerc.org> - 3.9.3-1
- Bumped to 3.9.3.
- Numerous minor fixes from review (#476600).
- Split into several subpackages.

* Mon Dec 15 2008 Conrad Meyer <konrad@tylerc.org> - 3.9.0-0.1.a7
- Initial package.