]> git.pld-linux.org Git - packages/Zope-ZMySQLDA.git/blame - Zope-ZMySQLDA.spec
- added BR: python
[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
96f7caff 6Release: 4
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/
721dc74a 12BuildRequires: python
6bde8100 13%pyrequires_eq python-modules
ad1560d4 14Requires: Zope
15Requires: python-MySQLdb
ad1560d4 16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
ad1560d4 19%description
0161485f 20Zope MySQL database adapter.
ad1560d4 21
2b596f2e
JB
22%description -l pl
23Interfejs bazy danych MySQL do Zope.
24
ad1560d4 25%prep
2b596f2e 26%setup -q -c
6bde8100 27mv -f lib/python/Products/%{zope_subname}/* .
ad1560d4 28rm -rf lib
29
30%build
ad1560d4 31
32%install
33rm -rf $RPM_BUILD_ROOT
6bde8100 34install -d $RPM_BUILD_ROOT%{_datadir}/%{name}
ad1560d4 35
6bde8100
JK
36cp -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}
ad1560d4 40
41%clean
42rm -rf $RPM_BUILD_ROOT
43
6bde8100
JK
44%post
45/usr/sbin/installzopeproduct %{_datadir}/%{name} %{zope_subname}
46if [ -f /var/lock/subsys/zope ]; then
47 /etc/rc.d/init.d/zope restart >&2
48fi
49
50%postun
51if [ "$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
56fi
57
ad1560d4 58%files
59%defattr(644,root,root,755)
ce2d38c8 60%doc *.txt
6bde8100 61%{_datadir}/%{name}
This page took 0.086372 seconds and 4 git commands to generate.