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