]> git.pld-linux.org Git - packages/Zope-CMFCollector.git/blob - Zope-CMFCollector.spec
07b9071b58110dcdee964568badbb4d81447f5f7
[packages/Zope-CMFCollector.git] / Zope-CMFCollector.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    CMFCollector
3 Summary:        CMFCollector - an issue collector for Zope
4 Summary(pl):    CMFCollector - dodatek do Zope umo¿liwiaj±cy zbieranie wyników
5 Name:           Zope-%{zope_subname}
6 Version:        0.9b
7 Release:        3
8 License:        ZPL 2.0
9 Group:          Development/Tools
10 #Source0:       http://cvs.zope.org/CMF/%{zope_subname}/%{zope_subname}.tar.gz?tarball=1
11 Source0:        %{zope_subname}.tar.gz
12 # Source0-md5:  151c906d1058115f3f98155ec042f8fe
13 URL:            http://cvs.zope.org/CMF/%{zope_subname}/
14 %pyrequires_eq  python-modules
15 Requires:       Zope-CMF >= 1.2
16 Requires:       Zope >= 2.4
17 BuildArch:      noarch
18 BuildRoot:      %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
19
20 %define         product_dir     /usr/lib/zope/Products
21
22 %description
23 CMFCollector is an issue collector for Zope.
24
25 %description -l pl
26 CMFCollector jest dodatkiem do Zope umo¿liwiaj±cym zbieranie wyników.
27
28 %prep
29 %setup -q -n %{zope_subname}
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/help
34
35 # should tests be included or not?
36 cp -af {Extensions,dtml,skins,tests,*.py,*.zexp} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
37
38 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
39 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40
41 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
42
43 %clean
44 rm -rf $RPM_BUILD_ROOT
45
46 %post
47 if [ -f /var/lock/subsys/zope ]; then
48         /etc/rc.d/init.d/zope restart >&2
49 fi
50
51 %postun
52 if [ -f /var/lock/subsys/zope ]; then
53         /etc/rc.d/init.d/zope restart >&2
54 fi
55
56 %files
57 %defattr(644,root,root,755)
58 %doc INSTALL.txt KNOWN_PROBLEMS.txt README.txt TODO.txt
59 %{product_dir}/%{zope_subname}
This page took 0.059273 seconds and 2 git commands to generate.