]> git.pld-linux.org Git - packages/Zope-ZMySQLDA.git/blob - Zope-ZMySQLDA.spec
- removed %%include /usr/lib/rpm/macros.python
[packages/Zope-ZMySQLDA.git] / Zope-ZMySQLDA.spec
1 %define zope_subname ZMySQLDA
2 Summary:        Zope MySQL database adapter
3 Summary(pl):    Interfejs bazy danych MySQL do Zope
4 Name:           Zope-%{zope_subname}
5 Version:        2.0.8
6 Release:        1
7 License:        ZPL
8 Group:          Development/Languages/Python
9 Source0:        http://www.zope.org/Members/adustman/Products/ZMySQLDA/%{zope_subname}-%{version}.tar.gz
10 # Source0-md5:  74332272e53b13c6b19d3185d575699c
11 URL:            http://www.zope.org/Members/adustman/Products/ZMySQLDA/
12 %pyrequires_eq  python-modules
13 Requires:       Zope
14 Requires:       python-MySQLdb
15 BuildArch:      noarch
16 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
17
18 %description
19 Zope MySQL database adapter.
20
21 %description -l pl
22 Interfejs bazy danych MySQL do Zope.
23
24 %prep
25 %setup -q -c
26 mv -f lib/python/Products/%{zope_subname}/* .
27 rm -rf lib
28
29 %build
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
34
35 cp -af *.py *.dtml help icons $RPM_BUILD_ROOT%{_datadir}/%{name}
36
37 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
38 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
39
40 %clean
41 rm -rf $RPM_BUILD_ROOT
42
43 %post
44 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
45 if [ -f /var/lock/subsys/zope ]; then
46         /etc/rc.d/init.d/zope restart >&2
47 fi
48
49 %postun
50 if [ "$1" = "0" ]; then
51         /usr/sbin/installzopeproduct -d %{zope_subname} 
52         if [ -f /var/lock/subsys/zope ]; then
53                 /etc/rc.d/init.d/zope restart >&2
54         fi
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc *.txt
60 %{_datadir}/%{name}
This page took 0.096335 seconds and 3 git commands to generate.