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