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