]> git.pld-linux.org Git - packages/Zope-ZMySQLDA.git/blame_incremental - Zope-ZMySQLDA.spec
- use new %%doc
[packages/Zope-ZMySQLDA.git] / Zope-ZMySQLDA.spec
... / ...
CommitLineData
1
2%define prod_name ZMySQLDA
3
4Summary: Zope MySQL database adapter
5Summary(pl): Interfejs bazy danych MySQL do Zope
6Name: Zope-%{prod_name}
7Version: 2.0.8
8Release: 1
9License: ZPL
10Source0: http://www.zope.org/Members/adustman/Products/%{prod_name}/%{prod_name}-%{version}.tar.gz
11URL: http://www.zope.org/Members/adustman/Products/%{prod_name}
12Group: Development/Languages/Python
13Requires: Zope
14Requires: python-MySQLdb
15BuildRequires: python-MySQLdb
16BuildArch: noarch
17BuildRoot: %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
18
19%define python_compile_opt python -O -c "import compileall; compileall.compile_dir('.')"
20%define python_compile python -c "import compileall; compileall.compile_dir('.')"
21
22%define zope_dir %{_libdir}/zope
23%define zope_productsdir %{zope_dir}/Products
24
25%description
26Zope MySQL database adapter.
27
28%description -l pl
29Interfejs bazy danych MySQL do Zope.
30
31%prep
32%setup -q -c
33mv -f lib/python/Products/%{prod_name}/* .
34rm -rf lib
35
36%build
37%{python_compile}
38%{python_compile_opt}
39
40find . -name \*.py | xargs -r rm -f
41
42%install
43rm -rf $RPM_BUILD_ROOT
44install -d $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
45
46cp -a . $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}
47rm -f $RPM_BUILD_ROOT%{zope_productsdir}/%{prod_name}/*.gz
48
49%clean
50rm -rf $RPM_BUILD_ROOT
51
52%files
53%defattr(644,root,root,755)
54%doc *.txt
55%{zope_productsdir}/%{prod_name}
This page took 0.05447 seconds and 4 git commands to generate.