]> git.pld-linux.org Git - packages/Zope-CMFCollector.git/blob - Zope-CMFCollector.spec
- added obsoletes
[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 Obsoletes:      CMF
20
21 %define         product_dir     /usr/lib/zope/Products
22
23 %description
24 CMFCollector is an issue collector for Zope.
25
26 %description -l pl
27 CMFCollector jest dodatkiem do Zope umo¿liwiaj±cym zbieranie wyników.
28
29 %prep
30 %setup -q -n %{zope_subname}
31
32 %install
33 rm -rf $RPM_BUILD_ROOT
34 install -d $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/help
35
36 # should tests be included or not?
37 cp -af {Extensions,dtml,skins,tests,*.py,*.zexp} $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38
39 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
40 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
41
42 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
43
44 %clean
45 rm -rf $RPM_BUILD_ROOT
46
47 %post
48 if [ -f /var/lock/subsys/zope ]; then
49         /etc/rc.d/init.d/zope restart >&2
50 fi
51
52 %postun
53 if [ -f /var/lock/subsys/zope ]; then
54         /etc/rc.d/init.d/zope restart >&2
55 fi
56
57 %files
58 %defattr(644,root,root,755)
59 %doc INSTALL.txt KNOWN_PROBLEMS.txt README.txt TODO.txt
60 %{product_dir}/%{zope_subname}
This page took 0.098137 seconds and 3 git commands to generate.