]> git.pld-linux.org Git - packages/Zope-fcForum.git/blob - Zope-fcForum.spec
9df3f3c9e31913345c9365c605027b63873e3cf6
[packages/Zope-fcForum.git] / Zope-fcForum.spec
1 %include        /usr/lib/rpm/macros.python
2 %define         zope_subname    fcForum
3 Summary:        Message Board Product for Zope
4 Summary(pl):    Forum dla Zope
5 Name:           Zope-%{zope_subname}
6 Version:        2.0.1
7 Release:        1
8 License:        ZPL 2.0
9 Group:          Development/Tools      
10 ######          Unknown group!
11 Source0:        http://www.genix.biz/files/%{zope_subname}-2-0-1.tgz
12 # Source0-md5:  9c74b9b6f532aee732345485301c3c85
13 URL:            http://www.genix.biz/forum_dev/index_html
14 %pyrequires_eq  python-modules
15 Requires:       Zope
16 Requires:       Zope-CookieCrumbler
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 Message Board Product for Zope
24
25 %description -l pl
26 Forum dla Zope
27
28 %prep
29 %setup -q -c %{zope_subname}-%{version}
30
31 %install
32 rm -rf $RPM_BUILD_ROOT
33 install -d $RPM_BUILD_ROOT%{product_dir}
34 cp -af * $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
35
36 %py_comp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
37 %py_ocomp $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}
38
39 # find $RPM_BUILD_ROOT -type f -name "*.py" -exec rm -rf {} \;;
40 # rm -rf $RPM_BUILD_ROOT%{product_dir}/%{zope_subname}/*.txt
41
42 %clean
43 rm -rf $RPM_BUILD_ROOT
44
45 %post
46 if [ -f /var/lock/subsys/zope ]; then
47         /etc/rc.d/init.d/zope restart >&2
48 fi
49
50 %postun
51 if [ -f /var/lock/subsys/zope ]; then
52         /etc/rc.d/init.d/zope restart >&2
53 fi
54
55 %files
56 %defattr(644,root,root,755)
57 # %%doc %{zope_subname}/*.txt
58 %{product_dir}/%{zope_subname}
This page took 0.074208 seconds and 2 git commands to generate.