]> git.pld-linux.org Git - packages/Zope-ZMySQLDA.git/blob - Zope-ZMySQLDA.spec
3e0c3d84025605b1a6e820d94c052b7e158e3fb9
[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:        4
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 BuildRequires:  python
13 %pyrequires_eq  python-modules
14 Requires:       Zope
15 Requires:       python-MySQLdb
16 BuildArch:      noarch
17 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19 %description
20 Zope MySQL database adapter.
21
22 %description -l pl
23 Interfejs bazy danych MySQL do Zope.
24
25 %prep
26 %setup -q -c
27 mv -f lib/python/Products/%{zope_subname}/* .
28 rm -rf lib
29
30 %build
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
35
36 cp -af *.py *.dtml help icons $RPM_BUILD_ROOT%{_datadir}/%{name}
37
38 %py_comp $RPM_BUILD_ROOT%{_datadir}/%{name}
39 %py_ocomp $RPM_BUILD_ROOT%{_datadir}/%{name}
40
41 %clean
42 rm -rf $RPM_BUILD_ROOT
43
44 %post
45 /usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
46 if [ -f /var/lock/subsys/zope ]; then
47         /etc/rc.d/init.d/zope restart >&2
48 fi
49
50 %postun
51 if [ "$1" = "0" ]; then
52         /usr/sbin/installzopeproduct -d %{zope_subname} 
53         if [ -f /var/lock/subsys/zope ]; then
54                 /etc/rc.d/init.d/zope restart >&2
55         fi
56 fi
57
58 %files
59 %defattr(644,root,root,755)
60 %doc *.txt
61 %{_datadir}/%{name}
This page took 0.042636 seconds and 2 git commands to generate.